diff options
| author | Adam Jaworski <savander.pl@gmail.com> | 2015-08-15 00:38:41 +0200 |
|---|---|---|
| committer | Adam Jaworski <savander.pl@gmail.com> | 2015-08-15 00:38:41 +0200 |
| commit | a54bef1bd8741fb0de83495f4f03b13c3f2e8ea9 (patch) | |
| tree | c5ab2b33f969757cbc6532bb6c268eecd9b8ed7c | |
| parent | 5c653fad210d3521245b1b837cd1f331aa1a7c60 (diff) | |
| download | zcatch-a54bef1bd8741fb0de83495f4f03b13c3f2e8ea9.tar.gz zcatch-a54bef1bd8741fb0de83495f4f03b13c3f2e8ea9.zip | |
Bot detection informs admin every 30second second about cheater
| -rw-r--r-- | src/game/server/gamecontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index e28b944d..14b5cc0c 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -550,7 +550,7 @@ void CGameContext::OnTick() { // abort if player is not ingame or already detected as a bot - if(!(p = m_apPlayers[i]) || p->m_IsAimBot || !(ci = GetPlayerChar(i))) + if(!(p = m_apPlayers[i]) || (p->m_IsAimBot && p->m_IsAimBot+Server()->TickSpeed()*30 > Server()->Tick()) || !(ci = GetPlayerChar(i))) continue; // check against every other player |