Skip to content

Commit 0b0ef61

Browse files
committed
add wrap assassin support for bots (inspired by sigsegv-mvm/wrapassassin_altfire.cpp)
https://github.com/rafradek/sigsegv-mvm/blob/master/src/mod/ai/wrapassassin_altfire.cpp
1 parent c9c5d79 commit 0b0ef61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/game/server/tf/bot/tf_bot.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5067,7 +5067,11 @@ Action< CTFBot > *CTFBot::OpportunisticallyUseWeaponAbilities( void )
50675067
}
50685068
}
50695069
}
5070+
#ifdef BDSBASE
5071+
else if ( weapon->GetWeaponID() == TF_WEAPON_BAT_WOOD || weapon->GetWeaponID() == TF_WEAPON_BAT_GIFTWRAP)
5072+
#else
50705073
else if ( weapon->GetWeaponID() == TF_WEAPON_BAT_WOOD )
5074+
#endif
50715075
{
50725076
// sandman
50735077
if ( GetAmmoCount( TF_AMMO_GRENADES1 ) > 0 )

0 commit comments

Comments
 (0)