uncheat protect gamepad-related dvars #120

This commit is contained in:
mjkzy 2022-06-27 18:45:05 -05:00
parent 90c9227034
commit 5f84fdef58

View File

@ -318,6 +318,11 @@ namespace patches
utils::hook::jump(SELECT_VALUE(0x511050_b, 0x620040_b), _aligned_realloc); utils::hook::jump(SELECT_VALUE(0x511050_b, 0x620040_b), _aligned_realloc);
} }
// Uncheat protect gamepad-related dvars
dvars::override::register_float("gpad_button_deadzone", 0.13f, 0, 1, game::DVAR_FLAG_SAVED);
dvars::override::register_float("gpad_stick_deadzone_min", 0.2f, 0, 1, game::DVAR_FLAG_SAVED);
dvars::override::register_float("gpad_stick_deadzone_max", 0.01f, 0, 1, game::DVAR_FLAG_SAVED);
if (!game::environment::is_sp()) if (!game::environment::is_sp())
{ {
patch_mp(); patch_mp();