Skip to content

Commit

Permalink
fix Q/E rotation too fast #3
Browse files Browse the repository at this point in the history
  • Loading branch information
t0stiman committed Feb 14, 2024
1 parent 76b7732 commit 8d858b4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Patches/StrategyCameraController_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,19 @@ private static bool Prefix(ref StrategyCameraController __instance)

Vector3 movement = GameInput.shared.GetMovement(__instance.normalSpeed, __instance.fastSpeed, __instance.fasterSpeed);
__instance._movementInput = new Vector3(movement.x, 0.0f, movement.z);
__instance._angleYInput += movement.y / 5f;

// ======= this is changed: ======

if (Main.MySettings.DisableCameraSmoothing)
{
__instance._angleYInput += movement.y / 60f;
}
else
{
__instance._angleYInput += movement.y / 5f;
}

// ======= this is unchanged: ======

bool leftMouseButtonClicked = false;
bool rightMouseButtonPressed = false;
Expand Down

0 comments on commit 8d858b4

Please sign in to comment.