Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
morphine.c
Go to the documentation of this file.
1
class
Morphine
:
Inventory_Base
2
{
3
override
void
SetActions()
4
{
5
super.SetActions();
6
7
AddAction
(
ActionInjectMorphineTarget
);
8
AddAction
(
ActionInjectMorphineSelf
);
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
DAYZ
scripts_v1.24.157551
scripts
world
entities
itembase
gear
medical
morphine.c
Generated by
1.8.17