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

◆ GetStatLevelBorders()

float ManBase::GetStatLevelBorders ( float stat_value,
float critical,
float low,
float normal,
float high,
float max )
inlineprotected

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

5263 {
5264 if (stat_value <= critical)
5265 {
5266 return Math.InverseLerp(0, critical, stat_value);
5267 }
5268 if (stat_value <= low)
5269 {
5270 return Math.InverseLerp(critical, low, stat_value);
5271 }
5272 if (stat_value <= normal)
5273 {
5274 return Math.InverseLerp(low, normal, stat_value);
5275 }
5276 if (stat_value <= high)
5277 {
5278 return Math.InverseLerp(normal, high, stat_value);
5279 }
5280 return Math.InverseLerp(high, max, stat_value);
5281 }

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

Используется в GetBordersImmunity(), GetStatBordersBlood(), GetStatBordersEnergy(), GetStatBordersHealth(), GetStatBordersToxicity() и GetStatBordersWater().