[Dvar]: Un-Cheat some more (#1019)

This commit is contained in:
Edo 2023-05-08 00:11:30 +01:00 committed by GitHub
parent 9632d789d8
commit 3c7fbb26e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,6 +462,18 @@ namespace Components
// un-cheat jump_height
Utils::Hook::Xor<std::uint32_t>(0x4EFA5C, Game::DVAR_CHEAT);
// un-cheat player_breath_fire_delay
Utils::Hook::Xor<std::uint32_t>(0x448646, Game::DVAR_CHEAT);
// un-cheat player_breath_gasp_scale
Utils::Hook::Xor<std::uint32_t>(0x448678, Game::DVAR_CHEAT);
// un-cheat player_breath_gasp_lerp
Utils::Hook::Xor<std::uint32_t>(0x4486E4, Game::DVAR_CHEAT);
// un-cheat player_breath_gasp_time
Utils::Hook::Xor<std::uint32_t>(0x448612, Game::DVAR_CHEAT);
// Hook dvar 'name' registration
Utils::Hook(0x40531C, Dvar_RegisterName, HOOK_CALL).install()->quick();