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

◆ OnTick()

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

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

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()
Определения ModifierBase.c:150
static const float DAMAGE_PER_SEC
Определения Contamination3.c:6

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