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

◆ GetHealthRegenSpeed()

float ManBase::GetHealthRegenSpeed ( )
inlineprotected

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

6124 {
6125 float blood = GetHealth("GlobalHealth", "Blood");
6126 float blood_scale_normalized = Math.InverseLerp(PlayerConstants.BLOOD_THRESHOLD_FATAL, GetMaxHealth("", "Blood"), blood);
6127 blood_scale_normalized = Math.Clamp(blood_scale_normalized,0,1);
6128 return Math.Lerp(PlayerConstants.HEALTH_REGEN_MIN, PlayerConstants.HEALTH_REGEN_MAX, blood_scale_normalized);
6129 }

Перекрестные ссылки PlayerConstants::BLOOD_THRESHOLD_FATAL, Math::Clamp(), PlayerConstants::HEALTH_REGEN_MAX, PlayerConstants::HEALTH_REGEN_MIN, Math::InverseLerp() и Math::Lerp().