From 6a0535e491933cde9890f1fba439c4de8b286329 Mon Sep 17 00:00:00 2001 From: UnknownX7 Date: Wed, 12 Apr 2023 15:46:18 -0500 Subject: [PATCH] Fix main menu freecam and jittering --- FreeCam.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/FreeCam.cs b/FreeCam.cs index c9ddc0f..cdecedb 100644 --- a/FreeCam.cs +++ b/FreeCam.cs @@ -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(); @@ -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 {