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

◆ GetHealthRegenSpeed()

float ManBase::GetHealthRegenSpeed ( )
inlineprotected

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

6132 {
6133 float blood = GetHealth("GlobalHealth", "Blood");
6134 float blood_scale_normalized = Math.InverseLerp(PlayerConstants.BLOOD_THRESHOLD_FATAL, GetMaxHealth("", "Blood"), blood);
6135 blood_scale_normalized = Math.Clamp(blood_scale_normalized,0,1);
6136 return Math.Lerp(PlayerConstants.HEALTH_REGEN_MIN, PlayerConstants.HEALTH_REGEN_MAX, blood_scale_normalized);
6137 }

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