[bot] Implement CNetGame::Packet_RSAPublicKeyMismatch(...)

This commit is contained in:
RD42 2024-06-01 19:59:47 +08:00
parent 6e7af2874d
commit 23f4c008a9
2 changed files with 12 additions and 0 deletions

View File

@ -292,6 +292,9 @@ void CNetGame::UpdateNetwork()
switch(packetIdentifier)
{
case ID_RSA_PUBLIC_KEY_MISMATCH:
Packet_RSAPublicKeyMismatch(pkt);
break;
case ID_CONNECTION_BANNED:
Packet_ConnectionBanned(pkt);
break;
@ -380,6 +383,14 @@ void CNetGame::Packet_TrailerSync(Packet *p)
//----------------------------------------------------
void CNetGame::Packet_RSAPublicKeyMismatch(Packet* packet)
{
//logprintf("NPC: Failed to initialize encryption.");
exit(1);
}
//----------------------------------------------------
void CNetGame::Packet_ConnectionBanned(Packet* packet)
{
//OutputDebugString("BOT: You're banned from the server.");

View File

@ -25,6 +25,7 @@ private:
void Packet_AimSync(Packet *p);
void Packet_PassengerSync(Packet *p);
void Packet_ConnectionSucceeded(Packet *p);
void Packet_RSAPublicKeyMismatch(Packet* packet);
void Packet_ConnectionBanned(Packet* packet);
void Packet_DisconnectionNotification(Packet* packet);
void Packet_ModifiedPacket(Packet* packet);