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
4 changes: 2 additions & 2 deletions src/game/server/tf/bot/behavior/tf_bot_scenario_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Action< CTFBot > *CTFBotScenarioMonitor::DesiredScenarioAndClassAction( CTFBot *
}
#endif // TF_RAID_MODE

if ( TFGameRules()->IsMannVsMachineMode() )
if ( TFGameRules()->IsMannVsMachineMode() && me->GetTeamNumber() == TF_TEAM_PVE_INVADERS ) // Only use this specialized AI for BLU bots
{
if ( me->IsPlayerClass( TF_CLASS_SPY ) )
{
Expand Down Expand Up @@ -218,7 +218,7 @@ Action< CTFBot > *CTFBotScenarioMonitor::DesiredScenarioAndClassAction( CTFBot *
}

// capture the flag
return new CTFBotFetchFlag;
// The normal TFBot AI already captures the flag. See below - Siobhan-Saoirse
}

if ( me->IsPlayerClass( TF_CLASS_SPY ) )
Expand Down
2 changes: 1 addition & 1 deletion src/game/shared/tf/tf_weaponbase_melee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ bool CTFWeaponBaseMelee::OnSwingHit( trace_t &trace )
// handle hitting a robot
if ( TFGameRules() && TFGameRules()->IsMannVsMachineMode() )
{
if ( pTargetPlayer && pTargetPlayer->GetTeamNumber() == TF_TEAM_PVE_INVADERS && !pTargetPlayer->IsPlayer() )
if ( pTargetPlayer && pTargetPlayer->GetTeamNumber() == TF_TEAM_PVE_INVADERS && pTargetPlayer->IsPlayer() )
{
bPlayMvMHitOnly = true;

Expand Down