fix third person spectating #320

This commit is contained in:
m 2022-12-25 06:09:33 -06:00
parent a0529eb761
commit 2c6da84d54
2 changed files with 1 additions and 4 deletions

View File

@ -438,7 +438,7 @@ namespace patches
// prevent servers overriding our fov // prevent servers overriding our fov
utils::hook::nop(0x17DA96_b, 0x16); utils::hook::nop(0x17DA96_b, 0x16);
utils::hook::nop(0xE00BE_b, 0x17); utils::hook::nop(0xE00BE_b, 0x17);
utils::hook::set<uint8_t>(0x307F39_b, 0xEB); utils::hook::nop(0x307F90_b, 0x5); // don't change cg_fov when toggling third person spectating
// make setclientdvar behave like older games // make setclientdvar behave like older games
cg_set_client_dvar_from_server_hook.create(0x11AA90_b, cg_set_client_dvar_from_server_stub); cg_set_client_dvar_from_server_hook.create(0x11AA90_b, cg_set_client_dvar_from_server_stub);

View File

@ -296,9 +296,6 @@ namespace game
WEAK symbol<int> connectionState{0x0, 0x2EC82C8}; WEAK symbol<int> connectionState{0x0, 0x2EC82C8};
// TODO: move to dvars.cpp when done
WEAK symbol<dvar_t> fs_gameDirVal{0x0, 0x2EC86B8};
WEAK symbol<int> g_poolSize{0x0, 0x10B3C80}; WEAK symbol<int> g_poolSize{0x0, 0x10B3C80};
WEAK symbol<int> g_compressor{0x2574804, 0x3962804}; WEAK symbol<int> g_compressor{0x2574804, 0x3962804};