2552: Flag afk when player timed-out r=def- a=ardadem

Timed out players kills entire team especially on t0 maps. So i just thought we can flag them as afk.

Co-authored-by: Arda Demir <ddmirarda@gmail.com>
This commit is contained in:
bors[bot] 2020-08-10 20:41:31 +00:00 committed by GitHub
commit 62a2271253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,8 @@ void CPlayer::Tick()
if(Server()->GetNetErrorString(m_ClientID)[0])
{
m_Afk = true;
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "'%s' would have timed out, but can use timeout protection now", Server()->ClientName(m_ClientID));
GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf);