Properly kick player from the server using net cmd

This commit is contained in:
Diavolo 2021-09-12 15:50:58 +02:00
parent 414d56adc3
commit 07f15acab0
2 changed files with 6 additions and 4 deletions

View File

@ -347,7 +347,7 @@ namespace Components
if (client->reliableAcknowledge < 0 || client->reliableAcknowledge > 255)
{
client->reliableAcknowledge = 0;
Game::NET_OutOfBandPrint(Game::NS_SERVER, client->netchan.remoteAddress, "disconnect");
Network::SendCommand(Game::NS_SERVER, client->netchan.remoteAddress, "error", "EXE_LOSTRELIABLECOMMANDS");
return;
}

View File

@ -4671,12 +4671,14 @@ namespace Game
int snapNum; // 135872
int __pad6; // 135876
short ping; // 135880
char __pad7[133158]; // 135882
char __pad7[14]; // 135882
int pureAuthentic; // 135896
char __pad8[133140]; // 135900
int isBot; // 269040
int serverID; // 269044
char __pad8[9224]; // 269048
char __pad9[9224]; // 269048
unsigned __int64 steamID; // 278272
char __pad9[403592]; // 278280
char __pad10[403592]; // 278280
} client_t;
#pragma pack(pop)