Skip to content

Commit 4dba7f5

Browse files
committed
Equip firearm when investigating
1 parent 23427ef commit 4dba7f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/game/server/neo/bot/behavior/neo_bot_ctg_lone_wolf_ambush.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ ActionResult< CNEOBot > CNEOBotCtgLoneWolfAmbush::Update( CNEOBot *me, float int
146146
m_bInvestigatingGunfire = false;
147147
m_vecAmbushHidingSpot = CNEO_Player::VECTOR_INVALID_WAYPOINT;
148148
}
149+
else
150+
{
151+
me->EquipBestWeaponForThreat(threat);
152+
}
149153
}
150154

151155
if ( m_vecAmbushHidingSpot == CNEO_Player::VECTOR_INVALID_WAYPOINT )
@@ -307,6 +311,7 @@ ActionResult< CNEOBot > CNEOBotCtgLoneWolfAmbush::Update( CNEOBot *me, float int
307311

308312
if ( bShouldDetonate )
309313
{
314+
m_bInvestigatingGunfire = false;
310315
if ( me->GetActiveWeapon() == m_hDetpackWeapon )
311316
{
312317
me->PressFireButton();

0 commit comments

Comments
 (0)