//----------------------------------------------------------------------------- // Purpose: // NOTE: Should this be put into fire gun //----------------------------------------------------------------------------- void CTFWeaponBaseGun::DoFireEffects() { CTFPlayer *pPlayer = ToTFPlayer( GetPlayerOwner() ); if ( !pPlayer ) return; // Muzzle flash on weapon. bool bMuzzleFlash = true; // We no longer need this /* if ( pPlayer->IsPlayerClass( TF_CLASS_HEAVYWEAPONS ) ) { //CTFWeaponBase *pWeapon = pPlayer->GetActiveTFWeapon(); //if ( pWeapon && pWeapon->GetWeaponID() == TF_WEAPON_MINIGUN ) if (pPlayer->IsActiveTFWeapon(TF_WEAPON_MINIGUN)) { bMuzzleFlash = false; } }*/ if ( bMuzzleFlash ) { pPlayer->DoMuzzleFlash(); } }