Dayz Explorer
1.28.160049
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
17
m_Sound
=
"EatingSoft_0"
;
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
}
CreateConditionComponents
override void CreateConditionComponents()
Definition
actionactivatetrap.c:30
ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionactivatetrap.c:46
ActionTakeABite
ActionTakeABiteCB ActionSingleUseBaseCB ActionTakeABite()
Definition
actiontakeabite.c:13
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
animatedactionbase.c:3
ActionConsumeSingle
Definition
actionconsumesingle.c:2
ActionSingleUseBaseCB
Definition
actionsingleusebase.c:2
ActionTakeABiteCB
Definition
actiontakeabite.c:2
CASingleUseQuantityEdible
Definition
casingleusequantityedible.c:2
CCINonRuined
Definition
ccinonruined.c:2
CCTSelf
Definition
cctself.c:2
ItemBase
Definition
inventoryitem.c:731
PlayerBase
Definition
playerbaseclient.c:2
m_Sound
EffectSound m_Sound
Definition
hungersoundhandler.c:18
Daten
4_world
classes
useractionscomponent
actions
singleuse
actiontakeabite.c
Generated by
1.12.0