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

◆ GetStatLevelBorders()

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

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

5119 {
5120 if (stat_value <= critical)
5121 {
5122 return Math.InverseLerp(0, critical, stat_value);
5123 }
5124 if (stat_value <= low)
5125 {
5126 return Math.InverseLerp(critical, low, stat_value);
5127 }
5128 if (stat_value <= normal)
5129 {
5130 return Math.InverseLerp(low, normal, stat_value);
5131 }
5132 if (stat_value <= high)
5133 {
5134 return Math.InverseLerp(normal, high, stat_value);
5135 }
5136 return Math.InverseLerp(high, max, stat_value);
5137 }

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

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