Make com_maxfps saved dvar for SP too (#431)
This commit is contained in:
parent
c84848071e
commit
17d2f550e8
@ -351,6 +351,9 @@ namespace patches
|
|||||||
dvars::override::register_float("cg_fovScale", 1.f, 0.1f, 2.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
dvars::override::register_float("cg_fovScale", 1.f, 0.1f, 2.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
||||||
dvars::override::register_float("cg_fovMin", 1.f, 1.0f, 90.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
dvars::override::register_float("cg_fovMin", 1.f, 1.0f, 90.f, game::DvarFlags::DVAR_FLAG_SAVED);
|
||||||
|
|
||||||
|
// Makes com_maxfps saved dvar
|
||||||
|
dvars::override::register_int("com_maxfps", 0, 0, 1000, game::DVAR_FLAG_SAVED);
|
||||||
|
|
||||||
// Makes mis_cheat saved dvar
|
// Makes mis_cheat saved dvar
|
||||||
dvars::override::register_bool("mis_cheat", 0, game::DVAR_FLAG_SAVED);
|
dvars::override::register_bool("mis_cheat", 0, game::DVAR_FLAG_SAVED);
|
||||||
|
|
||||||
@ -474,8 +477,6 @@ namespace patches
|
|||||||
dvars::override::register_bool("ui_drawCrosshair", true, game::DVAR_FLAG_WRITE);
|
dvars::override::register_bool("ui_drawCrosshair", true, game::DVAR_FLAG_WRITE);
|
||||||
utils::hook::jump(0x1E6010_b, ui_draw_crosshair);
|
utils::hook::jump(0x1E6010_b, ui_draw_crosshair);
|
||||||
|
|
||||||
dvars::override::register_int("com_maxfps", 0, 0, 1000, game::DVAR_FLAG_SAVED);
|
|
||||||
|
|
||||||
// Prevent clients from ending the game as non host by sending 'end_game' lui notification
|
// Prevent clients from ending the game as non host by sending 'end_game' lui notification
|
||||||
cmd_lui_notify_server_hook.create(0x412D50_b, cmd_lui_notify_server_stub);
|
cmd_lui_notify_server_hook.create(0x412D50_b, cmd_lui_notify_server_stub);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user