154 {
156 stamina_normalized =
Math.
Clamp(stamina_normalized,0,1);
157
159
161 {
163 }
164
166 {
168 }
169
170 return stamina_zone;
171 }
const float STAMINA_SOUND_TR1
const float STAMINA_SOUND_TR2
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...