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

◆ GetStatLevelBorders()

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

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

5109 {
5110 if (stat_value <= critical)
5111 {
5112 return Math.InverseLerp(0, critical, stat_value);
5113 }
5114 if (stat_value <= low)
5115 {
5116 return Math.InverseLerp(critical, low, stat_value);
5117 }
5118 if (stat_value <= normal)
5119 {
5120 return Math.InverseLerp(low, normal, stat_value);
5121 }
5122 if (stat_value <= high)
5123 {
5124 return Math.InverseLerp(normal, high, stat_value);
5125 }
5126 return Math.InverseLerp(high, max, stat_value);
5127 }

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

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