diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index 36208f5f..6650db6b 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -318,6 +318,11 @@ namespace patches 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()) { patch_mp();