diff options
| author | PurpleHato <linkvssangoku.jr@gmail.com> | 2024-12-18 05:57:37 +0100 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-12-21 15:44:35 -0600 |
| commit | 74b056fa45b9ba0e588a8dfd2f5d24c74fd19d31 (patch) | |
| tree | fdf9b3eda8d26b842380cb0a8ddb495a9287b819 /src | |
| parent | 299f6541a29707628bae91b336261a018296c0a2 (diff) | |
ADD: Cheat - Current Mission Score Editor
Diffstat (limited to 'src')
| -rw-r--r-- | src/engine/fox_display.c | 8 | ||||
| -rw-r--r-- | src/port/ui/ImguiUI.cpp | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/engine/fox_display.c b/src/engine/fox_display.c index 847464a3..b0bf6289 100644 --- a/src/engine/fox_display.c +++ b/src/engine/fox_display.c @@ -2132,6 +2132,14 @@ void Display_Update(void) { } gLaserStrength[0] = 2; } + + if (CVarGetInteger("gScoreEditor", 0) == 1) { + if ((gGameState != GSTATE_PLAY) || (gPlayState <= PLAY_INIT)) { + return; + } + gHitCount = CVarGetInteger("gScoreEditValue", 1); + + } Hit64_Main(); // ground testing #if 0 diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index d12a6840..eb9a62c8 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -471,6 +471,13 @@ void DrawCheatsMenu() { UIWidgets::CVarCheckbox("Start with Peppy dead", "gHit64PeppyDead", { .tooltip = "Start the level with with Peppy dead." }); + + UIWidgets::CVarCheckbox("Score Editor", "gScoreEditor", { .tooltip = "Enable the score editor" }); + + if (CVarGetInteger("gScoreEditor", 0) == 1) { + UIWidgets::CVarSliderInt("Score: %d", "gScoreEditValue", 0, 999, 0, + { .tooltip = "Increase or decrease the current mission score number" }); + } ImGui::EndMenu(); } |
