Ejemplo n.º 1
0
/*
=====================
CBasePlayerWeapon :: PlayEmptySound

=====================
*/
BOOL CBasePlayerWeapon :: PlayEmptySound( void )
{
	if (m_iPlayEmptySound)
	{
		HUD_PlaySound( "weapons/357_cock1.wav", 0.8 );
		m_iPlayEmptySound = 0;
		return 0;
	}
	return 0;
}
Ejemplo n.º 2
0
//TODO: these 2 functions are virtually identical to the server side copy - Solokiller
bool CBasePlayerWeapon::PlayEmptySound()
{
	if ( m_bPlayEmptySound )
	{
		HUD_PlaySound( "weapons/357_cock1.wav", 0.8 );
		m_bPlayEmptySound = false;
		return false;
	}
	return false;
}
Ejemplo n.º 3
0
/*
=====================
CBasePlayerWeapon :: PlayEmptySound

=====================
*/
BOOL CBasePlayerWeapon :: PlayEmptySound( void )
{
	if (m_iPlayEmptySound)
	{
		HUD_PlaySound( "weapons/357_cock1.wav", CVAR_GET_FLOAT("sm_snd_sfx") );	// Fograin92: Get sound from CVAR
		m_iPlayEmptySound = 0;
		return 0;
	}
	return 0;
}
bool CBasePlayerWeapon::PlayEmptySound()
{
	if( m_bPlayEmptySound )
	{
#ifdef CLIENT_DLL
		HUD_PlaySound( "weapons/357_cock1.wav", 0.8 );
#else
		EMIT_SOUND( m_pPlayer, CHAN_WEAPON, "weapons/357_cock1.wav", 0.8, ATTN_NORM );
#endif
		m_bPlayEmptySound = false;
		return false;
	}
	return false;
}
Ejemplo n.º 5
0
/*
=====================
CBasePlayerWeapon :: PlayEmptySound

=====================
*/
BOOL CBasePlayerWeapon :: PlayEmptySound( void )
{
#if 0
	if (m_iPlayEmptySound)
	{
		switch (m_iId)
		{
		case WEAPON_USP:
		case WEAPON_GLOCK18:
		case WEAPON_P228:
		case WEAPON_DEAGLE:
		case WEAPON_ELITE:
		case WEAPON_FIVESEVEN:
			HUD_PlaySound("weapons/dryfire_pistol.wav", 0.8);
			break;
		default:
			HUD_PlaySound("weapons/dryfire_rifle.wav",  0.8);
			break;
		}
	}
#endif
	return 0;
}