DayZ 1.24
Loading...
Searching...
No Matches
Tremor.c
Go to the documentation of this file.
2{
3 private const float TREMOR_DECREMENT_PER_SEC = 0.008;
4
12
14 {
15 if (player.GetStatTremor().Get() > player.GetStatTremor().GetMin())
16 return true;
17 else
18 return false;
19 }
20
22 {
23 if (player.GetStatTremor().Get() == player.GetStatTremor().GetMin())
24 return true;
25 else
26 return false;
27 }
28
29 override void OnTick(PlayerBase player, float deltaT)
30 {
31 player.GetStatTremor().Add((TREMOR_DECREMENT_PER_SEC * deltaT));
32
33 //Mirek: SetShakeBodyFactor is removed now, because it worked only on legacy animation system
34 //player.SetShakeBodyFactor(player.GetStatTremor().Get());
35 //_person SetBodyShaking tremor; ASK GAMEPLAY PROGRAMMERS TO EXPOSE THIS ENGINE FUNCTION IN ENSCRIPT
36 //PrintString( "Tremor:" + ToString(tremor) );
37 }
38};
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
override bool ActivateCondition(PlayerBase player)
Definition Tremor.c:13
override void OnTick(PlayerBase player, float deltaT)
Definition Tremor.c:29
override void Init()
Definition Tremor.c:5
const float TREMOR_DECREMENT_PER_SEC
Definition Tremor.c:3
override bool DeactivateCondition(PlayerBase player)
Definition Tremor.c:21
eModifiers
Definition eModifiers.c:2