uncheat protect gamepad-related dvars #120
This commit is contained in:
parent
35e2540398
commit
ccd4212ba6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user