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

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

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

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

float m_Time
 
float m_NextEvent
 

Закрытые статические данные

static const float EVENT_INTERVAL_MIN = 12
 
static const float EVENT_INTERVAL_MAX = 18
 

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

Методы

◆ ActivateCondition()

override bool ActivateCondition ( PlayerBase player)
inlineprivate
20 {
21 return (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_CHOLERA) || player.GetModifiersManager().IsModifierActive(eModifiers.MDF_INFLUENZA) || player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION2));
22 }
Definition EntityAI.c:95
eModifiers
Definition eModifiers.c:2

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

◆ DeactivateCondition()

override bool DeactivateCondition ( PlayerBase player)
inlineprivate
47 {
49 }
override bool ActivateCondition(PlayerBase player)
Definition Fever.c:19

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

◆ Init()

override void Init ( )
inlineprivate
11 {
14 m_ID = eModifiers.MDF_FEVER;
17 m_SyncID = eModifierSyncIDs.MODIFIER_SYNC_FEVER;
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
eModifierSyncIDs m_SyncID
Definition ModifierBase.c:28
float m_TickIntervalActive
Definition ModifierBase.c:18
float m_TickIntervalInactive
Definition ModifierBase.c:17
eModifierSyncIDs
Definition ModifiersManager.c:3
const int DEFAULT_TICK_TIME_INACTIVE
Definition ModifiersManager.c:29
const int DEFAULT_TICK_TIME_ACTIVE_SHORT
Definition ModifiersManager.c:28

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

◆ OnActivate()

override void OnActivate ( PlayerBase player)
inlineprivate
25 {
26 if( player.m_NotifiersManager )
27 player.m_NotifiersManager.ActivateByType(eNotifiers.NTF_FEVERISH);
28
29 player.GetSymptomManager().QueueUpSecondarySymptom(SymptomIDs.SYMPTOM_FEVERBLUR);
30 }
eNotifiers
Definition NotifiersManager.c:2

◆ OnDeactivate()

override void OnDeactivate ( PlayerBase player)
inlineprivate
39 {
40 if( player.m_NotifiersManager )
41 player.m_NotifiersManager.DeactivateByType(eNotifiers.NTF_FEVERISH);
42 player.GetSymptomManager().RemoveSecondarySymptom(SymptomIDs.SYMPTOM_FEVERBLUR);
43 }

◆ OnReconnect()

override void OnReconnect ( PlayerBase player)
inlineprivate
33 {
34 this.OnActivate(player);
35 }
void OnActivate()
Definition Trap_LandMine.c:67

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

◆ OnTick()

override void OnTick ( PlayerBase player,
float deltaT )
inlineprivate
52 {
54 player.GetStatWater().Add(-water_loss);
55
56 m_Time += deltaT;
57
58 if ( m_Time >= m_NextEvent )
59 {
60 m_Time = 0;
62
63 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_HOT);
64 }
65 }
float m_NextEvent
Definition Fever.c:4
float m_Time
Definition Fever.c:3
static const float EVENT_INTERVAL_MIN
Definition Fever.c:6
static const float EVENT_INTERVAL_MAX
Definition Fever.c:7
Definition EnMath.c:7
Definition PlayerConstants.c:2
static const float WATER_LOSS_FEVER
Definition PlayerConstants.c:129
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106

Перекрестные ссылки EVENT_INTERVAL_MAX, EVENT_INTERVAL_MIN, m_NextEvent, m_Time, Math::RandomFloatInclusive() и PlayerConstants::WATER_LOSS_FEVER.

Поля

◆ EVENT_INTERVAL_MAX

const float EVENT_INTERVAL_MAX = 18
staticprivate

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

◆ EVENT_INTERVAL_MIN

const float EVENT_INTERVAL_MIN = 12
staticprivate

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

◆ m_NextEvent

float m_NextEvent
private

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

◆ m_Time

float m_Time
private

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


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