Skip to content

Commit

Permalink
Reverse Freecam Speed Up/Slowdown Direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Aug 18, 2019
1 parent bc07e77 commit adb8445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sonicheroes.utils.freecam/Freecam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ private void HandleFreeMode(ref ExtendedHeroesController inputs)

// Modify Move Speed (DPAD UD)
if (ButtonPressed(inputs.ButtonFlags, ButtonFlags.DpadUp))
_heroesController.MoveSpeed -= (_heroesController.MoveSpeed * 0.011619440F); // Calculated using Geometric Progression; Approx 1 second for 2x increase.
_heroesController.MoveSpeed += (_heroesController.MoveSpeed * 0.011619440F); // Calculated using Geometric Progression; Approx 1 second for 2x increase.

if (ButtonPressed(inputs.ButtonFlags, ButtonFlags.DpadDown))
_heroesController.MoveSpeed += (_heroesController.MoveSpeed * 0.011619440F); // Calculated using Geometric Progression; Approx 1 second for 2x increase.
_heroesController.MoveSpeed -= (_heroesController.MoveSpeed * 0.011619440F); // Calculated using Geometric Progression; Approx 1 second for 2x increase.

// Modify Rotate Speed (DPAD LR)
if (ButtonPressed(inputs.ButtonFlags, ButtonFlags.DpadRight))
Expand Down
2 changes: 1 addition & 1 deletion sonicheroes.utils.freecam/ModConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"ModId": "sonicheroes.utils.freecam",
"ModName": "Heroes Freecam",
"ModAuthor": "Sewer56",
"ModVersion": "1.0.1",
"ModVersion": "1.0.2",
"ModDescription": "A free camera for the PC version of Sonic Heroes. Provides additional utilities like freezing world, teleporting and removing HUD.",
"ModDll": "sonicheroes.utils.freecam.dll",
"ModIcon": "Preview.png",
Expand Down

0 comments on commit adb8445

Please sign in to comment.