fix: un-cheat dvar on SP

This commit is contained in:
FutureRave 2023-02-10 19:29:42 +00:00
parent 847b6090b2
commit 54df2963b9
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31

View File

@ -612,6 +612,9 @@ void player_movement::patch_sp()
jump_spreadAdd = game::native::Dvar_RegisterFloat("jump_spreadAdd", jump_spreadAdd = game::native::Dvar_RegisterFloat("jump_spreadAdd",
64.0f, 0.0f, 512.0f, game::native::DVAR_CODINFO, "The amount of spread scale to add as a side effect of jumping"); 64.0f, 0.0f, 512.0f, game::native::DVAR_CODINFO, "The amount of spread scale to add as a side effect of jumping");
// Un-cheat player_sprintUnlimited
utils::hook::set<std::uint32_t>(0x494D4F, game::native::DVAR_NONE);
utils::hook(0x648C3A, pm_weapon_use_ammo, HOOK_CALL).install()->quick(); utils::hook(0x648C3A, pm_weapon_use_ammo, HOOK_CALL).install()->quick();
utils::hook(0x64891D, pm_weapon_use_ammo, HOOK_CALL).install()->quick(); utils::hook(0x64891D, pm_weapon_use_ammo, HOOK_CALL).install()->quick();
utils::hook(0x6484E2, pm_weapon_use_ammo, HOOK_CALL).install()->quick(); utils::hook(0x6484E2, pm_weapon_use_ammo, HOOK_CALL).install()->quick();