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:
parent
8456bb57cb
commit
c70e3bd756
4 changed files with 52 additions and 15 deletions
|
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue