41 override void OnTick(
PlayerBase player,
float deltaT)
43 if( !player.m_Environment.IsTemperatureSet() )
45 float air_temperature = player.m_Environment.GetTemperature();
47 if( MiscGameplayFunctions.IsValueInRange( air_temperature,
PlayerConstants.BREATH_VAPOUR_THRESHOLD_HIGH,
PlayerConstants.BREATH_VAPOUR_THRESHOLD_LOW) )
50 value =
Math.Clamp(value,0,1);
57 if( level != player.m_BreathVapour )
59 player.m_BreathVapour = level;
60 player.SetSynchDirty();
const int BREATH_VAPOUR_LEVEL_MAX
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
overall time this modifier was active
void DisableDeactivateCheck()
bool ActivateCondition(PlayerBase player)
bool DeactivateCondition(PlayerBase player)
float m_TickIntervalActive
float m_TickIntervalInactive
void OnReconnect(PlayerBase player)
is called when a modifier is being re-activated upon player server connection, use to activate system...
string GetDebugTextSimple()
const int DEFAULT_TICK_TIME_INACTIVE