Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
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
11class ActionTakeABite: ActionConsumeSingle
12{
13 void ActionTakeABite()
14 {
15 m_CallbackClass = ActionTakeABiteCB;
16
17 m_Sound = "EatingSoft_0";
18 m_Text = "#take_a_bite";
19 }
20
21 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
22 {
23 return false;
24 }
25
27 {
28 m_ConditionItem = new CCINonRuined();
29 m_ConditionTarget = new CCTSelf();
30 }
31}
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
ActionTakeABiteCB ActionSingleUseBaseCB ActionTakeABite()
ActionData m_ActionData
EffectSound m_Sound