Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actioneat.c
Go to the documentation of this file.
2{
7};
8
10{
12 {
14 //m_Sound = "EatingSoft_0";
15 m_Text = "#eat";
16 }
17
23
24 override int IsEat()
25 {
26 return true;
27 }
28
29 override bool HasTarget()
30 {
31 return false;
32 }
33}
34
35
36//-------------- Action Eat
37class ActionEatCB : ActionEatBigCB
38{
39 override void CreateActionComponent()
40 {
41 m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_NORMAL, UATimeSpent.DEFAULT);
42 }
43};
44
46{
47 void ActionEat()
48 {
49 m_CallbackClass = ActionEatCB;
50 }
51
52
53};
54
55//-------------- Action Eat Small
57{
62};
63
ActionData m_ActionData
string m_Text
Definition actionbase.c:64
ref CCIBase m_ConditionItem
Definition actionbase.c:70
ref CCTBase m_ConditionTarget
Definition actionbase.c:71
void ActionConsume()
override void CreateActionComponent()
Definition actioneat.c:3
override void CreateConditionComponents()
Definition actioneat.c:18
override int IsEat()
Definition actioneat.c:24
override bool HasTarget()
Definition actioneat.c:29
void ActionEatBig()
Definition actioneat.c:11
void ActionEat()
Definition actioneat.c:47
override void CreateActionComponent()
Definition actioneat.c:58
void ActionEatSmall()
Definition actioneat.c:66
const float EAT_NORMAL
const float EAT_SMALL
const float DEFAULT