mirror of
https://github.com/HarbourMasters/Starship
synced 2026-08-05 17:53:47 -04:00
add AllRange debug option
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user