33 float water = player.GetStatWater().Get();
34 float metabolic_speed = MiscGameplayFunctions.GetWaterMetabolicSpeed(
m_MovementState.m_iMovement);
37 metabolic_speed *= modifier;
39 player.GetStatWater().Add( (-metabolic_speed * deltaT) );
44 if ((player.GetStomach().GetDigestingType() &
PlayerStomach.DIGESTING_WATER) == 0)
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()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
void PlayerStomach(PlayerBase player)
static const float CONSUMPTION_MULTIPLIER_BASE
static const float LOW_WATER_DAMAGE_PER_SEC
static const float LOW_WATER_THRESHOLD
Percents of agents count <-1.0; 1.0>
static const float SL_WATER_MAX
ref HumanMovementState m_MovementState
override void OnTick(PlayerBase player, float deltaT)
override bool DeactivateCondition(PlayerBase player)
override void OnReconnect(PlayerBase player)
override bool ActivateCondition(PlayerBase player)