21 m_Text =
"#make_garden_plot";
27 if (!
GetGame().IsDedicatedServer())
30 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
33 if (player.IsPlacingLocal())
35 Hologram hologram = player.GetHologramLocal();
62 item_GP.GetCollisionBox(min_max);
63 float offset = min_max[1][1] - min_max[0][1];
65 vector pos_adjusted = item_GP.GetPosition();
66 pos_adjusted[1] = pos_adjusted[1] + offset;
68 if (item_GP.CanBePlaced(player, pos_adjusted) )
106 vector position = action_data.
m_Player.GetLocalProjectionPosition();
107 vector orientation = action_data.
m_Player.GetLocalProjectionOrientation();
111 m_GardenPlot = GardenPlot.Cast(action_data.
m_Player.GetHologramServer().PlaceEntity(entity_for_placing));
113 action_data.
m_Player.GetHologramServer().CheckPowerSource();
114 action_data.
m_Player.PlacingCompleteServer();
120 if (!
GetGame().IsMultiplayer())
122 m_GardenPlot = GardenPlot.Cast(action_data.
m_Player.GetHologramLocal().PlaceEntity(entity_for_placing));
124 action_data.
m_Player.PlacingCompleteLocal();
130 action_data.
m_MainItem.SetIsBeingPlaced(
false);
133 action_data.
m_MainItem.SoundSynchRemoteReset();
135 MiscGameplayFunctions.DealAbsoluteDmg(action_data.
m_MainItem, 10);
protected float m_SpecialtyWeight
protected bool m_FullBody
protected int m_StanceMask
PlaceObjectActionReciveData ActionReciveData ActionDeployObject()
class ActionTargets ActionTarget
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
void ActionDigGardenPlot()
override void DropDuringPlacing(PlayerBase player)
override void SetupAnimation(ItemBase item)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnFinishProgressClient(ActionData action_data)
void CheckSurfaceBelowGardenPlot(PlayerBase player, GardenPlot item_GP, Hologram hologram)
proto native bool ClearJuncture(Man player, notnull EntityAI item)
Super root of all classes in Enforce script.
void SetIsCollidingGPlot(bool is_colliding_gplot)
vector GetRightFarProjectionVector()
vector GetLeftCloseProjectionVector()
EntityAI GetProjectionEntity()
vector GetRightCloseProjectionVector()
vector GetLeftFarProjectionVector()
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.