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

Protected Member Functions

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

Protected Attributes

const float HEATBUFFER_SHOW = 25.0
 
const float HEATBUFFER_HIDE = 20.0
 

Detailed Description

Definition at line 1 of file HeatBuffer.c.

Member Function Documentation

◆ ActivateCondition()

override bool HeatBufferMdfr::ActivateCondition ( PlayerBase player)
inlineprotected

Definition at line 19 of file HeatBuffer.c.

20 {
21 float heatbuffer = player.GetStatHeatBuffer().Get();
23 return true;
24 else
25 return false;
26 }
const float HEATBUFFER_SHOW
Definition HeatBuffer.c:3

References HEATBUFFER_SHOW.

◆ DeactivateCondition()

override bool HeatBufferMdfr::DeactivateCondition ( PlayerBase player)
inlineprotected

Definition at line 46 of file HeatBuffer.c.

47 {
48 float heatbuffer = player.GetStatHeatBuffer().Get();
50 return true;
51 else
52 return false;
53 }
const float HEATBUFFER_HIDE
Definition HeatBuffer.c:4

References HEATBUFFER_HIDE.

◆ Init()

override void HeatBufferMdfr::Init ( )
inlineprotected

Definition at line 6 of file HeatBuffer.c.

7 {
9 m_ID = eModifiers.MDF_HEATBUFFER;
12 }
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
eModifiers
Definition eModifiers.c:2

References DEFAULT_TICK_TIME_ACTIVE, m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void HeatBufferMdfr::OnActivate ( PlayerBase player)
inlineprotected

Definition at line 28 of file HeatBuffer.c.

29 {
30 if (player.GetNotifiersManager())
31 {
32 //player.GetNotifiersManager().ActivateByType(eNotifiers.NTF_HEATBUFFER);
33 player.ToggleHeatBufferVisibility(true);
34 }
35 }

◆ OnDeactivate()

override void HeatBufferMdfr::OnDeactivate ( PlayerBase player)
inlineprotected

Definition at line 37 of file HeatBuffer.c.

38 {
39 if (player.GetNotifiersManager())
40 {
41 //player.GetNotifiersManager().DeactivateByType(eNotifiers.NTF_HEATBUFFER);
42 player.ToggleHeatBufferVisibility(false);
43 }
44 }

◆ OnTick()

override void HeatBufferMdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprotected

Definition at line 14 of file HeatBuffer.c.

15 {
16
17 }

Member Data Documentation

◆ HEATBUFFER_HIDE

const float HeatBufferMdfr::HEATBUFFER_HIDE = 20.0
protected

Definition at line 4 of file HeatBuffer.c.

Referenced by DeactivateCondition().

◆ HEATBUFFER_SHOW

const float HeatBufferMdfr::HEATBUFFER_SHOW = 25.0
protected

Definition at line 3 of file HeatBuffer.c.

Referenced by ActivateCondition().


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