DayZ
1.24
Loading...
Searching...
No Matches
ActionDrink.c
Go to the documentation of this file.
1
class
ActionDrinkCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.
m_ActionComponent
=
new
CAContinuousQuantityEdible
(
UAQuantityConsumed
.
DRINK
,
UATimeSpent
.
DEFAULT
);
6
}
7
};
8
9
class
ActionDrink
:
ActionConsume
10
{
11
void
ActionDrink
()
12
{
13
m_CallbackClass
=
ActionDrinkCB
;
14
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_DRINK;
15
m_CommandUIDProne
=
DayZPlayerConstants
.CMD_ACTIONFB_DRINK;
16
m_Text
=
"#drink"
;
17
}
18
19
override
void
CreateConditionComponents
()
20
{
21
m_ConditionItem
=
new
CCINotRuinedAndEmpty
;
22
m_ConditionTarget
=
new
CCTSelf
;
23
}
24
25
override
bool
IsDrink
()
26
{
27
return
true
;
28
}
29
30
override
bool
HasTarget
()
31
{
32
return
false
;
33
}
34
35
override
bool
ActionCondition
(
PlayerBase
player
, ActionTarget
target
,
ItemBase
item
)
36
{
37
if
(!
super
.ActionCondition(
player
,
target
,
item
))
38
return
false
;
39
40
return
player
.CanEatAndDrink();
41
}
42
};
m_Text
string m_Text
Definition
ActionBase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition
ActionBase.c:55
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
ActionBase.c:56
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
AnimatedActionBase.c:3
ActionConsume
Definition
ActionConsume.c:10
ActionContinuousBaseCB
Definition
ActionContinuousBase.c:2
ActionData::m_ActionComponent
ref CABase m_ActionComponent
Definition
ActionBase.c:30
ActionDrinkCB
Definition
ActionDrink.c:2
ActionDrinkCB::CreateActionComponent
override void CreateActionComponent()
Definition
ActionDrink.c:3
ActionDrink
Definition
ActionDrink.c:10
ActionDrink::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
ActionDrink.c:35
ActionDrink::HasTarget
override bool HasTarget()
Definition
ActionDrink.c:30
ActionDrink::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionDrink.c:19
ActionDrink::ActionDrink
void ActionDrink()
Definition
ActionDrink.c:11
ActionDrink::IsDrink
override bool IsDrink()
Definition
ActionDrink.c:25
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
AnimatedActionBase.c:122
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
AnimatedActionBase.c:124
AnimatedActionBase::m_CommandUIDProne
int m_CommandUIDProne
Definition
AnimatedActionBase.c:123
CAContinuousQuantityEdible
Definition
CAContinuousQuantityEdible.c:2
CCINotRuinedAndEmpty
Definition
CCINotRuinedAndEmpty.c:2
CCTSelf
Definition
CCTSelf.c:2
ItemBase
Definition
InventoryItem.c:697
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
UAQuantityConsumed
Definition
ActionConstants.c:4
UAQuantityConsumed::DRINK
const float DRINK
Definition
ActionConstants.c:13
UATimeSpent
Definition
ActionConstants.c:27
UATimeSpent::DEFAULT
const float DEFAULT
Definition
ActionConstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:597
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionDrink.c
Generated by
1.10.0