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

This commit is contained in:
RD42 2024-05-10 22:20:46 +08:00
parent 5b4c02f33b
commit 5f90bc9633
2 changed files with 14 additions and 0 deletions

View File

@ -261,6 +261,10 @@ void CNetGame::UpdateNetwork()
Packet_ConnectionBanned(pkt);
break;
case ID_DISCONNECTION_NOTIFICATION:
Packet_DisconnectionNotification(pkt);
break;
case ID_MODIFIED_PACKET:
Packet_ModifiedPacket(pkt);
break;
@ -344,6 +348,15 @@ void CNetGame::Packet_ConnectionBanned(Packet* packet)
//----------------------------------------------------
void CNetGame::Packet_DisconnectionNotification(Packet* packet)
{
//OutputDebugString("BOT: Disconnected.");
m_pRakClient->Disconnect(0);
exit(1);
}
//----------------------------------------------------
void CNetGame::Packet_ModifiedPacket(Packet* packet)
{
}

View File

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