Mods icon indicating copy to clipboard operation
Mods copied to clipboard

Air disconnect safety

Open jonpas opened this issue 5 years ago • 3 comments

Safety system for pilot (or co-pilot if in control) when he gets disconnected, so all crew on-board and the airframe are not lost due to technical issues.

  • Freeze helicopter/plane mid-air (disable simulation, hide object)
  • Place player back into seat on reload if spawned within certain distance of the frozen airframe
    • Maybe distance is not best idea, as Arma sometimes doesn't register right away (but then freezing is also a problem)
    • Unfreeze as interaction (to make sure pilot is fully loaded in)
  • Allow switching from any slot to pilot slot to unfreeze and continue (has to be safe, so sub-item in interaction)

Fits air_security component.


Can integrate with Apollo persistence vehicle passenger saving (once that is implemented). Might as well do that as it's a similar system, except vehicles on the ground (touching ground or below 1m ATL) - only stop those (or slow them down) so they don't crash.

Entire persistence could work in the following manner:

  • Save vehicle object (varName) on player save (and position in vehicle)
    • varName is Chronos varName if vehicle is Chronos tracked (QEGVAR(apollo,vehicleID))
    • varName is varName given on save and added to list of temp-saved object relations (setVehicleVarName "TAC_TEMP_5" without vehicleID), those don't get deleted until session end to avoid removal handling - (single session vehicle anyways)
  • On load if vehicle still alive, place player in:
    • <special handling if vehicle frozen in-air - read above>
    • Same position if free
    • Any remaining free position
    • Position of disconnect (avoids spawning in dangerous areas, Zeus can still teleport) ~Near vehicle if not free~

jonpas avatar Jul 13 '19 20:07 jonpas