Private Member Functions | |
| void | AreaDamageLooped (EntityAI parent, bool loopByObject=true) |
| override void | OnTriggerCreated () |
| Gets called when the trigger is spawned, so is the start and also a reset. | |
| override void | SetLoopInterval (float time) |
| override void | OnEnterServerEvent (TriggerInsider insider) |
| override void | OnStayStartServerEvent (int nrOfInsiders) |
| override void | OnStayServerEvent (TriggerInsider insider, float deltaTime) |
| override void | OnStayFinishServerEvent () |
| override protected float | CalculateDamageScale (TriggerInsider insider, float deltaTime) |
Private Attributes | |
| protected float | m_CurrentTime = 0.0 |
| Current start time in seconds. | |
| protected float | m_PreviousTime = 0.0 |
| Previous start time in seconds. | |
| protected float | m_AccumulatedTime = 0.0 |
| How much time has accumulated. | |
| protected float | m_LoopInterval = 1.0 |
| Loop interval in seconds. | |
| protected int | m_AmountOfLoops = 0 |
| Caching of the amount of loops that will be performed in this frame. | |
| protected bool | m_LoopByObject = true |
| Decides if the looping will be using the Object as reference or the time since last update loop. | |
|
inlineprivate |
References m_LoopByObject.
|
inlineprivate |
References AreaDamageTriggerInsider::lastDamaged, m_AmountOfLoops, m_CurrentTime, m_LoopByObject, and m_LoopInterval.
|
inlineprivate |
References m_LoopByObject, and OnEvaluateDamageEx().
|
inlineprivate |
References m_AccumulatedTime, m_AmountOfLoops, and m_LoopInterval.
|
inlineprivate |
References OnEvaluateDamageEx().
|
inlineprivate |
References g_Game, m_AccumulatedTime, m_AmountOfLoops, m_CurrentTime, m_LoopInterval, and m_PreviousTime.
|
inlineprivate |
Gets called when the trigger is spawned, so is the start and also a reset.
References g_Game, m_AccumulatedTime, and m_PreviousTime.
|
inlineprivate |
References m_LoopInterval.
Referenced by ItemBase::CreateAreaDamage().
|
private |
How much time has accumulated.
Referenced by OnStayFinishServerEvent(), OnStayStartServerEvent(), and OnTriggerCreated().
|
private |
Caching of the amount of loops that will be performed in this frame.
Referenced by CalculateDamageScale(), OnStayFinishServerEvent(), and OnStayStartServerEvent().
|
private |
Current start time in seconds.
Referenced by CalculateDamageScale(), and OnStayStartServerEvent().
|
private |
Decides if the looping will be using the Object as reference or the time since last update loop.
Referenced by AreaDamageLooped(), CalculateDamageScale(), and OnEnterServerEvent().
|
private |
Loop interval in seconds.
Referenced by CalculateDamageScale(), OnStayFinishServerEvent(), OnStayStartServerEvent(), and SetLoopInterval().
|
private |
Previous start time in seconds.
Referenced by OnStayStartServerEvent(), and OnTriggerCreated().