From e34b7802baa5e4caa9ff246f09180fab71afe59b Mon Sep 17 00:00:00 2001 From: quaK Date: Fri, 26 Jul 2024 15:00:16 +0300 Subject: [PATCH] disable setfloat cg_fov --- src/client/component/fov.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/component/fov.cpp b/src/client/component/fov.cpp index 9256c7d0..ca28020a 100644 --- a/src/client/component/fov.cpp +++ b/src/client/component/fov.cpp @@ -57,6 +57,10 @@ namespace fov // don't reset our fov utils::hook::set(0x1408A6160, 0xC3); + // don't set cg_fov value + utils::hook::nop(0x1408B5659, 5); + utils::hook::set(0x1408B5659, 0xC3); + // disable FOV compensation by default cg_use_fov_comp = game::Dvar_RegisterBool("cg_use_fov_comp", false, game::DVAR_FLAG_SAVED, "Use FOV offset compensation for the viewmodel"); cg_view_calc_fov_compensation_hook.create(0x140889B60, cg_view_calc_fov_compensation_stub);