Dayz Explorer
1.28.160049
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
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionContinuousBaseCB
Definition
actioncontinuousbase.c:2
ActionForceDrinkCB
Definition
actionforcedrink.c:2
ActionForceDrink
Definition
actionforcedrink.c:10
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
UAQuantityConsumed
Definition
actionconstants.c:4
UATimeSpent
Definition
actionconstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
EPlayerSoundEventID
EPlayerSoundEventID
Definition
playersoundeventhandler.c:3
Daten
4_world
classes
useractionscomponent
actions
continuous
actionforcedrink.c
Generated by
1.12.0