DayZ
1.24
Loading...
Searching...
No Matches
ActionEatMeat.c
Go to the documentation of this file.
1
class
ActionEatMeatCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.
m_ActionComponent
=
new
CAContinuousQuantityEdible
(
UAQuantityConsumed
.
EAT_NORMAL
,
UATimeSpent
.
DEFAULT
);
6
}
7
};
8
9
class
ActionEatMeat
:
ActionEatBig
10
{
11
void
ActionEatMeat
()
12
{
13
m_CallbackClass
=
ActionEatMeatCB
;
14
}
15
16
override
void
ApplyModifiers
(
ActionData
action_data
)
17
{
18
Edible_Base
food_item
=
Edible_Base
.Cast(
action_data
.m_MainItem);
19
if
(
food_item
)
20
{
21
if
(
food_item
.IsMeat() &&
food_item
.IsFoodRaw())
22
{
23
PluginLifespan
module_lifespan
=
PluginLifespan
.Cast(
GetPlugin
(
PluginLifespan
));
24
if
(
module_lifespan
)
25
module_lifespan
.UpdateBloodyHandsVisibility(
action_data
.m_Player,
true
);
26
}
27
}
28
}
29
}
PluginLifespan
void PluginLifespan()
Definition
PluginLifespan.c:45
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition
PluginManager.c:300
ActionBaseCB::m_ActionData
ActionData m_ActionData
Definition
AnimatedActionBase.c:3
ActionContinuousBaseCB
Definition
ActionContinuousBase.c:2
ActionData
Definition
ActionBase.c:21
ActionData::m_ActionComponent
ref CABase m_ActionComponent
Definition
ActionBase.c:30
ActionEatBig
Definition
ActionEat.c:10
ActionEatMeatCB
Definition
ActionEatMeat.c:2
ActionEatMeatCB::CreateActionComponent
override void CreateActionComponent()
Definition
ActionEatMeat.c:3
ActionEatMeat
Definition
ActionEatMeat.c:10
ActionEatMeat::ActionEatMeat
void ActionEatMeat()
Definition
ActionEatMeat.c:11
ActionEatMeat::ApplyModifiers
override void ApplyModifiers(ActionData action_data)
Definition
ActionEatMeat.c:16
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Definition
AnimatedActionBase.c:124
CAContinuousQuantityEdible
Definition
CAContinuousQuantityEdible.c:2
Edible_Base
Definition
Edible_Base.c:2
Param3
Definition
EntityAI.c:95
UAQuantityConsumed
Definition
ActionConstants.c:4
UAQuantityConsumed::EAT_NORMAL
const float EAT_NORMAL
Definition
ActionConstants.c:8
UATimeSpent
Definition
ActionConstants.c:27
UATimeSpent::DEFAULT
const float DEFAULT
Definition
ActionConstants.c:28
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionEatMeat.c
Generated by
1.10.0