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

◆ OnTick()

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

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

59 {
60 float healthLoss = HEALTH_LOSS_PNEUMONIA * deltaT;
61
62 player.AddHealth(-healthLoss);
63
64 float heavyBreathChance = player.GetSingleAgentCountNormalized(eAgents.INFLUENZA);
65
66 if ( Math.RandomFloat01() < heavyBreathChance / Math.RandomInt(1,15) )
67 {
68 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_GASP);
69 }
70 }
eAgents
Определения EAgents.c:3
const float HEALTH_LOSS_PNEUMONIA
Определения Pneumonia.c:9

Перекрестные ссылки HEALTH_LOSS_PNEUMONIA, Math::RandomFloat01() и Math::RandomInt().