Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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 {
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}
ActionData m_ActionData
bool IsFoodRaw()
override bool IsMeat()
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)