mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 19:12:51 +00:00
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:
parent
29be4b280c
commit
abdfac3a80
2 changed files with 10 additions and 0 deletions
|
@ -272,6 +272,14 @@ bool CTFBuffItem::Holster( CBaseCombatWeapon *pSwitchingTo )
|
|||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CTFBuffItem::CanInspect() const
|
||||
{
|
||||
return BaseClass::CanInspect() && !m_bPlayingHorn;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
@ -71,6 +71,8 @@ public:
|
|||
void RaiseFlag( void );
|
||||
|
||||
virtual bool Holster( CBaseCombatWeapon *pSwitchingTo );
|
||||
|
||||
virtual bool CanInspect() const OVERRIDE;
|
||||
|
||||
virtual bool CanReload( void );
|
||||
|
||||
|
|
Loading…
Reference in a new issue