Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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
}
TetracyclineAntibiotics
Definition:
tetracyclineantibiotics.c:1
ActionEatTabletFromWrapper
Definition:
actioneattabletfromwrapper.c:1
ActionForceConsumeSingle
void ActionForceConsumeSingle()
Definition:
actionforceconsumesingle.c:13
PlayerBase
Definition:
playerbaseclient.c:1
AddAction
void AddAction(typename actionName)
Definition:
advancedcommunication.c:86
eModifiers
eModifiers
Definition:
emodifiers.c:1
Edible_Base
Definition:
bearsteakmeat.c:1
DAYZ
scripts_v1.24.157551
scripts
world
entities
itembase
edible_base
tetracyclineantibiotics.c
Generated by
1.8.17