automatically kick k-client (#2912)

This commit is contained in:
nobody-mb 2020-09-23 09:52:50 -05:00 committed by GitHub
parent 1b26312e3c
commit 78040b31e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1023,6 +1023,12 @@ void CGameContext::OnClientDirectInput(int ClientID, void *pInput)
{
m_TeeHistorian.RecordPlayerInput(ClientID, (CNetObj_PlayerInput *)pInput);
}
int Flags = ((CNetObj_PlayerInput *)pInput)->m_PlayerFlags;
if((Flags & 256) || (Flags & 512))
{
Server()->Kick(ClientID, "please update your client or use DDNet client");
}
}
void CGameContext::OnClientPredictedInput(int ClientID, void *pInput)