[Script]: Add comments (#882)

This commit is contained in:
Edo 2023-03-28 23:57:53 +01:00 committed by GitHub
parent 289414d770
commit dfe92ef2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -432,6 +432,9 @@ namespace Components
// Uncheat ui_debugMode
Utils::Hook::Xor<std::uint8_t>(0x6312DE, Game::DVAR_CHEAT);
// Uncheat jump_slowdownEnable
Utils::Hook::Xor<std::uint32_t>(0x4EFABE, Game::DVAR_CHEAT);
// Hook dvar 'name' registration
Utils::Hook(0x40531C, Dvar_RegisterName, HOOK_CALL).install()->quick();

View File

@ -286,7 +286,7 @@ namespace Components::GSC
Utils::Hook(0x5F41A3, SetExpFogStub, HOOK_CALL).install()->quick();
// Restore IW3's compiler behaviour when dealing with 'overriding builtin function'
Utils::Hook::Nop(0x613EDA, 2);
Utils::Hook::Nop(0x613EF0, 2);
Utils::Hook::Nop(0x613EDA, 2); // Scr_GetFunction
Utils::Hook::Nop(0x613EF0, 2); // Scr_GetMethod
}
}