21 m_Text =
"#make_garden_plot";
27 if (!
g_Game.IsDedicatedServer())
30 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
36 if (player.IsPlacingLocal())
38 Hologram hologram = player.GetHologramLocal();
65 item_GP.GetCollisionBox(min_max);
66 float offset = min_max[1][1] - min_max[0][1];
67 vector pos_adjusted = item_GP.GetPosition();
68 pos_adjusted[1] = pos_adjusted[1] + offset;
70 if (item_GP.CanBePlaced(player, pos_adjusted) )
111 if (
g_Game.IsMultiplayer())
113 m_GardenPlot = GardenPlot.Cast(action_data.
m_Player.GetHologramServer().PlaceEntity(entity_for_placing));
115 action_data.
m_Player.GetHologramServer().CheckPowerSource();
116 action_data.
m_Player.PlacingCompleteServer();
122 if (!
g_Game.IsMultiplayer())
124 m_GardenPlot = GardenPlot.Cast(action_data.
m_Player.GetHologramLocal().PlaceEntity(entity_for_placing));
126 action_data.
m_Player.PlacingCompleteServer();
127 action_data.
m_Player.PlacingCompleteLocal();
133 action_data.
m_MainItem.SetIsBeingPlaced(
false);
136 MiscGameplayFunctions.DealEvinronmentAdjustedDmg(action_data.
m_MainItem, action_data.
m_Player, 10);
PlaceObjectActionReciveData ActionReciveData ActionDeployObject()
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
override void SetupAnimation(ItemBase item)
void ActionDigGardenPlot()
override void OnFinishProgressServer(ActionData action_data)
override void OnFinishProgressClient(ActionData action_data)
override void DropDuringPlacing(PlayerBase player)
void CheckSurfaceBelowGardenPlot(PlayerBase player, GardenPlot item_GP, Hologram hologram)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateActionComponent()
static bool GetDisableColdAreaPlacementCheck()
Super root of all classes in Enforce script.
void SetIsCollidingGPlot(bool is_colliding_gplot)
vector GetLeftFarProjectionVector()
vector GetRightFarProjectionVector()
vector GetLeftCloseProjectionVector()
vector GetRightCloseProjectionVector()
EntityAI GetProjectionEntity()
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.