DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс HeatBufferMdfr
+ Граф наследования:HeatBufferMdfr:

Защищенные члены

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnActivate (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override void Tick (float delta_time)
 
int GetHeatBufferStage ()
 

Защищенные данные

int m_Stage
 
int m_StageLast
 
float m_Value
 
const float HEATBUFFER_SHOW = 25.0
 DEPRECATED.
 
const float HEATBUFFER_HIDE = 20.0
 

Закрытые данные

const int NUMBER_OF_STAGES = 4
 
const float STAGE_THRESHOLDS [NUMBER_OF_STAGES] = {0.0, 0.33, 0.66, 1.0}
 

Подробное описание

Методы

◆ ActivateCondition()

override bool ActivateCondition ( PlayerBase player)
inlineprotected
21 {
22 m_Value = player.GetStatHeatBuffer().Get() / player.GetStatHeatBuffer().GetMax();
24 return true;
25
26 return false;
27 }
const float STAGE_THRESHOLDS[NUMBER_OF_STAGES]
Definition HeatBuffer.c:4
float m_Value
Definition HeatBuffer.c:9
Definition EntityAI.c:95

Перекрестные ссылки m_Value и STAGE_THRESHOLDS.

◆ DeactivateCondition()

override bool DeactivateCondition ( PlayerBase player)
inlineprotected
30 {
31 m_Value = player.GetStatHeatBuffer().Get() / player.GetStatHeatBuffer().GetMax();;
32 if (m_Value <= STAGE_THRESHOLDS[0])
33 return true;
34
35 return false;
36 }

Перекрестные ссылки m_Value и STAGE_THRESHOLDS.

◆ GetHeatBufferStage()

int GetHeatBufferStage ( )
inlineprotected
65 {
67 return 1;
68 else if (m_Value >= STAGE_THRESHOLDS[1] && m_Value < STAGE_THRESHOLDS[2])
69 return 2;
70 else if (m_Value >= STAGE_THRESHOLDS[2])
71 return 3;
72
73 return 0;
74 }

Перекрестные ссылки m_Value и STAGE_THRESHOLDS.

Используется в OnActivate(), OnDeactivate() и Tick().

◆ Init()

override void Init ( )
inlineprotected
12 {
15 m_ID = eModifiers.MDF_HEATBUFFER;
18 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
overall time this modifier was active
Definition ModifierBase.c:14
bool m_AnalyticsStatsEnabled
Definition ModifierBase.c:31
float m_TickIntervalActive
Definition ModifierBase.c:18
float m_TickIntervalInactive
Definition ModifierBase.c:17
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
eModifiers
Definition eModifiers.c:2

Перекрестные ссылки DEFAULT_TICK_TIME_ACTIVE, m_AnalyticsStatsEnabled, m_ID, m_TickIntervalActive, m_TickIntervalInactive и m_TrackActivatedTime.

◆ OnActivate()

override void OnActivate ( PlayerBase player)
inlineprotected
39 {
40 player.ToggleHeatBufferVisibility(GetHeatBufferStage());
41 }
int GetHeatBufferStage()
Definition HeatBuffer.c:64

Перекрестные ссылки GetHeatBufferStage().

◆ OnDeactivate()

override void OnDeactivate ( PlayerBase player)
inlineprotected
44 {
45 player.ToggleHeatBufferVisibility(GetHeatBufferStage());
46 //Protection against influenza with duration
47 player.SetTemporaryResistanceToAgent(eAgents.INFLUENZA, 300);
48 }
eAgents
Definition EAgents.c:3

Перекрестные ссылки GetHeatBufferStage().

◆ Tick()

override void Tick ( float delta_time)
inlineprotected
51 {
52 super.Tick(delta_time);
53
54 m_Value = m_Player.GetStatHeatBuffer().Get() / m_Player.GetStatHeatBuffer().GetMax();
56
57 if (m_Stage != m_StageLast)
58 {
59 m_Player.ToggleHeatBufferVisibility(m_Stage);
61 }
62 }
DayZPlayer m_Player
Definition Hand_Events.c:42
int m_StageLast
Definition HeatBuffer.c:7
int m_Stage
Definition HeatBuffer.c:6

Перекрестные ссылки GetHeatBufferStage(), m_Player, m_Stage, m_StageLast и m_Value.

Поля

◆ HEATBUFFER_HIDE

const float HEATBUFFER_HIDE = 20.0
protected

◆ HEATBUFFER_SHOW

const float HEATBUFFER_SHOW = 25.0
protected

DEPRECATED.

◆ m_Stage

int m_Stage
protected

Используется в Tick().

◆ m_StageLast

int m_StageLast
protected

Используется в Tick().

◆ m_Value

float m_Value
protected

◆ NUMBER_OF_STAGES

const int NUMBER_OF_STAGES = 4
private

Используется в ManBase::Init() и IngameHudHeatBuffer::Update().

◆ STAGE_THRESHOLDS

const float STAGE_THRESHOLDS[NUMBER_OF_STAGES] = {0.0, 0.33, 0.66, 1.0}
private
4{0.0, 0.33, 0.66, 1.0};

Используется в ActivateCondition(), DeactivateCondition(), GetHeatBufferStage() и IngameHudHeatBuffer::Update().


Объявления и описания членов класса находятся в файле: