diff options
| author | Josh Bodner <30329717+jbodner09@users.noreply.github.com> | 2022-06-11 09:07:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 12:07:00 -0400 |
| commit | 1feef9d5d689f9c1c16604ddc8ab25540daa2ee6 (patch) | |
| tree | 9837b95fb9487b3a325d2157355d2acef6c4fbc1 | |
| parent | f3dda92e789dde838bbeb87c4079aaeba9606613 (diff) | |
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!
| -rw-r--r-- | libultraship/libultraship/SohImGuiImpl.cpp | 1 | ||||
| -rw-r--r-- | soh/src/overlays/actors/ovl_player_actor/z_player.c | 2 |
2 files changed, 2 insertions, 1 deletions
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)) { |
