Killed partymigrate handler
This commit is contained in:
parent
5fb51f4ab2
commit
a6a825cf53
@ -191,6 +191,15 @@ namespace Components
|
|||||||
return PartyEnable.get<bool>();
|
return PartyEnable.get<bool>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__declspec(naked) void PartyMigrate_HandlePacket()
|
||||||
|
{
|
||||||
|
__asm
|
||||||
|
{
|
||||||
|
mov eax, 0;
|
||||||
|
retn;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Party::Party()
|
Party::Party()
|
||||||
{
|
{
|
||||||
if (ZoneBuilder::IsEnabled())
|
if (ZoneBuilder::IsEnabled())
|
||||||
@ -201,6 +210,9 @@ namespace Components
|
|||||||
PartyEnable = Dvar::Register<bool>("party_enable", Dedicated::IsEnabled(), Game::DVAR_NONE, "Enable party system");
|
PartyEnable = Dvar::Register<bool>("party_enable", Dedicated::IsEnabled(), Game::DVAR_NONE, "Enable party system");
|
||||||
Dvar::Register<bool>("xblive_privatematch", true, Game::DVAR_INIT, "");
|
Dvar::Register<bool>("xblive_privatematch", true, Game::DVAR_INIT, "");
|
||||||
|
|
||||||
|
// Kill the party migrate handler - it's not necessary and has apparently been used in the past for trickery?
|
||||||
|
Utils::Hook(0x46AB70, PartyMigrate_HandlePacket, HOOK_JUMP).install()->quick();
|
||||||
|
|
||||||
// various changes to SV_DirectConnect-y stuff to allow non-party joinees
|
// various changes to SV_DirectConnect-y stuff to allow non-party joinees
|
||||||
Utils::Hook::Set<WORD>(0x460D96, 0x90E9);
|
Utils::Hook::Set<WORD>(0x460D96, 0x90E9);
|
||||||
Utils::Hook::Set<BYTE>(0x460F0A, 0xEB);
|
Utils::Hook::Set<BYTE>(0x460F0A, 0xEB);
|
||||||
|
Loading…
Reference in New Issue
Block a user