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

◆ GetHealthRegenSpeed()

float ManBase::GetHealthRegenSpeed ( )
inlineprotected

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

6593 {
6594 float blood = GetHealth("GlobalHealth", "Blood");
6595 float blood_scale_normalized = Math.InverseLerp(PlayerConstants.BLOOD_THRESHOLD_FATAL, GetMaxHealth("", "Blood"), blood);
6596 blood_scale_normalized = Math.Clamp(blood_scale_normalized,0,1);
6597 return Math.Lerp(PlayerConstants.HEALTH_REGEN_MIN, PlayerConstants.HEALTH_REGEN_MAX, blood_scale_normalized);
6598 }

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