30 return m_Player.GetStatHeatComfort().Get().ToString();
35 return m_Player.GetStatHeatComfort().Get().ToString();
41 float heatComfortValue = player.GetStatHeatComfort().Get();
43 float thermalBiasValue = thermalBiasHandler.
Get();
45 float waterValue = waterStat.Get();
46 float valueNormalized;
51 valueNormalized =
Math.
Clamp(valueNormalized, 0, 1);
53 waterStat.Add(-waterLoss);
58 valueNormalized =
Math.
Clamp(valueNormalized, 0, 1);
60 player.GetStatEnergy().Add(-energyLoss);
65 valueNormalized =
Math.
Clamp(valueNormalized, 0, 1);
69 if (healthLoss != 0.0)
70 player.AddHealth(
"",
"", -healthLoss);
109 if (thermalBiasValue <= 0.0)
110 thermalBiasHandler.
Set(0.0);
bool m_TrackActivatedTime
overall time this modifier was active
void DisableDeactivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
void PlayerStat(T min, T max, T init, string label, int flags)
static float EaseInQuad(float t)
Input value between 0 and 1, returns value adjusted by easing, no automatic clamping of input(do your...
override string GetDebugTextSimple()
override void OnTick(PlayerBase player, float deltaT)
override bool ActivateCondition(PlayerBase player)
override bool DeactivateCondition(PlayerBase player)
override string GetDebugText()
override void OnReconnect(PlayerBase player)
const float STAGE_THRESHOLDS[NUMBER_OF_STAGES]
static const float ENERGY_LOSS_HC_MINUS_HIGH
static const float WATER_LOSS_HC_PLUS_HIGH
static const float SL_WATER_HIGH
static const float THRESHOLD_HEAT_COMFORT_PLUS_WARNING
static const float ENERGY_LOSS_THRESHOLD_HC_MINUS_HIGH
static const float SL_WATER_NORMAL
static const float THRESHOLD_HEAT_COMFORT_PLUS_EMPTY
static const float ENERGY_LOSS_THRESHOLD_HC_MINUS_LOW
static const float THERMAL_BIAS_POSITIVE_HC_MEDIUM_INCREMENT
static const float THRESHOLD_HEAT_COMFORT_PLUS_CRITICAL
static const float HEALTH_LOSS_HC_MINUS_HIGH
static const float WATER_LOSS_THRESHOLD_HC_PLUS_HIGH
static const float THERMAL_BIAS_POSITIVE_HC_LOW_INCREMENT
static const float HEALTH_LOSS_HC_MINUS_LOW
static const float THERMAL_BIAS_POSITIVE_HC_HIGH_INCREMENT
static const float ENERGY_LOSS_HC_MINUS_LOW
static const float WATER_LOSS_HC_PLUS_LOW
static const float THERMAL_BIAS_POSITIVE_HC_DECREMENT
static const float WATER_LOSS_THRESHOLD_HC_PLUS_LOW
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
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,...