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

◆ GetEventTime()

float HeatComfortAnimHandler::GetEventTime ( float hcValue,
float threshold_low,
float thresholdHigh,
float lowMin,
float highMin,
float lowMax,
float highMax )
inlineprivate

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

120 {
121 float inv_value = Math.Clamp(Math.InverseLerp(threshold_low, thresholdHigh, hcValue), 0, 1);
122 float valueMin = Math.Lerp(lowMin, highMin, inv_value);
123 float value_max = Math.Lerp(lowMax, highMax, inv_value);
124
125 return Math.RandomFloatInclusive(valueMin, value_max);
126 }

Перекрестные ссылки Math::Clamp(), Math::InverseLerp(), Math::Lerp() и Math::RandomFloatInclusive().

Используется в ProcessFreeze(), ProcessFreezeRattle() и ProcessHot().