Added spawner mod as an option on developer

This commit is contained in:
KiritoDv 2024-11-18 20:00:42 -06:00
parent f59fa4a7cd
commit c1fa820bfc
3 changed files with 17 additions and 4 deletions

View File

@ -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
/* ************************* */

View File

@ -627,9 +627,9 @@ void Game_Update(void) {
#if MODS_FPS_COUNTER == 1
Play_RenderFps();
#endif
#if MODS_SPAWNER == 1
if(CVarGetInteger("gSpawnerMod", 0) == 1){
Spawner();
#endif
}
}
RCP_SetupDL(&gMasterDisp, SETUPDL_83);
gDPSetPrimColor(gMasterDisp++, 0, 0, 255, 255, 0, 255);

View File

@ -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"
});