diff --git a/include/mods.h b/include/mods.h index d2a45b0f..d24794ff 100644 --- a/include/mods.h +++ b/include/mods.h @@ -78,7 +78,7 @@ * D-Pad DOWN to freeze/unfreeze the ship speed. * WARNING: Spawning an object that's not loaded in memory will likely result in a crash. */ -#define MODS_SPAWNER 0 +#define MODS_SPAWNER 1 /* ************************* */ diff --git a/src/engine/fox_game.c b/src/engine/fox_game.c index 030446d8..5a08d025 100644 --- a/src/engine/fox_game.c +++ b/src/engine/fox_game.c @@ -627,9 +627,9 @@ void Game_Update(void) { #if MODS_FPS_COUNTER == 1 Play_RenderFps(); #endif -#if MODS_SPAWNER == 1 - Spawner(); -#endif + if(CVarGetInteger("gSpawnerMod", 0) == 1){ + Spawner(); + } } RCP_SetupDL(&gMasterDisp, SETUPDL_83); gDPSetPrimColor(gMasterDisp++, 0, 0, 255, 255, 0, 255); diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index 5fdac56c..05496a22 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -493,6 +493,19 @@ void DrawDebugMenu() { .tooltip = "Allows you to play sound effects from the game" }); + UIWidgets::CVarCheckbox("Spawner Mod", "gSpawnerMod", { + .tooltip = "Spawn Scenery, Actors, Bosses, Sprites, Items, Effects and even Event Actors.\n" + "\n" + "Controls:\n" + "D-Pad left and right to set the object Id.\n" + "C-Right to change between spawn modes.\n" + "Analog stick sets the spawn position.\n" + "L-Trigger to spawn the object.\n" + "D-Pad UP to kill all objects.\n" + "D-Pad DOWN to freeze/unfreeze the ship speed.\n" + "WARNING: Spawning an object that's not loaded in memory will likely result in a crash." + }); + UIWidgets::CVarCheckbox("Disable stars interpolation", "gDisableStarsInterpolation", { .tooltip = "Disable starfield interpolation for performance" });