diff --git a/src/game/server/neo/bot/behavior/neo_bot_ctg_carrier.cpp b/src/game/server/neo/bot/behavior/neo_bot_ctg_carrier.cpp index efc0e4582..9add7c666 100644 --- a/src/game/server/neo/bot/behavior/neo_bot_ctg_carrier.cpp +++ b/src/game/server/neo/bot/behavior/neo_bot_ctg_carrier.cpp @@ -440,7 +440,7 @@ Vector CNEOBotCtgCarrier::GetNearestCapPoint( const CNEOBot *me ) const } int iCapTeam = pCapPoint->owningTeamAlternate(); - if ( iCapTeam == iMyTeam ) + if ( iCapTeam == iMyTeam || iCapTeam == TEAM_ANY ) { float distanceToCap = me->GetAbsOrigin().DistToSqr( pCapPoint->GetAbsOrigin() ); if ( distanceToCap < flNearestCapDistSq ) diff --git a/src/game/server/neo/bot/behavior/neo_bot_ctg_escort.cpp b/src/game/server/neo/bot/behavior/neo_bot_ctg_escort.cpp index fb559604e..923a0e5c9 100644 --- a/src/game/server/neo/bot/behavior/neo_bot_ctg_escort.cpp +++ b/src/game/server/neo/bot/behavior/neo_bot_ctg_escort.cpp @@ -333,8 +333,12 @@ void CNEOBotCtgEscort::UpdateGoalPosition( CNEOBot *me, CNEO_Player *pGhostCarri for( int i=0; im_pGhostCaps.Count(); ++i ) { CNEOGhostCapturePoint *pCapPoint = dynamic_cast( UTIL_EntityByIndex( NEORules()->m_pGhostCaps[i] ) ); - if ( !pCapPoint || !pCapPoint->GetActive() ) continue; - if ( pCapPoint->owningTeamAlternate() == iMyTeam ) + if ( !pCapPoint || !pCapPoint->GetActive() ) + { + continue; + } + const int iCapTeam = pCapPoint->owningTeamAlternate(); + if ( iCapTeam == iMyTeam || iCapTeam == TEAM_ANY ) { float d = pGhostCarrier->GetAbsOrigin().DistToSqr( pCapPoint->GetAbsOrigin() ); if ( d < flNearestCapDistSq )