Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
areadamageloopeddeferred.c
Go to the documentation of this file.
1
class
AreaDamageLoopedDeferred
:
AreaDamageLooped
3
{
5
protected
float
m_DeferDuration = 1.0;
6
7
override
void
SetDeferDuration(
float
time)
8
{
9
m_DeferDuration
= time;
10
}
11
12
override
protected
float
CalculateDamageScale(
TriggerInsider
insider,
float
deltaTime)
13
{
14
if
( m_DeferDuration > 0 && (insider.lastUpdated - insider.timeEntered) >= m_DeferDuration )
15
return
super.CalculateDamageScale(insider, deltaTime);
16
17
return
0;
18
}
19
}
TriggerInsider
The object which is in a trigger and its metadata.
Definition:
trigger.c:2
AreaDamageLoopedDeferred
Deferred version of AreaDamageLooped.
Definition:
areadamageloopeddeferred.c:2
m_DeferDuration
AreaDamageOnce m_DeferDuration
Time the damage should be deferred in seconds.
AreaDamageLooped
Definition:
areadamagelooped.c:1
DAYZ
scripts_v1.24.157551
scripts
world
classes
areadamage
areadamagenew
areadamageloopeddeferred.c
Generated by
1.8.17