Don't inspect when playing horn

inspecting while playing can actually prevent the player from deploying the banner, so this is necessary
This commit is contained in:
Ashetf2 2025-03-19 00:23:10 -05:00
parent 29be4b280c
commit abdfac3a80
2 changed files with 10 additions and 0 deletions

View file

@ -272,6 +272,14 @@ bool CTFBuffItem::Holster( CBaseCombatWeapon *pSwitchingTo )
}
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
bool CTFBuffItem::CanInspect() const
{
return BaseClass::CanInspect() && !m_bPlayingHorn;
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------

View file

@ -71,6 +71,8 @@ public:
void RaiseFlag( void );
virtual bool Holster( CBaseCombatWeapon *pSwitchingTo );
virtual bool CanInspect() const OVERRIDE;
virtual bool CanReload( void );