Skip to content

Commit

Permalink
Do not detonate hand grenade after weapon switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Jul 5, 2017
1 parent b66f1cb commit 6e10590
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dlls/handgrenade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 6e10590

Please sign in to comment.