DayZ 1.24
Loading...
Searching...
No Matches
HeatBuffer.c
Go to the documentation of this file.
2{
3 protected const float HEATBUFFER_SHOW = 25.0;
4 protected const float HEATBUFFER_HIDE = 20.0;
5
6 override void Init()
7 {
9 m_ID = eModifiers.MDF_HEATBUFFER;
12 }
13
14 override void OnTick(PlayerBase player, float deltaT)
15 {
16
17 }
18
20 {
21 float heatbuffer = player.GetStatHeatBuffer().Get();
23 return true;
24 else
25 return false;
26 }
27
29 {
30 if (player.GetNotifiersManager())
31 {
32 //player.GetNotifiersManager().ActivateByType(eNotifiers.NTF_HEATBUFFER);
33 player.ToggleHeatBufferVisibility(true);
34 }
35 }
36
38 {
39 if (player.GetNotifiersManager())
40 {
41 //player.GetNotifiersManager().DeactivateByType(eNotifiers.NTF_HEATBUFFER);
42 player.ToggleHeatBufferVisibility(false);
43 }
44 }
45
47 {
48 float heatbuffer = player.GetStatHeatBuffer().Get();
50 return true;
51 else
52 return false;
53 }
54};
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_ACTIVE
override void OnTick(PlayerBase player, float deltaT)
Definition HeatBuffer.c:14
const float HEATBUFFER_SHOW
Definition HeatBuffer.c:3
override bool DeactivateCondition(PlayerBase player)
Definition HeatBuffer.c:46
const float HEATBUFFER_HIDE
Definition HeatBuffer.c:4
override void Init()
Definition HeatBuffer.c:6
override bool ActivateCondition(PlayerBase player)
Definition HeatBuffer.c:19
override void OnActivate(PlayerBase player)
Definition HeatBuffer.c:28
override void OnDeactivate(PlayerBase player)
Definition HeatBuffer.c:37
eModifiers
Definition eModifiers.c:2