[QuickPatch] Fix relay crash (we don't need it, so nopping it is fine)

This commit is contained in:
momo5502 2017-01-12 19:29:27 +01:00
parent 47dc69b7bb
commit e6ed285ae9
2 changed files with 1 additions and 10 deletions

View File

@ -112,14 +112,6 @@ namespace Components
return size;
}
void QuickPatch::CL_HandleRelayPacketCheck(Game::msg_t* msg, int client)
{
if (Command::ClientParams().length() >= 3)
{
Game::CL_HandleRelayPacket(msg, client);
}
}
void QuickPatch::SelectStringTableEntryInDvarStub()
{
Command::ClientParams args;
@ -429,9 +421,9 @@ namespace Components
// Exploit fixes
Utils::Hook::Set<BYTE>(0x412370, 0xC3); // SV_SteamAuthClient
Utils::Hook::Set<BYTE>(0x5A8C70, 0xC3); // CL_HandleRelayPacket
Utils::Hook(0x414D92, QuickPatch::MsgReadBitsCompressCheckSV, HOOK_CALL).install()->quick(); // SV_ExecuteClientCommands
Utils::Hook(0x4A9F56, QuickPatch::MsgReadBitsCompressCheckCL, HOOK_CALL).install()->quick(); // CL_ParseServerMessage
Utils::Hook(0x5AA009, QuickPatch::CL_HandleRelayPacketCheck, HOOK_CALL).install()->quick(); // CL_HandleRelayPacket
// Patch selectStringTableEntryInDvar
Utils::Hook::Set(0x405959, QuickPatch::SelectStringTableEntryInDvarStub);

View File

@ -30,7 +30,6 @@ namespace Components
static int MsgReadBitsCompressCheckSV(const char *from, char *to, int size);
static int MsgReadBitsCompressCheckCL(const char *from, char *to, int size);
static void CL_HandleRelayPacketCheck(Game::msg_t* msg, int client);
static void CompareMaterialStateBits();