DayZ 1.24
Loading...
Searching...
No Matches
Health.c
Go to the documentation of this file.
2{
3 private float m_LastHealthLevel;
4 private float m_LastBloodLevel;
5
6
15
17 {
18 return true;
19 }
20
21
23 {
24 return false;
25 }
26
27 override void OnTick(PlayerBase player, float deltaT)
28 {
29
30 float blood = player.GetHealth("GlobalHealth", "Blood");
31 float health = player.GetHealth("GlobalHealth", "Health");
32
35 //if( player.m_NotifiersManager ) player.m_NotifiersManager.FindNotifier(eNotifiers.NTF_LIVES).DisplayTendency(healthdelta);
37
40 //if( player.m_NotifiersManager ) player.m_NotifiersManager.FindNotifier(eNotifiers.NTF_BLOOD).DisplayTendency(blooddelta);
42
43 }
44};
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
void DisableDeactivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
override void Init()
Definition Health.c:7
float m_LastHealthLevel
Definition Health.c:3
float m_LastBloodLevel
Definition Health.c:4
override void OnTick(PlayerBase player, float deltaT)
Definition Health.c:27
override bool DeactivateCondition(PlayerBase player)
Definition Health.c:22
override bool ActivateCondition(PlayerBase player)
Definition Health.c:16
Definition EnMath.c:7
eModifiers
Definition eModifiers.c:2
static proto int AbsInt(int i)
Returns absolute value.