Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/game/server/neo/bot/behavior/neo_bot_ctg_carrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
8 changes: 6 additions & 2 deletions src/game/server/neo/bot/behavior/neo_bot_ctg_escort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,12 @@ void CNEOBotCtgEscort::UpdateGoalPosition( CNEOBot *me, CNEO_Player *pGhostCarri
for( int i=0; i<NEORules()->m_pGhostCaps.Count(); ++i )
{
CNEOGhostCapturePoint *pCapPoint = dynamic_cast<CNEOGhostCapturePoint*>( 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 )
Expand Down