fix: un-cheat dvar on SP
This commit is contained in:
parent
847b6090b2
commit
54df2963b9
@ -612,6 +612,9 @@ void player_movement::patch_sp()
|
||||
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");
|
||||
|
||||
// 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(0x64891D, pm_weapon_use_ammo, HOOK_CALL).install()->quick();
|
||||
utils::hook(0x6484E2, pm_weapon_use_ammo, HOOK_CALL).install()->quick();
|
||||
|
Loading…
Reference in New Issue
Block a user