Fix Dampe Going Backwards (#5731)

* Add FixDampeGoingBackwards

* Update SohMenuEnhancements.cpp
This commit is contained in:
Pepe20129
2025-08-25 21:00:59 +02:00
committed by GitHub
parent 7b4df9bdb2
commit 9eafa852b5
5 changed files with 12 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
"EnemySpawnsOverWaterboxes": 1,
"FasterRupeeAccumulator": 1,
"FixBrokenGiantsKnife": 1,
"FixDampeGoingBackwards": 1,
"FixDaruniaDanceSpeed": 1,
"FixDungeonMinimapIcon": 1,
"FixEyesOpenWhileSleeping": 1,

View File

@@ -45,6 +45,7 @@
"FishNeverEscape": 1,
"FixBrokenGiantsKnife": 1,
"FixDaruniaDanceSpeed": 1,
"FixDampeGoingBackwards": 1,
"FixDungeonMinimapIcon": 1,
"FixFloorSwitches": 1,
"FixHammerHand": 1,

View File

@@ -17,6 +17,7 @@
"FasterRupeeAccumulator": 1,
"FixBrokenGiantsKnife": 1,
"FixDaruniaDanceSpeed": 1,
"FixDampeGoingBackwards": 1,
"FixDungeonMinimapIcon": 1,
"FixEyesOpenWhileSleeping": 1,
"FixFloorSwitches": 1,

View File

@@ -942,6 +942,10 @@ void SohMenu::AddMenuEnhancements() {
})
.Options(CheckboxOptions().Tooltip(
"Fixes a bug where the Gravedigging Tour Heart Piece disappears if the area reloads."));
AddWidget(path, "Fix Dampé Going Backwards", WIDGET_CVAR_CHECKBOX)
.CVar(CVAR_ENHANCEMENT("FixDampeGoingBackwards"))
.Options(CheckboxOptions().Tooltip(
"Fixes Dampé going backwards in certain circumstances when the player is going backwards."));
AddWidget(path, "Fix Raised Floor Switches", WIDGET_CVAR_CHECKBOX)
.CVar(CVAR_ENHANCEMENT("FixFloorSwitches"))
.Options(CheckboxOptions().Tooltip(

View File

@@ -238,6 +238,11 @@ void EnPoRelay_Race(EnPoRelay* this, PlayState* play) {
} else {
speed = 3.5f;
}
if (CVarGetInteger(CVAR_ENHANCEMENT("FixDampeGoingBackwards"), false)) {
speed = ABS(speed);
}
multiplier = 250.0f - this->actor.xzDistToPlayer;
multiplier = CLAMP_MIN(multiplier, 0.0f);
speed += multiplier * 0.02f + 1.0f;