Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actiontakeabite.c
Go to the documentation of this file.
2 {
3  private const float QUANTITY_USED_PER_SEC2 = 50;
4 
5  override void CreateActionComponent()
6  {
7  m_ActionData.m_ActionComponent = new CASingleUseQuantityEdible(QUANTITY_USED_PER_SEC2);
8  }
9 };
10 
12 {
13  void ActionTakeABite()
14  {
15  m_CallbackClass = ActionTakeABiteCB;
16  m_Sound = "EatingSoft_0";
17  //m_Animation = "eat";
18  m_Text = "#take_a_bite";
19  }
20 
21  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
22  {
23  return false;
24  }
25 
26  override void CreateConditionComponents()
27  {
30  }
31 };
ItemBase
Definition: inventoryitem.c:730
m_Sound
EffectSound m_Sound
Definition: hungersoundhandler.c:18
CASingleUseQuantityEdible
Definition: casingleusequantityedible.c:1
ActionConsumeSingle
Definition: actionconsumesingle.c:9
ActionSingleUseBaseCB
Definition: actionsingleusebase.c:1
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
CCTSelf
Definition: cctself.c:1
m_Text
protected string m_Text
Definition: actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
ActionTakeABite
Definition: actiontakeabite.c:11
CCINonRuined
Definition: ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
ActionTakeABiteCB
Definition: actiontakeabite.c:1