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

◆ GetStatLevelBorders()

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

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

5540 {
5541 if (stat_value <= critical)
5542 {
5543 return Math.InverseLerp(0, critical, stat_value);
5544 }
5545 if (stat_value <= low)
5546 {
5547 return Math.InverseLerp(critical, low, stat_value);
5548 }
5549 if (stat_value <= normal)
5550 {
5551 return Math.InverseLerp(low, normal, stat_value);
5552 }
5553 if (stat_value <= high)
5554 {
5555 return Math.InverseLerp(normal, high, stat_value);
5556 }
5557 return Math.InverseLerp(high, max, stat_value);
5558 }

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

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