33 if ( player.GetHealth(
"GlobalHealth",
"Shock") <=
SHOCK_LIMIT )
35 float currenthealth = player.GetHealth(
"GlobalHealth",
"Health");
40 float currentshock = player.GetHealth(
"GlobalHealth",
"Shock");
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
bool m_TrackActivatedTime
void DisableDeactivateCheck()
void DisableActivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
override bool DeactivateCondition(PlayerBase player)
override void OnActivate(PlayerBase player)
override void OnTick(PlayerBase player, float deltaT)
override bool ActivateCondition(PlayerBase player)
private const float HEALTH_DECREMENT_PER_SEC
private const float SHOCK_DECREMENT_PER_SEC
private const float SHOCK_LIMIT