Pax1601 / DCSOlympus

Download Olympus here: https://github.com/Pax1601/DCSOlympus/releases. DCS Olympus is an independent and non-profit mod for DCS World. It allows users to spawn, control, task, group, and remove units from a DCS World server using a real-time map interface, similar to Real Time Strategy games.
301 stars 34 forks source link

Neutral units for RED and BLUE Commander #775

Open WirtsLegs opened 10 months ago

WirtsLegs commented 10 months ago

Copied from Discord conversation Since you need neutral units for miss on purpose to work etc blue/red commander should be able to use them but blue and red commander view can never see neutral units because they aren't blue/red and neutral never appear in Controller.getDetectedTargets()

I would propose a 3 stage fix:

  1. Allow Red/Blue Commander to spawn neutrals, these would be flagged as owned by the spawning side and only controllable by them and the GM
  2. Some way of flagging a unit as blue or red so the blue/red commander can always see that unit (add it to a list and olympus always shows red their neutrals and blue theirs)
  3. Adding a secondary detection method (just simple range or something) for blue/red detecting neutral units this way they can see neutrals acting for the other side AND see true neutrals such as airliners, civilian boats w/e.
LethalsLoaded commented 10 months ago

I would rely on DCS to tell us if neutral is red/blue/gm spawned. This can be achieved by utilizing group name Red-Olympus-XXXX, Blue-Olympus-XXXX and if GM just Olympus-XXXX.

This way when we query for units, we can query for Neutral units containing Blue or Red, which would allow syncing across server & client restarts and would make DCS be the 'database'.

Jer-C commented 9 months ago

Using the group name might have problems if #771 is implemented.