8 time_spent = time_spent * 1.2;
34 if (player.IsPlacingLocal())
38 vector plr_pos = player.GetPosition();
40 height = plr_pos[1] - height;
45 if (!player.IsPlacingLocal())
55 if (super.SetupAction(player, target, item, action_data, extra_data))
77 worms.SetQuantity(10,
false);
78 MiscGameplayFunctions.DealAbsoluteDmg(action_data.
m_MainItem, 4);
84 if (item.KindOf(
"Knife"))
102 position = target.GetCursorHitPos();
106 if (
GetGame().IsSurfaceFertile(surface_type))
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected bool m_FullBody
protected int m_StanceMask
class ActionTargets ActionTarget
const int ECE_PLACE_ON_SURFACE
protected ActionData m_ActionData
ref CABase m_ActionComponent
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
bool IsTargetFertile(ActionTarget target)
void SetDiggingAnimation(ItemBase item)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasTarget()
override bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
protected int m_CommandUID
protected m_CallbackClass
proto void SurfaceGetType(float x, float z, out string type)
proto native float SurfaceY(float x, float z)
Super root of all classes in Enforce script.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.