123{
125
127 {
130
132 }
133
135 {
137 }
138
140 {
141 return true;
142 }
143
145 {
146 return false;
147 }
148
150 {
153 }
154
156 {
158 return super.ActionCondition(player, target, item) && player.CanEatAndDrink() && player.CanConsumeFood(dta) && item.CanBeConsumed(dta);
159 }
160
162 {
164
166 {
172
173 player.Consume(consumeData);
174 }
175 }
176
178 {
179 super.OnEndServer(action_data);
180
183 }
184}
185
188{
190 {
191 m_ActionData.m_ActionComponent = new CASingleUseQuantityEdible(UAQuantityConsumed.DEFAULT);
192 }
193}
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
override void OnEndServer(ActionData action_data)
const int DEFAULT_CONSUMED_QUANTITY
int GetConsumedQuantity()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void ActionConsumeSingle()
override void OnExecuteServer(ActionData action_data)
override bool HasProneException()
override void CreateConditionComponents()
override bool HasTarget()
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
override void CreateActionComponent()
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
DayZPlayerConstants
defined in C++