50 float hc =
m_Player.GetStatHeatComfort().Get();
94 m_Player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_HOT);
103 m_Player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_FREEZE);
112 m_Player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_FREEZE_RATTLE);
119 private float GetEventTime(
float hcValue,
float threshold_low,
float thresholdHigh,
float lowMin,
float highMin,
float lowMax,
float highMax)
122 float valueMin =
Math.
Lerp(lowMin, highMin, inv_value);
123 float value_max =
Math.
Lerp(lowMax, highMax, inv_value);
void ProcessFreeze(float hcValue)
float m_ProcessTimeAccuHot
void Update(float delta_time, HumanMovementState hms)
ref HumanMovementState m_MovementState
float m_ProcessTimeAccuFreeze
float m_ProcessTimeAccuFreezeRattle
void ProcessFreezeRattle(float hcValue)
void Process(float delta_time)
const float TIME_INTERVAL_HC_MINUS_HIGH_MAX
float m_TimeSinceLastTick
float GetEventTime(float hcValue, float threshold_low, float thresholdHigh, float lowMin, float highMin, float lowMax, float highMax)
const float TIME_INTERVAL_HC_PLUS_HIGH_MIN
const float TIME_INTERVAL_HC_MINUS_LOW_MIN
const float TIME_INTERVAL_HC_PLUS_LOW_MAX
const float TIME_INTERVAL_HC_PLUS_LOW_MIN
const float TIME_INTERVAL_HC_MINUS_HIGH_MIN
const float TIME_INTERVAL_HC_MINUS_LOW_MAX
void HeatComfortAnimHandler(PlayerBase player)
const float TIME_INTERVAL_HC_PLUS_HIGH_MAX
void ProcessHot(float hcValue)
const float TICK_INTERVAL
float m_EventTimeFreezeRattle
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_PLUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL
static const float THRESHOLD_HEAT_COMFORT_PLUS_EMPTY
static const float THRESHOLD_HEAT_COMFORT_MINUS_EMPTY
static proto bool IsInRange(float v, float min, float max)
Returns if value is between min and max (inclusive)
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
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,...