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

◆ OnActivate()

void CholeraMdfr::OnActivate ( PlayerBase player)
inlineprotected

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

37 {
38 player.IncreaseDiseaseCount();
39
40 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom( SymptomIDs.SYMPTOM_VOMIT );
41 if (symptom)
42 {
43 CachedObjectsParams.PARAM1_FLOAT.param1 = 65.0;
44 symptom.SetParam(CachedObjectsParams.PARAM1_FLOAT);
45 symptom.SetDuration(Math.RandomIntInclusive(4.0, 8.0));
46 }
47 }
void SetDuration(float duration)
Определения StateBase.c:80
void SetParam(Param p)
Определения StateBase.c:105

Перекрестные ссылки CachedObjectsParams::PARAM1_FLOAT, Math::RandomIntInclusive(), SymptomBase::SetDuration() и SymptomBase::SetParam().