Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
morphine.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_MORPHINE ) )//effectively resets the timer
16  {
17  player.GetModifiersManager().DeactivateModifier( eModifiers.MDF_MORPHINE );
18  }
19  player.GetModifiersManager().ActivateModifier( eModifiers.MDF_MORPHINE );
20  }
21 };
Morphine
Definition: morphine.c:1
ActionInjectMorphineTarget
Definition: actioninjectmorphinetarget.c:1
PlayerBase
Definition: playerbaseclient.c:1
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
eModifiers
eModifiers
Definition: emodifiers.c:1
ActionInjectMorphineSelf
Definition: actioninjectmorphineself.c:1
Inventory_Base
Definition: barbedbaseballbat.c:1