diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-10-16 23:05:53 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-10-16 23:05:53 -0300 |
| commit | 1f14108143e4ed3c2dde052d46cb1fda00c9511f (patch) | |
| tree | 757c8ac3d8eee303e6766cc683e388776773eb21 | |
| parent | 964bc598221b8c23d70f05e4c2c6b5adfa502029 (diff) | |
Restore beta bomb explosion
| -rw-r--r-- | src/engine/fox_beam.c | 16 | ||||
| -rw-r--r-- | src/port/ui/ImguiUI.cpp | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/engine/fox_beam.c b/src/engine/fox_beam.c index 7defccb2..ae19d6f7 100644 --- a/src/engine/fox_beam.c +++ b/src/engine/fox_beam.c @@ -1310,7 +1310,14 @@ void PlayerShot_DrawShot(PlayerShot* shot) { Matrix_SetGfxMtx(&gMasterDisp); gSPDisplayList(gMasterDisp++, aOrbDL); } else { - Matrix_Scale(gGfxMatrix, shot->scale, shot->scale, shot->scale, MTXF_APPLY); + + if (CVarGetInteger("gRestoreBetaBombExplosion", 0) != 1) { + Matrix_Scale(gGfxMatrix, shot->scale, shot->scale, shot->scale, MTXF_APPLY); + } else { + Matrix_Scale(gGfxMatrix, shot->scale / 1.5f, shot->scale / 1.5f, shot->scale / 1.5f, + MTXF_APPLY); + } + Matrix_SetGfxMtx(&gMasterDisp); if (gVersusMode) { RCP_SetupDL_49(); @@ -1333,7 +1340,12 @@ void PlayerShot_DrawShot(PlayerShot* shot) { RCP_SetupDL_64_2(); gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 255, shot->unk_58); } - gSPDisplayList(gMasterDisp++, D_1031EC0); + + if (CVarGetInteger("gRestoreBetaBombExplosion", 0) != 1) { + gSPDisplayList(gMasterDisp++, D_1031EC0); + } else { + gSPDisplayList(gMasterDisp++, D_102FF90); + } } break; case PLAYERSHOT_TANK: diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index f488aedf..67dfb7e1 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -606,6 +606,10 @@ void DrawEnhancementsMenu() { .tooltip = "Restores the missile cutscene bug present in JP 1.0" }); + UIWidgets::CVarCheckbox("Beta: Restore beta bomb explosion", "gRestoreBetaBombExplosion", { + .tooltip = "Restores the beta bomb explosion found inside the game" + }); + UIWidgets::CVarCheckbox("Beta: Restore beta coin", "gRestoreBetaCoin", { .tooltip = "Restores the beta coin that got replaced with the gold ring" }); |
