Fix Dampe Going Backwards (#5731)
* Add FixDampeGoingBackwards * Update SohMenuEnhancements.cpp
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
"EnemySpawnsOverWaterboxes": 1,
|
"EnemySpawnsOverWaterboxes": 1,
|
||||||
"FasterRupeeAccumulator": 1,
|
"FasterRupeeAccumulator": 1,
|
||||||
"FixBrokenGiantsKnife": 1,
|
"FixBrokenGiantsKnife": 1,
|
||||||
|
"FixDampeGoingBackwards": 1,
|
||||||
"FixDaruniaDanceSpeed": 1,
|
"FixDaruniaDanceSpeed": 1,
|
||||||
"FixDungeonMinimapIcon": 1,
|
"FixDungeonMinimapIcon": 1,
|
||||||
"FixEyesOpenWhileSleeping": 1,
|
"FixEyesOpenWhileSleeping": 1,
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
"FishNeverEscape": 1,
|
"FishNeverEscape": 1,
|
||||||
"FixBrokenGiantsKnife": 1,
|
"FixBrokenGiantsKnife": 1,
|
||||||
"FixDaruniaDanceSpeed": 1,
|
"FixDaruniaDanceSpeed": 1,
|
||||||
|
"FixDampeGoingBackwards": 1,
|
||||||
"FixDungeonMinimapIcon": 1,
|
"FixDungeonMinimapIcon": 1,
|
||||||
"FixFloorSwitches": 1,
|
"FixFloorSwitches": 1,
|
||||||
"FixHammerHand": 1,
|
"FixHammerHand": 1,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"FasterRupeeAccumulator": 1,
|
"FasterRupeeAccumulator": 1,
|
||||||
"FixBrokenGiantsKnife": 1,
|
"FixBrokenGiantsKnife": 1,
|
||||||
"FixDaruniaDanceSpeed": 1,
|
"FixDaruniaDanceSpeed": 1,
|
||||||
|
"FixDampeGoingBackwards": 1,
|
||||||
"FixDungeonMinimapIcon": 1,
|
"FixDungeonMinimapIcon": 1,
|
||||||
"FixEyesOpenWhileSleeping": 1,
|
"FixEyesOpenWhileSleeping": 1,
|
||||||
"FixFloorSwitches": 1,
|
"FixFloorSwitches": 1,
|
||||||
|
|||||||
@@ -942,6 +942,10 @@ void SohMenu::AddMenuEnhancements() {
|
|||||||
})
|
})
|
||||||
.Options(CheckboxOptions().Tooltip(
|
.Options(CheckboxOptions().Tooltip(
|
||||||
"Fixes a bug where the Gravedigging Tour Heart Piece disappears if the area reloads."));
|
"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)
|
AddWidget(path, "Fix Raised Floor Switches", WIDGET_CVAR_CHECKBOX)
|
||||||
.CVar(CVAR_ENHANCEMENT("FixFloorSwitches"))
|
.CVar(CVAR_ENHANCEMENT("FixFloorSwitches"))
|
||||||
.Options(CheckboxOptions().Tooltip(
|
.Options(CheckboxOptions().Tooltip(
|
||||||
|
|||||||
@@ -238,6 +238,11 @@ void EnPoRelay_Race(EnPoRelay* this, PlayState* play) {
|
|||||||
} else {
|
} else {
|
||||||
speed = 3.5f;
|
speed = 3.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CVarGetInteger(CVAR_ENHANCEMENT("FixDampeGoingBackwards"), false)) {
|
||||||
|
speed = ABS(speed);
|
||||||
|
}
|
||||||
|
|
||||||
multiplier = 250.0f - this->actor.xzDistToPlayer;
|
multiplier = 250.0f - this->actor.xzDistToPlayer;
|
||||||
multiplier = CLAMP_MIN(multiplier, 0.0f);
|
multiplier = CLAMP_MIN(multiplier, 0.0f);
|
||||||
speed += multiplier * 0.02f + 1.0f;
|
speed += multiplier * 0.02f + 1.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user