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

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

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

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

override void Init ()
 
override string GetDebugText ()
 

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

static const int AGENT_THRESHOLD_ACTIVATE = 400
 
static const int AGENT_THRESHOLD_DEACTIVATE = AGENT_THRESHOLD_ACTIVATE - 1
 
static const int AGENT_THRESHOLD_FEVER = 250
 
static const float DAMAGE_PER_SEC = -3
 

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

Методы

◆ ActivateCondition()

bool ActivateCondition ( PlayerBase player)
inlineprotected
24 {
25 return ( player.GetSingleAgentCount(eAgents.CHEMICAL_POISON) >= AGENT_THRESHOLD_ACTIVATE );
26
27 }
eAgents
Definition EAgents.c:3
static const int AGENT_THRESHOLD_ACTIVATE
Definition Contamination3.c:3
Definition EntityAI.c:95

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

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

◆ DeactivateCondition()

bool DeactivateCondition ( PlayerBase player)
inlineprotected
41 {
43 }
bool ActivateCondition(PlayerBase player)
Definition Contamination3.c:23

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

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate
19 {
20 return ("Activate threshold: "+AGENT_THRESHOLD_ACTIVATE + "| " +"Deativate threshold: "+AGENT_THRESHOLD_DEACTIVATE);
21 }
static const int AGENT_THRESHOLD_DEACTIVATE
Definition Contamination3.c:4

Перекрестные ссылки AGENT_THRESHOLD_ACTIVATE и AGENT_THRESHOLD_DEACTIVATE.

◆ Init()

override void Init ( )
inlineprivate
9 {
11 m_ID = eModifiers.MDF_CONTAMINATION3;
14 m_SyncID = eModifierSyncIDs.MODIFIER_SYNC_CONTAMINATION2;//using the same sync as stage 2 for now
16 }
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
eModifiers
Definition eModifiers.c:2

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

◆ OnActivate()

void OnActivate ( PlayerBase player)
inlineprotected
30 {
31 player.IncreaseDiseaseCount();
32 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
33 }

◆ OnDeactivate()

void OnDeactivate ( PlayerBase player)
inlineprotected
36 {
37 player.DecreaseDiseaseCount();
38 }

◆ OnTick()

void OnTick ( PlayerBase player,
float deltaT )
inlineprotected
46 {
47 if(GetAttachedTime() > 4 && (!player.GetSymptomManager().GetCurrentPrimaryActiveSymptom() || (player.GetSymptomManager().GetCurrentPrimaryActiveSymptom() && player.GetSymptomManager().GetCurrentPrimaryActiveSymptom().GetType() != SymptomIDs.SYMPTOM_VOMIT)) )
48 {
49 player.AddHealth("","Shock", -100);
50 }
51
52 if (player.IsUnconscious())
53 {
54 player.AddHealth("","",DAMAGE_PER_SEC * deltaT);
55 }
56
57 }
float GetAttachedTime()
Definition ModifierBase.c:150
static const float DAMAGE_PER_SEC
Definition Contamination3.c:6

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

Поля

◆ AGENT_THRESHOLD_ACTIVATE

const int AGENT_THRESHOLD_ACTIVATE = 400
staticprivate

Используется в ActivateCondition() и GetDebugText().

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = AGENT_THRESHOLD_ACTIVATE - 1
staticprivate

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

◆ AGENT_THRESHOLD_FEVER

const int AGENT_THRESHOLD_FEVER = 250
staticprivate

◆ DAMAGE_PER_SEC

const float DAMAGE_PER_SEC = -3
staticprivate

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


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