DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс AreaDamageLoopedDeferred

Deferred version of AreaDamageLooped. Подробнее...

+ Граф наследования:AreaDamageLoopedDeferred:

Защищенные члены

override void SetDeferDuration (float time)
 
float CalculateDamageScale (TriggerInsider insider, float deltaTime)
 

Защищенные данные

float m_DeferDuration = 1.0
 Time the damage should be deferred in seconds.
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от AreaDamageLooped
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 ()
 
float CalculateDamageScale (TriggerInsider insider, float deltaTime)
 
- Закрытые данные унаследованные от AreaDamageLooped
float m_CurrentTime = 0.0
 Current start time in seconds.
 
float m_PreviousTime = 0.0
 Previous start time in seconds.
 
float m_AccumulatedTime = 0.0
 How much time has accumulated.
 
float m_LoopInterval = 1.0
 Loop interval in seconds.
 
int m_AmountOfLoops = 0
 Caching of the amount of loops that will be performed in this frame.
 
bool m_LoopByObject = true
 Decides if the looping will be using the Object as reference or the time since last update loop.
 

Подробное описание

Deferred version of AreaDamageLooped.

Методы

◆ CalculateDamageScale()

float CalculateDamageScale ( TriggerInsider insider,
float deltaTime )
inlineprotected
13 {
14 if ( m_DeferDuration > 0 && (insider.lastUpdated - insider.timeEntered) >= m_DeferDuration )
15 return super.CalculateDamageScale(insider, deltaTime);
16
17 return 0;
18 }
float m_DeferDuration
Time the damage should be deferred in seconds.
Definition AreaDamageLoopedDeferred.c:5
Definition EntityAI.c:95
float lastUpdated
Last time the object was updated in seconds, is used for calculating deltaTime.
Definition Trigger.c:16
float timeEntered
Time the object was first seen in seconds.
Definition Trigger.c:13

Перекрестные ссылки TriggerInsider::lastUpdated, m_DeferDuration и TriggerInsider::timeEntered.

◆ SetDeferDuration()

override void SetDeferDuration ( float time)
inlineprotected
8 {
10 }

Перекрестные ссылки m_DeferDuration.

Поля

◆ m_DeferDuration

float m_DeferDuration = 1.0
protected

Time the damage should be deferred in seconds.

Используется в CalculateDamageScale() и SetDeferDuration().


Объявления и описания членов класса находятся в файле: