sp/src/game/shared/hl2/weapon_css_base.cpp
void CBase_CSS_HL2_Pistol::ItemPostFrame( void )
{
	BaseClass::ItemPostFrame();

	if ( m_bInReload )
		return;
	
	CBasePlayer *pOwner = ToBasePlayer( GetOwner() );

	if ( pOwner == NULL )
		return;

	//Allow a refire as fast as the player can click
	if ( ( ( pOwner->m_nButtons & IN_ATTACK ) == false ) && ( m_flSoonestPrimaryAttack < gpGlobals->curtime ) )
	{
		m_flNextPrimaryAttack = gpGlobals->curtime - 0.1f;
	}
	else if ( ( pOwner->m_nButtons & IN_ATTACK ) && ( m_flNextPrimaryAttack < gpGlobals->curtime ) && ( m_iClip1 <= 0 ) )
	{
		DryFire();
	}
}
//-----------------------------------------------------------------------------
// Purpose: Allows firing as fast as button is pressed
//-----------------------------------------------------------------------------
Allows firing as fast as button is pressed
Allows firing as fast as button is pressed
void CBase_CSS_HL2_Pistol::ItemPostFrame( void )
{
	BaseClass::ItemPostFrame();
	if ( m_bInReload )
		return;
	CBasePlayer *pOwner = ToBasePlayer( GetOwner() );
	if ( pOwner == NULL )
		return;
	if ( ( ( pOwner->m_nButtons & IN_ATTACK ) == false ) && ( m_flSoonestPrimaryAttack < gpGlobals->curtime ) )
	{
		m_flNextPrimaryAttack = gpGlobals->curtime - 0.1f;
	}
	else if ( ( pOwner->m_nButtons & IN_ATTACK ) && ( m_flNextPrimaryAttack < gpGlobals->curtime ) && ( m_iClip1 <= 0 ) )
	{
		DryFire();
	}
}
void CBase_CSS_HL2_Pistol :: ItemPostFrame ( void ) { BaseClass :: ItemPostFrame ( ) ; if ( m_bInReload ) return ; CBasePlayer * pOwner = ToBasePlayer ( GetOwner ( ) ) ; if ( pOwner == NULL ) return ; if ( ( ( pOwner -> m_nButtons & IN_ATTACK ) == false ) && ( m_flSoonestPrimaryAttack < gpGlobals -> curtime ) ) { m_flNextPrimaryAttack = gpGlobals -> curtime - 0.1f ; } else if ( ( pOwner -> m_nButtons & IN_ATTACK ) && ( m_flNextPrimaryAttack < gpGlobals -> curtime ) && ( m_iClip1 <= 0 ) ) { DryFire ( ) ; } }
Purpose: Allows firing as fast as button is pressed
Purpose : Allows firing as fast as button is pressed
//Allow a refire as fast as the player can click