Fixed player holster animation repeating

This commit is contained in:
Blixibon 2021-11-20 01:02:41 -06:00
parent 37c3cd5e1c
commit b3c3ecb8a5

View File

@ -1658,7 +1658,7 @@ bool CBaseCombatWeapon::Holster( CBaseCombatWeapon *pSwitchingTo )
pOwner->SetNextAttack( gpGlobals->curtime + flSequenceDuration );
#ifdef MAPBASE
if (pOwner->IsPlayer())
if (IsWeaponVisible() && pOwner->IsPlayer())
static_cast<CBasePlayer*>(pOwner)->SetAnimation( PLAYER_HOLSTER );
#endif
}