Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
bloodnotfr.c
Go to the documentation of this file.
1class BloodNotfr: NotifierBase
2{
3 protected const float DEC_TRESHOLD_LOW = 0;
4 protected const float DEC_TRESHOLD_MED = -12;
5 protected const float DEC_TRESHOLD_HIGH = -22;
6 protected const float INC_TRESHOLD_LOW = 0;
7 protected const float INC_TRESHOLD_MED = 3;
8 protected const float INC_TRESHOLD_HIGH = 6;
9
10 override int GetNotifierType()
11 {
12 return eNotifiers.NTF_BLOOD;
13 }
14
15 override void DisplayTendency(float delta)
16 {
18
19 //DSLevels level = DetermineLevel( GetObservedValue(), PlayerConstants.THRESHOLD_BLOOD_WARNING, PlayerConstants.THRESHOLD_BLOOD_CRITICAL, PlayerConstants.THRESHOLD_BLOOD_BLINKING, PlayerConstants.THRESHOLD_BLOOD_EXTRA );
20 DisplayElementTendency dis_elm = DisplayElementTendency.Cast(GetVirtualHud().GetElement(eDisplayElements.DELM_TDCY_BLOOD));
21
22 EStatLevels blood_level = m_Player.GetStatLevelBlood();
23
24 if( dis_elm )
25 {
26 dis_elm.SetTendency(tendency);
27 dis_elm.SetSeriousnessLevel(blood_level);
28 }
29 }
30
31 override float GetObservedValue()
32 {
33 return m_Player.GetHealth("GlobalHealth", "Blood");
34 }
35};
const float DEC_TRESHOLD_MED
Definition bloodnotfr.c:4
const float DEC_TRESHOLD_HIGH
Definition bloodnotfr.c:5
const float INC_TRESHOLD_MED
Definition bloodnotfr.c:7
const float DEC_TRESHOLD_LOW
Definition bloodnotfr.c:3
override void DisplayTendency(float delta)
Definition bloodnotfr.c:15
const float INC_TRESHOLD_LOW
Definition bloodnotfr.c:6
const float INC_TRESHOLD_HIGH
Definition bloodnotfr.c:8
override float GetObservedValue()
Definition bloodnotfr.c:31
override int GetNotifierType()
Definition bloodnotfr.c:10
int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
DisplayElementBase GetElement(eDisplayElements element_id)
EStatLevels
Definition estatlevels.c:2
eNotifiers