Fix holstering with a live rocket round

► Don't let players change weapons if a rocket of theirs is in the air.
This commit is contained in:
speedvoltage 2025-03-09 23:02:21 +01:00
parent a62efecf62
commit 4c9d2dfe7f
2 changed files with 2 additions and 2 deletions

View file

@ -1635,7 +1635,7 @@ bool CWeaponRPG::Deploy( void )
return BaseClass::Deploy();
}
bool CWeaponRPG::CanHolster( void )
bool CWeaponRPG::CanHolster( void ) const
{
//Can't have an active missile out
if ( m_hMissile != NULL )

View file

@ -190,7 +190,7 @@ public:
bool WeaponShouldBeLowered( void );
bool Lower( void );
bool CanHolster( void );
bool CanHolster( void ) const;
virtual void Drop( const Vector &vecVelocity );