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

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

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
16 {
17 return true;
18 }

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

◆ DeactivateCondition()

override bool DeactivateCondition ( PlayerBase player)
inlineprivate
21 {
22 return false;
23 }

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

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate
31 {
32 //return m_Player.GetStatHeatComfort().Get().ToString();
33 }

◆ GetDebugTextSimple()

override string GetDebugTextSimple ( )
inlineprivate
36 {
37 //return m_Player.GetStatHeatComfort().Get().ToString();
38 }

◆ Init()

override void Init ( )
inlineprivate
6 {
8 m_ID = eModifiers.MDF_BREATH_VAPOUR;
12
13 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
Definition ModifierBase.c:15
void DisableDeactivateCheck()
Definition ModifierBase.c:83
float m_TickIntervalActive
Definition ModifierBase.c:19
float m_TickIntervalInactive
Definition ModifierBase.c:18
const int DEFAULT_TICK_TIME_INACTIVE
Definition ModifiersManager.c:33
eModifiers
Definition eModifiers.c:2

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

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

◆ OnReconnect()

override void OnReconnect ( PlayerBase player)
inlineprivate
26 {
27
28 }

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

◆ OnTick()

override void OnTick ( PlayerBase player,
float deltaT )
inlineprivate
42 {
43 if( !player.m_Environment.IsTemperatureSet() )
44 return;
45 float air_temperature = player.m_Environment.GetTemperature();
46 int level = 0;//default
48 {
50 value = Math.Clamp(value,0,1);
52 }
54 {
56 }
57 if( level != player.m_BreathVapour )
58 {
59 player.m_BreathVapour = level;
60 player.SetSynchDirty();
61 }
62 }
const int BREATH_VAPOUR_LEVEL_MAX
Definition BreathVapourMdfr.c:1
Definition EnMath.c:7
Definition EntityAI.c:95
Definition PlayerConstants.c:2
static const float BREATH_VAPOUR_THRESHOLD_HIGH
Definition PlayerConstants.c:170
static const float BREATH_VAPOUR_THRESHOLD_LOW
Definition PlayerConstants.c:171
static proto float Round(float f)
Returns mathematical round of value.
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'.

Перекрестные ссылки BREATH_VAPOUR_LEVEL_MAX, PlayerConstants::BREATH_VAPOUR_THRESHOLD_HIGH, PlayerConstants::BREATH_VAPOUR_THRESHOLD_LOW, Math::Clamp(), Math::InverseLerp(), Math::Lerp() и Math::Round().

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


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