diff --git a/src/engine/fox_display.c b/src/engine/fox_display.c index 4095abb5..15785c65 100644 --- a/src/engine/fox_display.c +++ b/src/engine/fox_display.c @@ -1960,6 +1960,9 @@ void Display_Update(void) { return; } if (gControllerPress[0].button & L_TRIG) { + if ((gCurrentLevel != LEVEL_SECTOR_X) && (gCurrentLevel != LEVEL_METEO)) { + return; + } if (gCurrentLevel == LEVEL_SECTOR_X) { gRingPassCount++; gPlayer[0].state_1C8 = PLAYERSTATE_1C8_ENTER_WARP_ZONE; @@ -1984,7 +1987,7 @@ void Display_Update(void) { } gPlayer->mercyTimer = 1000; } - + if (CVarGetInteger("gDebugLevelComplete", 0) == 1) { Player* pl = &gPlayer[0]; if ((gGameState != GSTATE_PLAY) || (gPlayState <= PLAY_INIT)) { @@ -1996,6 +1999,14 @@ void Display_Update(void) { } } + if (CVarGetInteger("gDebugJumpToAllRange", 0) == 1) { + Player* pl2 = &gPlayer[0]; + + if (gControllerPress[0].button & L_TRIG) { + pl2->state_1C8 = PLAYERSTATE_1C8_START_360; + } + } + // Cheats start here if (CVarGetInteger("gInfiniteLives", 0) == 1) { diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index 279d67e8..7b08d70d 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -477,6 +477,10 @@ void DrawDebugMenu() { .tooltip = "Press L to Level Complete" }); + UIWidgets::CVarCheckbox("L to All-Range mode", "gDebugJumpToAllRange", { + .tooltip = "Press L to switch to All-Range mode" + }); + UIWidgets::CVarCheckbox("Disable Collision", "gDebugNoCollision", { .tooltip = "Disable vehicle collision" });