4 private const int GARDEN_SLOT_COUNT = 9;
5 private const float PLACEMENT_HEIGHT_LIMIT = 0.3;
14 if ( !super.OnStoreLoad(ctx, version) )
17 if ( !m_ClutterCutter )
28 super.EEDelete(parent);
30 if (m_ClutterCutter &&
g_Game)
32 g_Game.ObjectDelete(m_ClutterCutter);
33 m_ClutterCutter = NULL;
44 return GARDEN_SLOT_COUNT;
49 HideSelection(
"SeedBase_1");
50 HideSelection(
"SeedBase_2");
51 HideSelection(
"SeedBase_3");
52 HideSelection(
"SeedBase_4");
53 HideSelection(
"SeedBase_5");
54 HideSelection(
"SeedBase_6");
55 HideSelection(
"SeedBase_7");
56 HideSelection(
"SeedBase_8");
57 HideSelection(
"SeedBase_9");
58 HideSelection(
"slotCovered_01");
59 HideSelection(
"slotCovered_02");
60 HideSelection(
"slotCovered_03");
61 HideSelection(
"slotCovered_04");
62 HideSelection(
"slotCovered_05");
63 HideSelection(
"slotCovered_06");
64 HideSelection(
"slotCovered_07");
65 HideSelection(
"slotCovered_08");
66 HideSelection(
"slotCovered_09");
78 override void OnHologramBeingPlaced( Man player )
85 super.OnPlacementComplete( player, position, orientation );
90 g_Game.ObjectDelete(m_ClutterCutter);
91 m_ClutterCutter = NULL;
97 m_ClutterCutter.SetOrientation( orientation );
106 float surfaceHeight =
g_Game.SurfaceGetType3D( position[0], position[1], position[2], surface_type );
107 if ((position[1] - surfaceHeight) > PLACEMENT_HEIGHT_LIMIT)
110 return g_Game.IsSurfaceFertile(surface_type);
136class GardenPlotPolytunnel : GardenPlot
154 HideSelection(
"SeedBase_1");
155 HideSelection(
"SeedBase_2");
156 HideSelection(
"SeedBase_3");
157 HideSelection(
"SeedBase_4");
158 HideSelection(
"SeedBase_5");
159 HideSelection(
"SeedBase_6");
160 HideSelection(
"SeedBase_7");
161 HideSelection(
"SeedBase_8");
162 HideSelection(
"SeedBase_9");
163 HideSelection(
"SeedBase_10");
164 HideSelection(
"SeedBase_11");
165 HideSelection(
"SeedBase_12");
166 HideSelection(
"SeedBase_13");
171 override void OnPlacementComplete( Man player,
vector position =
"0 0 0",
vector orientation =
"0 0 0" )
180class GardenPlotPlacing
extends GardenPlot
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
override bool CanRemoveFromCargo(EntityAI parent)
const int ECE_PLACE_ON_SURFACE
override void EEDelete(EntityAI parent)
override bool CanPutInCargo(EntityAI parent)
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
override bool CanPutIntoHands(EntityAI parent)
override bool IsTakeable()
override bool CanBePlaced(Man player, vector position)
Serializer ParamsReadContext
override void SyncSlots()
class GardenPlot extends GardenBase POLYTUNNEL_SLOT_COUNT
override int GetGardenSlotsCount()
override void RefreshSlots()
vector GetPosition()
Get the world position of the Effect.
override void OnPlacementStarted(Man player)
bool OnStoreLoad(ParamsReadContext ctx, int version)
override void EOnInit(IEntity other, int extra)