43 if( !player.m_Environment.IsTemperatureSet() )
45 float air_temperature = player.m_Environment.GetTemperature();
57 if( level != player.m_BreathVapour )
59 player.m_BreathVapour = level;
60 player.SetSynchDirty();
const int BREATH_VAPOUR_LEVEL_MAX
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
void DisableDeactivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
override bool DeactivateCondition(PlayerBase player)
override void OnReconnect(PlayerBase player)
override string GetDebugText()
override string GetDebugTextSimple()
override void OnTick(PlayerBase player, float deltaT)
override bool ActivateCondition(PlayerBase player)
static const float BREATH_VAPOUR_THRESHOLD_HIGH
static const float BREATH_VAPOUR_THRESHOLD_LOW
static proto float Round(float f)
Returns mathematical round of value.
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,...
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.