[Dvar]: Remove cheat protection from useful dvar (#647)

This commit is contained in:
Edo 2022-12-15 17:10:25 +01:00 committed by GitHub
parent 3622946a10
commit b4750b14b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,6 +396,9 @@ namespace Components
// un-cheat cg_debugInfoCornerOffset and add archive flags
Utils::Hook::Xor<std::uint8_t>(0x4F8FC2, Game::DVAR_CHEAT | Game::DVAR_ARCHIVE);
// un-cheat cg_drawGun
Utils::Hook::Set<std::uint8_t>(0x4F8DC6, Game::DVAR_NONE);
// remove archive flags for cg_hudchatposition
Utils::Hook::Xor<std::uint8_t>(0x4F9992, Game::DVAR_ARCHIVE);