48 if ( mask && !mask.IsDamageDestroyed())
50 bool consuming_filter = mask.ConsumeQuantity(consume_quantity * deltaT, player);
51 StaminaSoundHandlerServer.Cast(player.GetPlayerSoundManagerServer().GetHandler(
eSoundHandlers.STAMINA)).SetStaminaZoneOffset(1);
53 if (mask.HasValidFilter())
70 float filter_quantity_01 = mask.GetFilterQuantity01();
72 if(mask.CanHaveExternalFilter() && !mask.IsExternalFilterAttached())
87 if (low_quantity_norm < 0.5)
91 if (low_quantity_norm < 0.25)
95 player.RequestSoundEventEx(event_type,
false, EPlayerSoundEventParam.HIGHEST_PRIORITY);
112 StaminaSoundHandlerServer.Cast(player.GetPlayerSoundManagerServer().GetHandler(
eSoundHandlers.STAMINA)).SetStaminaZoneOffset(0);
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
ModifiersManager m_Manager
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE_SHORT
provides access to slot configuration
override bool DeactivateCondition(PlayerBase player)
override void OnReconnect(PlayerBase player)
override void OnActivate(PlayerBase player)
const float IN_AREA_CONSUME_FILTER_QUANTITY_PER_SEC
const float LOW_FILTER_SOUND_THRESHOLD
float m_NextSoundEventTime
void HandleSounds(PlayerBase player, float deltaT, MaskBase mask)
const float STAMINA_DEPLETION_MODIFIER
override void OnTick(PlayerBase player, float deltaT)
override bool ActivateCondition(PlayerBase player)
override void OnDeactivate(PlayerBase player)
const float STAMINA_RECOVERY_MODIFIER
const float LOW_FILTER_SOUND_EVENT_MIN
const float OUT_AREA_CONSUME_FILTER_QUANTITY_PER_SEC
const float LOW_FILTER_SOUND_EVENT_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'.
class HumanMovementState OnActivate()
HumanCommandScript fully scriptable command.