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

Закрытые члены

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnReconnect (PlayerBase player)
 
override string GetDebugText ()
 
override string GetDebugTextSimple ()
 
override void OnTick (PlayerBase player, float deltaT)
 

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

Методы

◆ ActivateCondition()

override bool ActivateCondition ( PlayerBase player)
inlineprivate
13 {
14 return true;
15 }

◆ DeactivateCondition()

override bool DeactivateCondition ( PlayerBase player)
inlineprivate
18 {
19 return false;
20 }

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate
28 {
29 return m_Player.GetStatHeatComfort().Get().ToString();
30 }
DayZPlayer m_Player
Definition Hand_Events.c:42

Перекрестные ссылки m_Player.

◆ GetDebugTextSimple()

override string GetDebugTextSimple ( )
inlineprivate
33 {
34 return m_Player.GetStatHeatComfort().Get().ToString();
35 }

Перекрестные ссылки m_Player.

◆ Init()

override void Init ( )
inlineprivate
4 {
6 m_ID = eModifiers.MDF_TEMPERATURE;
10 }
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
void DisableDeactivateCheck()
Definition ModifierBase.c:86
float m_TickIntervalActive
Definition ModifierBase.c:18
float m_TickIntervalInactive
Definition ModifierBase.c:17
const int DEFAULT_TICK_TIME_INACTIVE
Definition ModifiersManager.c:29
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
eModifiers
Definition eModifiers.c:2

Перекрестные ссылки DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, DisableDeactivateCheck(), m_ID, m_TickIntervalActive, m_TickIntervalInactive и m_TrackActivatedTime.

◆ OnReconnect()

override void OnReconnect ( PlayerBase player)
inlineprivate
23 {
24
25 }

◆ OnTick()

override void OnTick ( PlayerBase player,
float deltaT )
inlineprivate
39 {
40 float heat_comfort = player.GetStatHeatComfort().Get();
41 float health_loss;
42 float value_normalized;
43
45 {
49 player.GetStatWater().Add(-water_loss);
50
52 {
56 }
57 }
59 {
63 player.GetStatEnergy().Add(-energy_loss);
64
66 {
70 }
71 }
72
73 if( health_loss != 0 )
74 {
75 player.AddHealth("","",-health_loss);
76 }
77 }
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
Definition Easing.c:3
static float EaseInQuad(float t)
Definition Easing.c:19
Definition EnMath.c:7
Definition EntityAI.c:95
Definition PlayerConstants.c:2
static const float WATER_LOSS_THRESHOLD_HC_PLUS_LOW
Definition PlayerConstants.c:111
static const float HEALTH_LOSS_HC_MINUS_LOW
Definition PlayerConstants.c:126
static const float ENERGY_LOSS_THRESHOLD_HC_MINUS_HIGH
Definition PlayerConstants.c:115
static const float ENERGY_LOSS_THRESHOLD_HC_MINUS_LOW
Definition PlayerConstants.c:114
static const float HEALTH_LOSS_HC_MINUS_HIGH
Definition PlayerConstants.c:127
static const float WATER_LOSS_THRESHOLD_HC_PLUS_HIGH
Definition PlayerConstants.c:112
static const float WATER_LOSS_HC_PLUS_HIGH
Definition PlayerConstants.c:118
static const float WATER_LOSS_HC_PLUS_LOW
Definition PlayerConstants.c:117
static const float ENERGY_LOSS_HC_MINUS_HIGH
Definition PlayerConstants.c:121
static const float ENERGY_LOSS_HC_MINUS_LOW
Definition PlayerConstants.c:120
static const float HEALTH_LOSS_HC_PLUS_LOW
Definition PlayerConstants.c:123
static const float HEALTH_LOSS_HC_PLUS_HIGH
Definition PlayerConstants.c:124
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.

Перекрестные ссылки Math::Clamp(), Easing::EaseInQuad(), PlayerConstants::ENERGY_LOSS_HC_MINUS_HIGH, PlayerConstants::ENERGY_LOSS_HC_MINUS_LOW, PlayerConstants::ENERGY_LOSS_THRESHOLD_HC_MINUS_HIGH, PlayerConstants::ENERGY_LOSS_THRESHOLD_HC_MINUS_LOW, PlayerConstants::HEALTH_LOSS_HC_MINUS_HIGH, PlayerConstants::HEALTH_LOSS_HC_MINUS_LOW, PlayerConstants::HEALTH_LOSS_HC_PLUS_HIGH, PlayerConstants::HEALTH_LOSS_HC_PLUS_LOW, Math::InverseLerp(), Math::Lerp(), PlayerConstants::WATER_LOSS_HC_PLUS_HIGH, PlayerConstants::WATER_LOSS_HC_PLUS_LOW, PlayerConstants::WATER_LOSS_THRESHOLD_HC_PLUS_HIGH и PlayerConstants::WATER_LOSS_THRESHOLD_HC_PLUS_LOW.


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