Correct team kicking on quota balancing.

Try to fix low-skill bots do not search for bomb.
Bumped year and version.
This commit is contained in:
jeefo 2019-05-05 18:52:28 +03:00
commit c70e3bd756
4 changed files with 52 additions and 15 deletions

View file

@ -2913,7 +2913,7 @@ void Bot::frame (void) {
if (g_bombPlanted && m_team == TEAM_COUNTER) {
const Vector &bombPosition = waypoints.getBombPos ();
if (!m_hasProgressBar && taskId () != TASK_ESCAPEFROMBOMB && (pev->origin - bombPosition).length () < 700.0f && !isBombDefusing (bombPosition)) {
if (!m_hasProgressBar && taskId () != TASK_ESCAPEFROMBOMB && (pev->origin - bombPosition).lengthSq () < cr::square (1540.0f) && m_moveSpeed < pev->maxspeed && !isBombDefusing (bombPosition)) {
clearTasks ();
}
}