Skip to content

Commit

Permalink
Fix main menu freecam and jittering
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownX7 committed Apr 12, 2023
1 parent 5d7e996 commit 6a0535e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions FreeCam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ public static void Toggle(bool death = false)
onDeath = death;
prevZoom = gameCamera->currentZoom;

if (isMainMenu)
*(byte*)((nint)gameCamera + 0x2A0) = 0;
gameCamera->minVRotation = -1.559f;
gameCamera->maxVRotation = 1.559f;
gameCamera->minFoV = gameCamera->maxFoV = gameCamera->currentFoV;
gameCamera->currentZoom = gameCamera->minZoom = gameCamera->maxZoom = 0;
gameCamera->currentZoom = gameCamera->minZoom = gameCamera->maxZoom = 0.06f;
Game.ZoomDelta = 0;
gameCamera->mode = 1;
Game.cameraNoCollideReplacer.Enable();
Expand All @@ -60,6 +58,10 @@ public static void Toggle(bool death = false)
"\nCycle through Enemies (Farthest to Nearest) / Controller Open Main Menu - Stop");
}
}
else
{
gameCamera->lockPosition = 0;
}
}
else
{
Expand Down

0 comments on commit 6a0535e

Please sign in to comment.