DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnTick()

void ContaminationStage2Mdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprotected

См. определение в файле Contamination2.c строка 55

56 {
57
58 m_Time1 += deltaT;
59 m_Time2 += deltaT;
60
61
62 if ( m_Time1 >= m_NextEvent1 )
63 {
64 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_COUGH);
65 m_Time1 = 0;
66 m_NextEvent1 = Math.RandomFloatInclusive( EVENT_1_INTERVAL_MIN, EVENT_1_INTERVAL_MAX );
67 }
68 if ( m_Time2 >= m_NextEvent2 )
69 {
70 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
71 m_Time2 = 0;
72 m_NextEvent2 = Math.RandomFloatInclusive( EVENT_2_INTERVAL_MIN, EVENT_2_INTERVAL_MAX );
73 }
74
75 }
float m_Time1
Определения Contamination2.c:10
static const int EVENT_1_INTERVAL_MIN
Определения Contamination2.c:6
static const int EVENT_2_INTERVAL_MIN
Определения Contamination2.c:13
float m_NextEvent1
Определения Contamination2.c:9
static const int EVENT_2_INTERVAL_MAX
Определения Contamination2.c:14
static const int EVENT_1_INTERVAL_MAX
Определения Contamination2.c:7
float m_Time2
Определения Contamination2.c:17
float m_NextEvent2
Определения Contamination2.c:16

Перекрестные ссылки EVENT_1_INTERVAL_MAX, EVENT_1_INTERVAL_MIN, EVENT_2_INTERVAL_MAX, EVENT_2_INTERVAL_MIN, m_NextEvent1, m_NextEvent2, m_Time1, m_Time2 и Math::RandomFloatInclusive().