DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionEatMeat.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
6 }
7};
8
10{
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}
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)
protected ActionData m_ActionData
ItemBase m_MainItem
Definition ActionBase.c:28
PlayerBase m_Player
Definition ActionBase.c:33
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
override void ApplyModifiers(ActionData action_data)
void ActionEatMeat()
override bool IsMeat()
const float EAT_NORMAL
const float DEFAULT