From 1feef9d5d689f9c1c16604ddc8ab25540daa2ee6 Mon Sep 17 00:00:00 2001 From: Josh Bodner <30329717+jbodner09@users.noreply.github.com> Date: Sat, 11 Jun 2022 09:07:00 -0700 Subject: [PATCH] Added slider to increase vine/ladder climbing speed (#375) * Added slider to increase vine/ladder climbing speed * moved to cheats menu and made steps more granular * Fix granularity math * back to the enhancements menu! --- libultraship/libultraship/SohImGuiImpl.cpp | 1 + soh/src/overlays/actors/ovl_player_actor/z_player.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index d54ab3a86..476b8e12a 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -850,6 +850,7 @@ namespace SohImGui { { EnhancementSliderInt("Text Speed: %dx", "##TEXTSPEED", "gTextSpeed", 1, 5, ""); EnhancementSliderInt("King Zora Speed: %dx", "##WEEPSPEED", "gMweepSpeed", 1, 5, ""); + EnhancementSliderInt("Vine/Ladder Climb speed +%d", "##CLIMBSPEED", "gClimbSpeed", 0, 12, ""); EnhancementCheckbox("Skip Text", "gSkipText"); Tooltip("Holding down B skips text"); diff --git a/soh/src/overlays/actors/ovl_player_actor/z_player.c b/soh/src/overlays/actors/ovl_player_actor/z_player.c index 5ec436b05..cf1736cb9 100644 --- a/soh/src/overlays/actors/ovl_player_actor/z_player.c +++ b/soh/src/overlays/actors/ovl_player_actor/z_player.c @@ -11626,7 +11626,7 @@ void func_8084BF1C(Player* this, GlobalContext* globalCtx) { phi_f2 = -1.0f; } - this->skelAnime.playSpeed = phi_f2 * phi_f0; + this->skelAnime.playSpeed = phi_f2 * phi_f0 + phi_f2 * CVar_GetS32("gClimbSpeed", 0); if (this->unk_850 >= 0) { if ((this->actor.wallPoly != NULL) && (this->actor.wallBgId != BGCHECK_SCENE)) {