diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index 6edfe2d8..36208f5f 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -123,9 +123,10 @@ namespace patches const auto menu_id = atoi(params.get(1)); const auto client = &svs_clients[ent->s.entityNum]; - // 22 => "end_game" - if (menu_id == 22 && client->header.remoteAddress.type != game::NA_LOOPBACK) + // 32 => "end_game" + if (menu_id == 32 && client->header.remoteAddress.type != game::NA_LOOPBACK) { + game::SV_DropClient_Internal(client, "PLATFORM_STEAM_KICK_CHEAT", true); return; } diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 58f2d64b..95a50f2b 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -197,6 +197,7 @@ namespace game WEAK symbol SV_ExecuteClientCommand{0x0, 0x0}; WEAK symbol SV_FastRestart{0x0, 0x54BE00}; WEAK symbol SV_SendServerCommand{0x0, 0x1CC040}; + WEAK symbol SV_DropClient_Internal{0x0, 0x54E7F0}; WEAK symbol Sys_ShowConsole{0x0, 0x0}; WEAK symbol Sys_Error{0x0, 0x1D8710};