genesis92x / VcomAI-3.0

Vcom AI 3.0
75 stars 39 forks source link

AI tends to dismount from a flying helicopter instead of waiting it lands #172

Closed GoldJohnKing closed 4 months ago

GoldJohnKing commented 3 years ago

Describe the bug When being attacked, passengers inside a helicopter tends to dismount immediately then drop and die, instead of wating the heli land then dismount.

To Reproduce Steps to reproduce the behavior:

  1. Spawn a OPFOR heli with full crews
  2. Spawn a BLUFOR heli with full crews
  3. See them fight
  4. When one's damage value reaches certain level, even if the heli is still functional, all passengers would dismount then drop and die.

Expected behavior When being hit to a certain damage level, transport helicopter should try to land immediately then dismount AI, instead of just letting them out without considering height.

https://github.com/genesis92x/VcomAI-3.0/blob/42092552cbc79018d0c002f85da70797f1d6fea2/VcomAI340.Stratis/Vcom/Functions/VCM_Functions/fn_VehicleCheck.sqf#L50-L59

Screenshots Arma3_x64 2020-12-24 20-02-29

VCOM Version:

Additional mods used: