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

◆ OnTick()

override void ToxicityMdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprivate

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

26 {
27 player.GetStatToxicity().Add( -TOXICITY_CLEANUP_PER_SEC * deltaT );
28 if( player.GetStatToxicity().Get() > VOMIT_THRESHOLD )
29 {
30 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
31
32 if( symptom )
33 {
34 symptom.SetDuration(Math.RandomIntInclusive(4,8));
35 }
36 }
37 }
void SetDuration(float duration)
Определения StateBase.c:80
const float TOXICITY_CLEANUP_PER_SEC
Определения Toxicity.c:3
const float VOMIT_THRESHOLD
Определения Toxicity.c:4

Перекрестные ссылки Math::RandomIntInclusive(), SymptomBase::SetDuration(), TOXICITY_CLEANUP_PER_SEC и VOMIT_THRESHOLD.