disable setfloat cg_fov

This commit is contained in:
quaK 2024-07-26 15:00:16 +03:00
parent 20345a7747
commit e34b7802ba

View File

@ -57,6 +57,10 @@ namespace fov
// don't reset our fov // don't reset our fov
utils::hook::set<uint8_t>(0x1408A6160, 0xC3); utils::hook::set<uint8_t>(0x1408A6160, 0xC3);
// don't set cg_fov value
utils::hook::nop(0x1408B5659, 5);
utils::hook::set<uint8_t>(0x1408B5659, 0xC3);
// disable FOV compensation by default // 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_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); cg_view_calc_fov_compensation_hook.create(0x140889B60, cg_view_calc_fov_compensation_stub);