DayZ
1.24
Loading...
Searching...
No Matches
Epinephrine.c
Go to the documentation of this file.
1
class
Epinephrine
:
Inventory_Base
2
{
3
override
void
SetActions
()
4
{
5
super
.SetActions();
6
7
AddAction
(
ActionInjectEpinephrineTarget
);
8
AddAction
(
ActionInjectEpinephrineSelf
);
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
player
.GetModifiersManager().DeactivateModifier(
eModifiers
.MDF_EPINEPHRINE);
17
player
.GetModifiersManager().ActivateModifier(
eModifiers
.MDF_EPINEPHRINE);
18
}
19
};
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
ActionInjectEpinephrineSelf
Definition
ActionInjectEpinephrineSelf.c:2
ActionInjectEpinephrineTarget
Definition
ActionInjectEpinephrineTarget.c:2
Epinephrine
Definition
Epinephrine.c:2
Epinephrine::OnApply
override void OnApply(PlayerBase player)
Definition
Epinephrine.c:11
Epinephrine::SetActions
override void SetActions()
Definition
Epinephrine.c:3
Inventory_Base
Definition
BarbedBaseballBat.c:2
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
eModifiers
eModifiers
Definition
eModifiers.c:2
scripts
4_World
Entities
ItemBase
Gear
Medical
Epinephrine.c
Generated by
1.10.0