Skip to content

Commit a7160e1

Browse files
committed
gameplay: add tf_infinite_ammo cheat out of staging
a similar cvar is already in CS:GO this helps with local server testing
1 parent df49fe1 commit a7160e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/game/server/tf/tf_player.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ void CC_tf_debug_ballistic_targeting_mark_target( const CCommand &args )
287287
}
288288
static ConCommand tf_debug_ballistic_targeting_mark_target( "tf_debug_ballistic_targeting_mark_target", CC_tf_debug_ballistic_targeting_mark_target, "Mark a spot for testing ballistic targeting.", FCVAR_CHEAT );
289289

290-
ConVar tf_infinite_ammo( "tf_infinite_ammo", "0", FCVAR_CHEAT );
291-
292290
extern ConVar tf_bountymode_currency_starting;
293291
extern ConVar tf_bountymode_upgrades_wipeondeath;
294292
extern ConVar tf_bountymode_currency_penalty_ondeath;
295293
#endif // STAGING_ONLY
296294

295+
ConVar tf_infinite_ammo( "tf_infinite_ammo", "0", FCVAR_CHEAT );
296+
297297
ConVar tf_halloween_unlimited_spells( "tf_halloween_unlimited_spells", "0", FCVAR_CHEAT );
298298
extern ConVar tf_halloween_kart_boost_recharge;
299299
extern ConVar tf_halloween_kart_boost_duration;
@@ -13657,12 +13657,10 @@ int CTFPlayer::GiveAmmo( int iCount, int iAmmoIndex, bool bSuppressSound, EAmmoS
1365713657
//-----------------------------------------------------------------------------
1365813658
void CTFPlayer::RemoveAmmo( int iCount, int iAmmoIndex )
1365913659
{
13660-
#ifdef STAGING_ONLY
1366113660
if ( tf_infinite_ammo.GetBool() )
1366213661
{
1366313662
return;
1366413663
}
13665-
#endif // STAGING_ONLY
1366613664

1366713665
#if defined( _DEBUG ) || defined( STAGING_ONLY )
1366813666
if ( mp_developer.GetInt() > 1 && !IsBot() )

0 commit comments

Comments
 (0)