Added slider to increase vine/ladder climbing speed

This commit is contained in:
Josh Bodner 2022-05-17 23:51:20 -07:00
commit fa457147de
2 changed files with 2 additions and 1 deletions

View file

@ -665,6 +665,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: %dx", "##CLIMBSPEED", "gClimbSpeed", 1, 5, "");
EnhancementCheckbox("Skip Text", "gSkipText");
Tooltip("Holding down B skips text");

View file

@ -11613,7 +11613,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 * CVar_GetS32("gClimbSpeed", 1);
if (this->unk_850 >= 0) {
if ((this->actor.wallPoly != NULL) && (this->actor.wallBgId != BGCHECK_SCENE)) {