add AllRange debug option

This commit is contained in:
Sonic Dreamcaster
2024-10-18 01:41:00 -03:00
parent 0e12e06407
commit 08724d6dac
2 changed files with 16 additions and 1 deletions
+12 -1
View File
@@ -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) {
+4
View File
@@ -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"
});