Feature to prevent entity damage when ejecting from vehicle #32

Closed
opened 2024-02-20 15:34:38 -06:00 by Randy · 1 comment
Member

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?

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?
IndigoFox added reference develop 2024-02-22 10:33:10 -06:00
Owner

Implemented in 5d50375256

5d50375256/framework/client/functions/fn_staticLineProtection.sqf

Uses GetOutMan EH on the player, triggers locally the moment the player leaves the vehicle
Checks to ensure:

  • the 'hooked up' variable is true from VS Static Line
  • the vehicle they were in isKindOf Plane or Helicopter and is above 100m AGL
  • it was an eject action, not a get out action

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.

Implemented in 5d503752561d1e7e1cdad779d509f8770e52cc33 https://gitea.iceberg-gaming.com/hizumi/MissionTemplate/src/commit/5d503752561d1e7e1cdad779d509f8770e52cc33/framework/client/functions/fn_staticLineProtection.sqf Uses GetOutMan EH on the player, triggers locally the moment the player leaves the vehicle Checks to ensure: - the 'hooked up' variable is true from VS Static Line - the vehicle they were in isKindOf Plane or Helicopter and is above 100m AGL - it was an eject action, not a get out action 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.
IndigoFox self-assigned this 2024-02-22 10:33:23 -06:00
hizumi added the Kind/Feature label 2024-02-22 22:18:12 -06:00
hizumi added this to the Continuous Development project 2024-02-23 10:19:33 -06:00
Sign in to join this conversation.
No Label Kind/Feature
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 17th-Ranger-Battalion-ORG/MissionTemplate#32