DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс TremorMdfr
+ Граф наследования:TremorMdfr:

Закрытые члены

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnTick (PlayerBase player, float deltaT)
 

Закрытые данные

const float TREMOR_DECREMENT_PER_SEC = 0.008
 

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

Методы

◆ ActivateCondition()

override bool ActivateCondition ( PlayerBase player)
inlineprivate
14 {
15 if ( player.GetStatTremor().Get() > player.GetStatTremor().GetMin() )
16 {
17 return true;
18 }
19 else
20 {
21 return false;
22 }
23 }
Definition EntityAI.c:95

◆ DeactivateCondition()

override bool DeactivateCondition ( PlayerBase player)
inlineprivate
26 {
27 if ( player.GetStatTremor().Get() == player.GetStatTremor().GetMin() )
28 {
29 return true;
30 }
31 else
32 {
33 return false;
34 }
35 }

◆ Init()

override void Init ( )
inlineprivate
6 {
8 m_ID = eModifiers.MDF_TREMOR;
11 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
overall time this modifier was active
Definition ModifierBase.c:14
float m_TickIntervalActive
Definition ModifierBase.c:18
float m_TickIntervalInactive
Definition ModifierBase.c:17
const int DEFAULT_TICK_TIME_INACTIVE
Definition ModifiersManager.c:29
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
eModifiers
Definition eModifiers.c:2

Перекрестные ссылки DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, m_ID, m_TickIntervalActive, m_TickIntervalInactive и m_TrackActivatedTime.

◆ OnTick()

override void OnTick ( PlayerBase player,
float deltaT )
inlineprivate
38 {
39 player.GetStatTremor().Add( (TREMOR_DECREMENT_PER_SEC*deltaT) );
40
41 //Mirek: SetShakeBodyFactor is removed now, because it worked only on legacy animation system
42 //player.SetShakeBodyFactor(player.GetStatTremor().Get());
43 //_person SetBodyShaking tremor; ASK GAMEPLAY PROGRAMMERS TO EXPOSE THIS ENGINE FUNCTION IN ENSCRIPT
44 //PrintString( "Tremor:" + ToString(tremor) );
45 }
const float TREMOR_DECREMENT_PER_SEC
Definition Tremor.c:3

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

Поля

◆ TREMOR_DECREMENT_PER_SEC

const float TREMOR_DECREMENT_PER_SEC = 0.008
private

Используется в OnTick().


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