Do not detonate hand grenade after weapon switch.

This commit is contained in:
Night Owl 2017-07-06 00:41:13 +05:00
parent b66f1cb394
commit 6e1059026f

View File

@ -103,6 +103,12 @@ void CHandGrenade::Holster( int skiplocal /* = 0 */ )
pev->nextthink = gpGlobals->time + 0.1;
}
if( m_flStartThrow )
{
m_flStartThrow = 0;
m_flReleaseThrow = 0;
}
EMIT_SOUND( ENT( m_pPlayer->pev ), CHAN_WEAPON, "common/null.wav", 1.0, ATTN_NORM );
}