diff options
| author | Marius "Teelevision" Neugebauer <marius@teele.eu> | 2014-04-05 05:13:20 +0200 |
|---|---|---|
| committer | Marius "Teelevision" Neugebauer <marius@teele.eu> | 2014-04-05 05:13:20 +0200 |
| commit | 92195db17d92856206ba4bcadb9426c98a47bccc (patch) | |
| tree | 61b34646c835cdb7d495f2d09ec8e383ee01f401 /src/game | |
| parent | cc9a34c4d38d553078c15d4498445faf5a9976d3 (diff) | |
| download | zcatch-92195db17d92856206ba4bcadb9426c98a47bccc.tar.gz zcatch-92195db17d92856206ba4bcadb9426c98a47bccc.zip | |
improved bot detection in one case of false positives
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/server/gamecontext.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 4dab670e..29295ef9 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -579,6 +579,11 @@ void CGameContext::OnTick() *pos == p->m_AimBotLastDetectionPos && *posVictim == p->m_AimBotLastDetectionPosVictim ) + // don't detect horizontal dragging + && !( + pos->y == p->m_AimBotLastDetectionPos.y + && posVictim->y == p->m_AimBotLastDetectionPosVictim.y + ) )//if { indexAdd = 1; @@ -614,8 +619,8 @@ void CGameContext::OnTick() SendChatTarget(j, aBuf); } - // reduce once every 2 seconds (tolerance) - if(((Server()->Tick() % (Server()->TickSpeed() * 2)) == 0) && p->m_AimBotIndex) + // reduce once every seconds (tolerance) + if(((Server()->Tick() % Server()->TickSpeed()) == 0) && p->m_AimBotIndex) --p->m_AimBotIndex; } } |