DayZ
1.24
Loading...
Searching...
No Matches
ActionTakeABite.c
Go to the documentation of this file.
1
class
ActionTakeABiteCB
:
ActionSingleUseBaseCB
2
{
3
private
const
float
QUANTITY_USED_PER_SEC2
= 50;
4
5
override
void
CreateActionComponent
()
6
{
7
m_ActionData
.
m_ActionComponent
=
new
CASingleUseQuantityEdible
(
QUANTITY_USED_PER_SEC2
);
8
}
9
};
10
11
class
ActionTakeABite
:
ActionConsumeSingle
12
{
13
void
ActionTakeABite
()
14
{
15
m_CallbackClass
=
ActionTakeABiteCB
;
16
m_Sound
=
"EatingSoft_0"
;
17
//m_Animation = "eat";
18
m_Text
=
"#take_a_bite"
;
19
}
20
21
override
bool
ActionCondition
(
PlayerBase
player
, ActionTarget
target
,
ItemBase
item
)
22
{
23
return
false
;
24
}
25
26
override
void
CreateConditionComponents
()
27
{
28
m_ConditionItem
=
new
CCINonRuined
;
29
m_ConditionTarget
=
new
CCTSelf
;
30
}
31
};
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
m_Sound
EffectSound m_Sound
Definition
HungerSoundHandler.c:18
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
AnimatedActionBase.c:3
ActionConsumeSingle
Definition
ActionConsumeSingle.c:10
ActionData::m_ActionComponent
ref CABase m_ActionComponent
Definition
ActionBase.c:30
ActionSingleUseBaseCB
Definition
ActionSingleUseBase.c:2
ActionTakeABiteCB
Definition
ActionTakeABite.c:2
ActionTakeABiteCB::CreateActionComponent
override void CreateActionComponent()
Definition
ActionTakeABite.c:5
ActionTakeABiteCB::QUANTITY_USED_PER_SEC2
const float QUANTITY_USED_PER_SEC2
Definition
ActionTakeABite.c:3
ActionTakeABite
Definition
ActionTakeABite.c:12
ActionTakeABite::ActionTakeABite
void ActionTakeABite()
Definition
ActionTakeABite.c:13
ActionTakeABite::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
ActionTakeABite.c:21
ActionTakeABite::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionTakeABite.c:26
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
AnimatedActionBase.c:124
CASingleUseQuantityEdible
Definition
CASingleUseQuantityEdible.c:2
CCINonRuined
Definition
CCINonRuined.c:2
CCTSelf
Definition
CCTSelf.c:2
ItemBase
Definition
InventoryItem.c:697
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
scripts
4_World
Classes
UserActionsComponent
Actions
SingleUse
ActionTakeABite.c
Generated by
1.10.0