From 9200e58095622dbb0acbaf96814e41c728618427 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 1 Oct 2003 03:16:40 +0000 Subject: * Buildables now have an explosion sound * Added some sanity checks to the particle system * Bug fixes --- src/cgame/cg_buildable.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/cgame/cg_buildable.c') diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 119a84a4..51176488 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -31,8 +31,8 @@ char *cg_buildableSoundNames[ MAX_BUILDABLE_ANIMATIONS ] = "destroyed.wav" }; -sfxHandle_t defaultAlienSounds[ MAX_BUILDABLE_ANIMATIONS ]; -sfxHandle_t defaultHumanSounds[ MAX_BUILDABLE_ANIMATIONS ]; +static sfxHandle_t defaultAlienSounds[ MAX_BUILDABLE_ANIMATIONS ]; +static sfxHandle_t defaultHumanSounds[ MAX_BUILDABLE_ANIMATIONS ]; /* @@ -82,6 +82,8 @@ void CG_AlienBuildableExplosion( vec3_t origin, vec3_t dir ) int count; particleSystem_t *ps; + trap_S_StartSound( origin, ENTITYNUM_WORLD, CHAN_AUTO, cgs.media.alienBuildableExplosion ); + // allow gibs to be turned off for speed if( cg_gibs.integer ) { @@ -157,7 +159,7 @@ void CG_HumanBuildableExplosion( vec3_t origin, vec3_t dir ) lightColor[ 1 ] = 0.75; lightColor[ 2 ] = 0.0; - trap_S_StartSound( origin, ENTITYNUM_WORLD, CHAN_AUTO, cgs.media.humanBuildableExpl ); + trap_S_StartSound( origin, ENTITYNUM_WORLD, CHAN_AUTO, cgs.media.humanBuildableExplosion ); // // create the explosion -- only the light is important really -- cgit