Browse Source

One shot per click.

noffice
Andrey Akhmichin 4 years ago
parent
commit
b30c90e2d1
  1. 3
      dlls/glock.cpp
  2. 3
      dlls/noffice/torch.cpp
  3. 3
      dlls/shotgun.cpp

3
dlls/glock.cpp

@ -127,6 +127,9 @@ void CGlock::SecondaryAttack( void ) @@ -127,6 +127,9 @@ void CGlock::SecondaryAttack( void )
void CGlock::PrimaryAttack( void )
{
if( FBitSet( m_pPlayer->m_afButtonLast, IN_ATTACK ) )
return;
GlockFire( 0.01, 0.2, TRUE );
}

3
dlls/noffice/torch.cpp

@ -101,6 +101,9 @@ void CTorch::Holster( int skiplocal /*= 0*/ ) @@ -101,6 +101,9 @@ void CTorch::Holster( int skiplocal /*= 0*/ )
void CTorch::PrimaryAttack()
{
if( FBitSet( m_pPlayer->m_afButtonLast, IN_ATTACK ) )
return;
SendWeaponAnim( TORCH_SWITCH );
EMIT_SOUND( ENT( pev ), CHAN_VOICE, "items/flashlight1.wav", VOL_NORM, ATTN_NORM );

3
dlls/shotgun.cpp

@ -117,6 +117,9 @@ BOOL CShotgun::Deploy() @@ -117,6 +117,9 @@ BOOL CShotgun::Deploy()
void CShotgun::PrimaryAttack()
{
if( FBitSet( m_pPlayer->m_afButtonLast, IN_ATTACK ) )
return;
// don't fire underwater
if( m_pPlayer->pev->waterlevel == 3 )
{

Loading…
Cancel
Save