DayZ
1.24
Loading...
Searching...
No Matches
TetracyclineAntibiotics.c
Go to the documentation of this file.
1
class
TetracyclineAntibiotics
:
Edible_Base
2
{
3
override
void
OnConsume
(
float
amount,
PlayerBase
consumer
)
4
{
5
if
(
consumer
.GetModifiersManager().IsModifierActive(
eModifiers
.MDF_ANTIBIOTICS))
//effectively resets the timer
6
consumer
.GetModifiersManager().DeactivateModifier(
eModifiers
.MDF_ANTIBIOTICS);
7
8
consumer
.GetModifiersManager().ActivateModifier(
eModifiers
.MDF_ANTIBIOTICS);
9
}
10
11
override
void
SetActions
()
12
{
13
super
.SetActions();
14
15
AddAction
(ActionForceConsumeSingle);
16
AddAction
(
ActionEatTabletFromWrapper
);
17
}
18
}
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
ActionEatTabletFromWrapper
Definition
ActionEatTabletFromWrapper.c:2
Edible_Base
Definition
Edible_Base.c:2
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
TetracyclineAntibiotics
Definition
TetracyclineAntibiotics.c:2
TetracyclineAntibiotics::OnConsume
override void OnConsume(float amount, PlayerBase consumer)
Definition
TetracyclineAntibiotics.c:3
TetracyclineAntibiotics::SetActions
override void SetActions()
Definition
TetracyclineAntibiotics.c:11
eModifiers
eModifiers
Definition
eModifiers.c:2
scripts
4_World
Entities
ItemBase
Edible_Base
TetracyclineAntibiotics.c
Generated by
1.10.0