GithubHelp home page GithubHelp logo

more then 1 unit at FIX about openra HOT 6 CLOSED

ihptru avatar ihptru commented on April 29, 2024
more then 1 unit at FIX

from openra.

Comments (6)

cjshmyr avatar cjshmyr commented on April 29, 2024

Saw this mentioned elsewhere - should we repair aircraft on AFLD/HPAD? I assume that would cost money.

from openra.

ihptru avatar ihptru commented on April 29, 2024

when you have 10-30 air units (especially quick migs) it becomes difficult to manage it's repro/repair. Probably giving some money for repair would compensate that difficulty

from openra.

 avatar commented on April 29, 2024

Still reproducable in playtest-20160424
simultaneous repair
(To reproduce :
Take a damaged vehicle and a damaged air unit then send the vehicle to the service depot and before it reaches it send the air unit to the service depot)

EDIT (didn't read the source code yet)
An easy workaround would be to have some sort of bool isOccupied property in the service depot actor (if it doesn't exist already).

When a player sends a unit to the service depot you could add something like depot.isOccupied = true; in the "right click on the service depot event".

When a unit is repaired and is exiting the service depot you could do something like depot.isOccupied = false;.

Sending more than one unit to the service depot would become impossible because a player can't do two simultaneous right clicks with to different units to a service depot :

  • Select a unit and right click on the service depot
  • Service depot isOccupied
  • Select another unit and right click on the service depot
  • Sorry, service depot isOccupied even if the first unit hasn't reached it yet.

from openra.

whi7ed3vil avatar whi7ed3vil commented on April 29, 2024

Better approached with something like a semaphore. This also applies to helipads while reloading longbows automatically using the latest playtest logic. I'm overjoyed that the longbows will reload themselves (with a little coaxing after blocking each other for a bit), but once they start down, they will overlap each other. Reproducible with any smaller number of helipads than helis. If helis are told to reload specifically, they will choose a queueing order and reload the first batch. That batch will then lift off and land again. Immediately after that, the next group will land on top of them and begin reloading. The issue here is simply that the choppers do not exit for a rally point after taking off. They instead fall back to the pads and do not occupy space, allowing the second helis to land with a functional reload.

from openra.

Smittytron avatar Smittytron commented on April 29, 2024

(To reproduce :
Take a damaged vehicle and a damaged air unit then send the vehicle to the service depot and before it reaches it send the air unit to the service depot)

You can actually order the aircraft to land after a vehicle starts to repair and vise versa. As far as I can tell aircraft and vehicles are simply allowed to repair at the same time.

from openra.

 avatar commented on April 29, 2024

Present in playtest-20180729.

from openra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.