Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actionforcedrink.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.DRINK,UATimeSpent.DEFAULT);
6 }
7};
8
9class 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
int m_CommandUID
Definition actionbase.c:31
int m_StanceMask
Definition actionbase.c:33
ActionData m_ActionData
void PlaySound(PlayerBase player)
Definition cctman.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602