From 1bad377be1b1e1d2377dd17442181a436a42cbd1 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sun, 10 Jan 2021 15:59:51 -0600 Subject: [PATCH 1/2] add a %this.registerMissionObject( "SpawnSphere", "General Spawn Sphere", "GeneralDropPoint" ); to the level creator folder --- .../tools/worldEditor/gui/objectBuilderGui.ed.gui | 13 +++++++++++++ .../tools/worldEditor/scripts/editors/creator.ed.cs | 1 + 2 files changed, 14 insertions(+) diff --git a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui index 28117af2e..3533b4f41 100644 --- a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui +++ b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui @@ -1072,6 +1072,19 @@ function ObjectBuilderGui::buildObserverDropPoint(%this) %this.process(); } +function ObjectBuilderGui::buildGeneralDropPoint(%this) +{ + %this.objectClassName = "SpawnSphere"; + %this.addField("dataBlock", "TypeDataBlock", "dataBlock", "MissionMarkerData SpawnSphereMarker"); + %this.addField("radius", "TypeFloat", "Radius", 1); + %this.addField("sphereWeight", "TypeFloat", "Sphere Weight", 1); + + %this.addField("spawnClass", "TypeString", "Spawn Class", ""); + %this.addField("spawnDatablock", "TypeString", "Spawn Data", ""); + %this.addField("spawnTransform", "TypeBool", "Spawn Here", "true"); + %this.process(); +} + function ObjectBuilderGui::buildNotesObject(%this) { %this.objectClassName = "NotesObject"; diff --git a/Templates/BaseGame/game/tools/worldEditor/scripts/editors/creator.ed.cs b/Templates/BaseGame/game/tools/worldEditor/scripts/editors/creator.ed.cs index 8b5e706da..08bd46598 100644 --- a/Templates/BaseGame/game/tools/worldEditor/scripts/editors/creator.ed.cs +++ b/Templates/BaseGame/game/tools/worldEditor/scripts/editors/creator.ed.cs @@ -87,6 +87,7 @@ function EWCreatorWindow::init( %this ) %this.registerMissionObject( "Portal", "Zone Portal" ); %this.registerMissionObject( "SpawnSphere", "Player Spawn Sphere", "PlayerDropPoint" ); %this.registerMissionObject( "SpawnSphere", "Observer Spawn Sphere", "ObserverDropPoint" ); + %this.registerMissionObject( "SpawnSphere", "General Spawn Sphere", "GeneralDropPoint" ); %this.registerMissionObject( "SFXSpace", "Sound Space" ); %this.registerMissionObject( "OcclusionVolume", "Occlusion Volume" ); %this.registerMissionObject( "AccumulationVolume", "Accumulation Volume" ); From 7e3e1941c685c740e3f1762223d1741621e920db Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Wed, 27 Jan 2021 14:03:12 -0600 Subject: [PATCH 2/2] add a toggle for the standard canSaveDynamicFields flipped by default to off so folks can bolt variables on the fly onto the spawner (like thing spawned, how many ect) without it poluting level saves --- .../BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui | 1 + 1 file changed, 1 insertion(+) diff --git a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui index 3533b4f41..34fa23b8f 100644 --- a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui +++ b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui @@ -1082,6 +1082,7 @@ function ObjectBuilderGui::buildGeneralDropPoint(%this) %this.addField("spawnClass", "TypeString", "Spawn Class", ""); %this.addField("spawnDatablock", "TypeString", "Spawn Data", ""); %this.addField("spawnTransform", "TypeBool", "Spawn Here", "true"); + %this.addField("canSaveDynamicFields", "TypeBool", "Save metadata", "false"); %this.process(); }