Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
epinephrine.c
Go to the documentation of this file.
2 {
3  override void SetActions()
4  {
5  super.SetActions();
6 
9  }
10 
11  override void OnApply(PlayerBase player)
12  {
13  if (!player)
14  return;
15  if( player.GetModifiersManager().IsModifierActive(eModifiers.MDF_EPINEPHRINE ) )//effectively resets the timer
16  {
17  player.GetModifiersManager().DeactivateModifier( eModifiers.MDF_EPINEPHRINE );
18  }
19  player.GetModifiersManager().ActivateModifier( eModifiers.MDF_EPINEPHRINE );
20  }
21 };
ActionInjectEpinephrineSelf
Definition: actioninjectepinephrineself.c:1
ActionInjectEpinephrineTarget
Definition: actioninjectepinephrinetarget.c:1
PlayerBase
Definition: playerbaseclient.c:1
Epinephrine
Definition: epinephrine.c:1
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
eModifiers
eModifiers
Definition: emodifiers.c:1
Inventory_Base
Definition: barbedbaseballbat.c:1