Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actioneatmeat.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_NORMAL,UATimeSpent.DEFAULT);
6  }
7 };
8 
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  {
26  module_lifespan.UpdateBloodyHandsVisibility( action_data.m_Player, true );
27  }
28  }
29  }
30  }
31 }
ActionEatMeatCB
Definition: actioneatmeat.c:1
UAQuantityConsumed
Definition: actionconstants.c:3
ActionEatBig
Definition: actioneat.c:9
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition: pluginmanager.c:316
ActionEatMeat
Definition: actioneatmeat.c:9
ActionData
Definition: actionbase.c:20
PluginLifespan
void PluginLifespan()
Definition: pluginlifespan.c:45
CAContinuousQuantityEdible
Definition: cacontinuousquantityedible.c:1
UATimeSpent
Definition: actionconstants.c:26
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
Edible_Base
Definition: bearsteakmeat.c:1