Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actioneatmeat.c
Go to the documentation of this file.
8
10{
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 {
26 module_lifespan.UpdateBloodyHandsVisibility( action_data.m_Player, true );
27 }
28 }
29 }
30 }
31}
ActionBase ActionData
Definition actionbase.c:30
ActionData m_ActionData
void ActionEatBig()
Definition actioneat.c:11
override void CreateActionComponent()
override void ApplyModifiers(ActionData action_data)
void ActionEatMeat()
bool IsFoodRaw()
override bool IsMeat()
const float EAT_NORMAL
const float DEFAULT
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)