Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
AreaDamageLooped Class Reference
Inheritance diagram for AreaDamageLooped:
AreaDamageLoopedDeferred AreaDamageLoopedDeferred_NoVehicle

Protected Member Functions

void AreaDamageLooped (EntityAI parent, bool loopByObject=true)
float CalculateDamageScale (TriggerInsider insider, float deltaTime)
override void OnEnterServerEvent (TriggerInsider insider)
override void OnStayFinishServerEvent ()
override void OnStayServerEvent (TriggerInsider insider, float deltaTime)
override void OnStayStartServerEvent (int nrOfInsiders)
override void OnTriggerCreated ()
 Gets called when the trigger is spawned, so is the start and also a reset.
override void SetLoopInterval (float time)

Protected Attributes

float m_AccumulatedTime = 0.0
 How much time has accumulated.
int m_AmountOfLoops = 0
 Caching of the amount of loops that will be performed in this frame.
float m_CurrentTime = 0.0
 Current start time in seconds.
bool m_LoopByObject = true
 Decides if the looping will be using the Object as reference or the time since last update loop.
float m_LoopInterval = 1.0
 Loop interval in seconds.
float m_PreviousTime = 0.0
 Previous start time in seconds.

Detailed Description

Definition at line 1 of file areadamagelooped.c.

Constructor & Destructor Documentation

◆ AreaDamageLooped()

void AreaDamageLooped ( EntityAI parent,
bool loopByObject = true )
inlineprotected

Definition at line 18 of file areadamagelooped.c.

References m_LoopByObject.

Member Function Documentation

◆ CalculateDamageScale()

float CalculateDamageScale ( TriggerInsider insider,
float deltaTime )
inlineprotected

◆ OnEnterServerEvent()

override void OnEnterServerEvent ( TriggerInsider insider)
inlineprotected

Definition at line 37 of file areadamagelooped.c.

References m_LoopByObject, and OnEvaluateDamageEx().

◆ OnStayFinishServerEvent()

override void OnStayFinishServerEvent ( )
inlineprotected

Definition at line 65 of file areadamagelooped.c.

References m_AccumulatedTime, m_AmountOfLoops, and m_LoopInterval.

◆ OnStayServerEvent()

override void OnStayServerEvent ( TriggerInsider insider,
float deltaTime )
inlineprotected

Definition at line 57 of file areadamagelooped.c.

References OnEvaluateDamageEx().

◆ OnStayStartServerEvent()

override void OnStayStartServerEvent ( int nrOfInsiders)
inlineprotected

◆ OnTriggerCreated()

override void OnTriggerCreated ( )
inlineprotected

Gets called when the trigger is spawned, so is the start and also a reset.

Definition at line 24 of file areadamagelooped.c.

References g_Game, m_AccumulatedTime, and m_PreviousTime.

◆ SetLoopInterval()

override void SetLoopInterval ( float time)
inlineprotected

Definition at line 32 of file areadamagelooped.c.

References m_LoopInterval.

Referenced by ItemBase::CreateAreaDamage().

Field Documentation

◆ m_AccumulatedTime

float m_AccumulatedTime = 0.0
protected

How much time has accumulated.

Definition at line 8 of file areadamagelooped.c.

Referenced by OnStayFinishServerEvent(), OnStayStartServerEvent(), and OnTriggerCreated().

◆ m_AmountOfLoops

int m_AmountOfLoops = 0
protected

Caching of the amount of loops that will be performed in this frame.

Definition at line 13 of file areadamagelooped.c.

Referenced by CalculateDamageScale(), OnStayFinishServerEvent(), and OnStayStartServerEvent().

◆ m_CurrentTime

float m_CurrentTime = 0.0
protected

Current start time in seconds.

Definition at line 4 of file areadamagelooped.c.

Referenced by CalculateDamageScale(), and OnStayStartServerEvent().

◆ m_LoopByObject

bool m_LoopByObject = true
protected

Decides if the looping will be using the Object as reference or the time since last update loop.

Definition at line 16 of file areadamagelooped.c.

Referenced by AreaDamageLooped(), CalculateDamageScale(), and OnEnterServerEvent().

◆ m_LoopInterval

float m_LoopInterval = 1.0
protected

Loop interval in seconds.

Definition at line 10 of file areadamagelooped.c.

Referenced by CalculateDamageScale(), OnStayFinishServerEvent(), OnStayStartServerEvent(), and SetLoopInterval().

◆ m_PreviousTime

float m_PreviousTime = 0.0
protected

Previous start time in seconds.

Definition at line 6 of file areadamagelooped.c.

Referenced by OnStayStartServerEvent(), and OnTriggerCreated().


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