Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
areadamageloopeddeferred_novehicle.c
Go to the documentation of this file.
1
class
AreaDamageLoopedDeferred_NoVehicle
:
AreaDamageLoopedDeferred
3
{
4
override
bool
OnEvaluateDamageEx(
TriggerInsider
insider,
float
deltaTime )
5
{
6
// For case where player is inside vehicle
7
if
( insider.GetObject().IsMan() )
8
{
9
PlayerBase
playerInsider =
PlayerBase
.Cast( insider.GetObject() );
10
if
( playerInsider.GetCommand_Vehicle() )
11
return
false
;
12
}
13
14
return
super.OnEvaluateDamageEx( insider, deltaTime );
15
}
16
}
TriggerInsider
The object which is in a trigger and its metadata.
Definition:
trigger.c:2
PlayerBase
Definition:
playerbaseclient.c:1
AreaDamageLoopedDeferred_NoVehicle
A particular version of the deferred loop used to not damage players inside vehicles.
Definition:
areadamageloopeddeferred_novehicle.c:2
AreaDamageLoopedDeferred
Deferred version of AreaDamageLooped.
Definition:
areadamageloopeddeferred.c:2
DAYZ
scripts_v1.24.157551
scripts
world
classes
areadamage
areadamagenew
areadamageloopeddeferred_novehicle.c
Generated by
1.8.17