DayZ 1.24
Loading...
Searching...
No Matches
HealthMdfr Class Reference
Inheritance diagram for HealthMdfr:
[legend]
Collaboration diagram for HealthMdfr:
[legend]

Private Member Functions

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

Private Attributes

float m_LastHealthLevel
 
float m_LastBloodLevel
 

Detailed Description

Definition at line 1 of file Health.c.

Member Function Documentation

◆ ActivateCondition()

override bool HealthMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 16 of file Health.c.

17 {
18 return true;
19 }

◆ DeactivateCondition()

override bool HealthMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 22 of file Health.c.

23 {
24 return false;
25 }

◆ Init()

override void HealthMdfr::Init ( )
inlineprivate

Definition at line 7 of file Health.c.

8 {
10 m_ID = eModifiers.MDF_HEALTH;
14 }
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
eModifiers
Definition eModifiers.c:2

References DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, DisableDeactivateCheck(), m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnTick()

override void HealthMdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprivate

Definition at line 27 of file Health.c.

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 }
float m_LastHealthLevel
Definition Health.c:3
float m_LastBloodLevel
Definition Health.c:4
Definition EnMath.c:7
static proto int AbsInt(int i)
Returns absolute value.

References Math::AbsInt(), m_LastBloodLevel, and m_LastHealthLevel.

Member Data Documentation

◆ m_LastBloodLevel

float HealthMdfr::m_LastBloodLevel
private

Definition at line 4 of file Health.c.

Referenced by OnTick().

◆ m_LastHealthLevel

float HealthMdfr::m_LastHealthLevel
private

Definition at line 3 of file Health.c.

Referenced by OnTick().


The documentation for this class was generated from the following file: