Fixed bots unable to search bomp defuse point, cause search radius is too small for buckets.
Fixed uninitialized variable in team counting.
This commit is contained in:
parent
c70e3bd756
commit
602d2ddd8c
3 changed files with 5 additions and 5 deletions
|
|
@ -2910,7 +2910,7 @@ void Bot::frame (void) {
|
|||
m_numFriendsLeft = numFriendsNear (pev->origin, 99999.0f);
|
||||
m_numEnemiesLeft = numEnemiesNear (pev->origin, 99999.0f);
|
||||
|
||||
if (g_bombPlanted && m_team == TEAM_COUNTER) {
|
||||
if (g_bombPlanted && m_team == TEAM_COUNTER && m_notKilled) {
|
||||
const Vector &bombPosition = waypoints.getBombPos ();
|
||||
|
||||
if (!m_hasProgressBar && taskId () != TASK_ESCAPEFROMBOMB && (pev->origin - bombPosition).lengthSq () < cr::square (1540.0f) && m_moveSpeed < pev->maxspeed && !isBombDefusing (bombPosition)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue