Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionforcedrink.c
Go to the documentation of this file.
1
class
ActionForceDrinkCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousQuantityEdible
(
UAQuantityConsumed
.
DRINK
,
UATimeSpent
.
DEFAULT
);
6
}
7
};
8
9
class
ActionForceDrink
:
ActionForceConsume
10
{
11
void
ActionForceDrink
()
12
{
13
m_CallbackClass =
ActionForceDrinkCB
;
14
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_EMPTY_VESSEL;
15
m_FullBody =
true
;
16
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_ERECT |
DayZPlayerConstants
.STANCEMASK_CROUCH;
17
m_Text =
"#give_drink"
;
18
}
19
20
override
void
CreateConditionComponents
()
21
{
22
m_ConditionTarget =
new
CCTMan
(
UAMaxDistances
.
DEFAULT
);
23
m_ConditionItem =
new
CCINonRuined
;
24
}
25
26
override
protected
void
PlaySound
(
PlayerBase
player)
27
{
28
if
(player)
29
player.RequestSoundEventEx(
EPlayerSoundEventID
.FORCE_DRINK);
30
}
31
};
32
33
m_CommandUID
int m_CommandUID
Definition
actionbase.c:31
m_StanceMask
int m_StanceMask
Definition
actionbase.c:33
ActionForceConsume
void ActionForceConsume()
Definition
actionforceconsume.c:13
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionContinuousBaseCB
Definition
actioncontinuousbase.c:2
ActionForceDrinkCB
Definition
actionforcedrink.c:2
ActionForceDrinkCB::CreateActionComponent
override void CreateActionComponent()
Definition
actionforcedrink.c:3
ActionForceDrink::ActionForceDrink
void ActionForceDrink()
Definition
actionforcedrink.c:11
ActionForceDrink::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionforcedrink.c:20
ActionForceDrink::PlaySound
void PlaySound(PlayerBase player)
Definition
actionforcedrink.c:26
CAContinuousQuantityEdible
Definition
cacontinuousquantityedible.c:2
CCINonRuined
Definition
ccinonruined.c:2
CCTMan
Definition
cctman.c:2
PlayerBase
Definition
playerbaseclient.c:2
UAMaxDistances
Definition
actionconstants.c:110
UAMaxDistances::DEFAULT
const float DEFAULT
Definition
actionconstants.c:112
UAQuantityConsumed
Definition
actionconstants.c:4
UAQuantityConsumed::DRINK
const float DRINK
Definition
actionconstants.c:14
UATimeSpent
Definition
actionconstants.c:28
UATimeSpent::DEFAULT
const float DEFAULT
Definition
actionconstants.c:29
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
EPlayerSoundEventID
EPlayerSoundEventID
Definition
playersoundeventhandler.c:3
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
actionforcedrink.c
Generated by
1.17.0