3 const int LIFETIME = 240;
4 const int ACTIVATION_DELAY = 15;
15 override bool ActivateCondition(
PlayerBase player)
25 override string GetDebugText()
33 if (player.GetBrokenLegs() !=
eBrokenLegs.NO_BROKEN_LEGS)
34 player.m_ShockHandler.SetMultiplier(0.5);
35 player.IncreaseHealingsCount();
40 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask =
m_Player.m_InjuryHandler.m_ForceInjuryAnimMask | eInjuryOverrides.PAIN_KILLERS_LVL0;
45 if (player.GetBrokenLegs() !=
eBrokenLegs.NO_BROKEN_LEGS)
46 player.m_ShockHandler.SetMultiplier(1);
47 player.DecreaseHealingsCount();
52 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask =
m_Player.m_InjuryHandler.m_ForceInjuryAnimMask & ~eInjuryOverrides.PAIN_KILLERS_LVL0;
53 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask =
m_Player.m_InjuryHandler.m_ForceInjuryAnimMask & ~eInjuryOverrides.PAIN_KILLERS_LVL1;
56 override bool DeactivateCondition(
PlayerBase player)
70 override void OnTick(
PlayerBase player,
float deltaT)
74 m_Player.m_InjuryHandler.m_ForceInjuryAnimMask =
m_Player.m_InjuryHandler.m_ForceInjuryAnimMask | eInjuryOverrides.PAIN_KILLERS_LVL1;