mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Add FixDampeGoingBackwards
This commit is contained in:
parent
6d4c6f8ea6
commit
11a2999bc0
5 changed files with 11 additions and 0 deletions
|
@ -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,
|
||||||
|
|
|
@ -940,6 +940,9 @@ 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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue