Skip to content

Commit ce21a06

Browse files
committed
gameplay: fix spy bots not firing their pistol
1 parent cbf8f84 commit ce21a06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/game/server/tf/bot/behavior/spy/tf_bot_spy_attack.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ ActionResult< CTFBot > CTFBotSpyAttack::Update( CTFBot *me, float interval )
251251
{
252252
// aim our pistol
253253
me->GetBodyInterface()->AimHeadTowards( playerThreat, IBody::MANDATORY, 0.1f, NULL, "Aiming my pistol" );
254+
// fire our pistol
255+
me->PressFireButton();
254256
}
255257

256258
if ( isMovingTowardVictim )

0 commit comments

Comments
 (0)