We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd46da1 commit 32a076dCopy full SHA for 32a076d
src/game/server/tf/bot/tf_bot.cpp
@@ -5067,12 +5067,7 @@ Action< CTFBot > *CTFBot::OpportunisticallyUseWeaponAbilities( void )
5067
if ( lunchbox->HasAmmo() )
5068
{
5069
// scout lunchboxes are also gated by their energy drink meter
5070
-#ifdef BDSBASE
5071
- CTFLunchBox_Drink* lunchboxDrink = (CTFLunchBox_Drink*)lunchbox;
5072
- if ( ( !IsPlayerClass( TF_CLASS_SCOUT ) && GetHealth() < GetMaxHealth() ) || ( lunchboxDrink && m_Shared.GetScoutEnergyDrinkMeter() >= 100 ) )
5073
-#else
5074
if ( !IsPlayerClass( TF_CLASS_SCOUT ) || m_Shared.GetScoutEnergyDrinkMeter() >= 100 )
5075
-#endif
5076
5077
return new CTFBotUseItem( lunchbox );
5078
}
0 commit comments