Feature to prevent entity damage when ejecting from vehicle #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When jumping out of planes or helicopters in Airborne, players can collide, causing one or both to go unconscious, causing a free fall without static line, or massive damages with static line.
Aside from the option of just jumping out slower (which can still result in the above situation), would it be possible to have a temporary immunity to players and vehicles when ejecting? i.e. prevent collisions altogether or prevent damage, until the player is clear of the aircraft?
Implemented in
5d503752565d50375256/framework/client/functions/fn_staticLineProtection.sqfUses GetOutMan EH on the player, triggers locally the moment the player leaves the vehicle
Checks to ensure:
The above conditions correspond to the method by which VS Static Line ejects the player when static line jump is used.
The player is made immediately invulnerable.
Within 2 seconds, if the player 'enters' a parachute, the chute is also made invulnerable.
5 seconds later, damage is re-enabled for the player and the chute.
If a chute is not entered within 2 seconds, damage is simply re-enabled on the player to not allow exploit.