diff --git a/src/game/Render/Gui/gui.cpp b/src/game/Render/Gui/gui.cpp index f44f99b..b234136 100644 --- a/src/game/Render/Gui/gui.cpp +++ b/src/game/Render/Gui/gui.cpp @@ -79,7 +79,7 @@ void Gui::Render() ImGui::SliderInt("FPS", &vars.i_FPS, 5, 360, "%d"); ImGui::CheckboxFill("Fov Changer", &vars.b_FovChanger); if (vars.b_FovChanger) - ImGui::SliderFloat("Fov", &vars.i_Fov, 1.0f, 360.0f, "%.1f"); + ImGui::SliderFloat("Fov", &vars.f_Fov, 1.0f, 360.0f, "%.1f"); ImGui::CheckboxFill("Skip Intro Movie", &vars.b_SkipIntroMovie); HELPMAKER("This will skip the intro movie when you start the game"); diff --git a/src/game/appdata/il2cpp-functions.h b/src/game/appdata/il2cpp-functions.h index dddef74..fc08589 100644 --- a/src/game/appdata/il2cpp-functions.h +++ b/src/game/appdata/il2cpp-functions.h @@ -12,7 +12,7 @@ DO_APP_FUNC(0x0202DAF0, String*, Marshal_PtrToStringAnsi, (void* ptr, MethodInfo DO_APP_FUNC(0x0202DB10, String*, Marshal_PtrToStringUni, (void* ptr, MethodInfo* method)); // FovChanger -DO_APP_FUNC(0x301C600, void, Camera_set_fieldOfView, (void* __this, float value, MethodInfo* method)); +DO_APP_FUNC(0x0301C600, void, Camera_set_fieldOfView, (void* __this, float value, MethodInfo* method)); // FPSUnlock DO_APP_FUNC(0x03015300, int, Application_get_targetFrameRate, (MethodInfo* method)); diff --git a/src/game/cheat/features/FovChanger.cpp b/src/game/cheat/features/FovChanger.cpp index baf4eeb..a253dee 100644 --- a/src/game/cheat/features/FovChanger.cpp +++ b/src/game/cheat/features/FovChanger.cpp @@ -14,7 +14,7 @@ namespace Cheat::Features void FovChanger::Camera_set_fieldOfView_Hook(void* __this, float value, MethodInfo* method) { if (vars.b_FovChanger) - value = vars.i_Fov; + value = vars.f_Fov; CALL_ORIGIN(Camera_set_fieldOfView_Hook, __this, value, method); } } diff --git a/src/game/cheat/vars.h b/src/game/cheat/vars.h index e3259a2..b330a49 100644 --- a/src/game/cheat/vars.h +++ b/src/game/cheat/vars.h @@ -15,7 +15,7 @@ struct Vars bool b_FPSUnlock = true; int i_FPS = 120; bool b_FovChanger = false; - float i_Fov = 60.0f; + float f_Fov = 60.0f; bool b_SkipIntroMovie = true; };