diff options
author | Tim Angus <tim@ngus.net> | 2003-10-01 03:16:40 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-10-01 03:16:40 +0000 |
commit | 9200e58095622dbb0acbaf96814e41c728618427 (patch) | |
tree | 42e7fa43121590087daa4073575d9c0195741003 /src/cgame/cg_buildable.c | |
parent | 1aea8082acf2155ec10a090389e7c9147a47edbb (diff) |
* Buildables now have an explosion sound
* Added some sanity checks to the particle system
* Bug fixes
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r-- | src/cgame/cg_buildable.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 |