DayZ 1.24
Loading...
Searching...
No Matches
AreaDamageLoopedDeferred_NoVehicle Class Reference

A particular version of the deferred loop used to not damage players inside vehicles. More...

Inheritance diagram for AreaDamageLoopedDeferred_NoVehicle:
[legend]
Collaboration diagram for AreaDamageLoopedDeferred_NoVehicle:
[legend]

Private Member Functions

override bool OnEvaluateDamageEx (TriggerInsider insider, float deltaTime)
 
- Private Member Functions inherited from AreaDamageLoopedDeferred
override void SetDeferDuration (float time)
 
float CalculateDamageScale (TriggerInsider insider, float deltaTime)
 

Additional Inherited Members

- Private Attributes inherited from AreaDamageLoopedDeferred
float m_DeferDuration = 1.0
 Time the damage should be deferred in seconds.
 

Detailed Description

A particular version of the deferred loop used to not damage players inside vehicles.

Definition at line 2 of file AreaDamageLoopedDeferred_NoVehicle.c.

Member Function Documentation

◆ OnEvaluateDamageEx()

override bool AreaDamageLoopedDeferred_NoVehicle::OnEvaluateDamageEx ( TriggerInsider insider,
float deltaTime )
inlineprivate

Definition at line 4 of file AreaDamageLoopedDeferred_NoVehicle.c.

5 {
6 // For case where player is inside vehicle
7 if (insider.GetObject().IsMan())
8 {
10 if (playerInsider.GetCommand_Vehicle())
11 return false;
12 }
13
14 return super.OnEvaluateDamageEx(insider, deltaTime);
15 }
Object GetObject()
Definition Trigger.c:28

References TriggerInsider::GetObject().


The documentation for this class was generated from the following file: