summaryrefslogtreecommitdiff
path: root/src/cgame/cg_buildable.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2004-09-29 22:34:54 +0000
committerTim Angus <tim@ngus.net>2004-09-29 22:34:54 +0000
commit69c0ba88b5d5c745775750dca93d9844c0575733 (patch)
treecbbdd6a69c3f18a680f29720dc9bd5182eacad23 /src/cgame/cg_buildable.c
parenta85e66b8d70f3249a89141a0f921819341bfa547 (diff)
* A smattering of fondulations
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r--src/cgame/cg_buildable.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c
index 708e8277..9420af94 100644
--- a/src/cgame/cg_buildable.c
+++ b/src/cgame/cg_buildable.c
@@ -81,18 +81,29 @@ void CG_AlienBuildableExplosion( vec3_t origin, vec3_t dir )
vec3_t velocity;
int count;
particleSystem_t *ps;
+ qhandle_t gibModel;
+ int i;
trap_S_StartSound( origin, ENTITYNUM_WORLD, CHAN_AUTO, cgs.media.alienBuildableExplosion );
// allow gibs to be turned off for speed
if( cg_gibs.integer )
{
- for( count = 0; count <= 9; count++ )
+ for( count = 0; count <= 8; count++ )
{
velocity[ 0 ] = crandom( ) * GGIB_VELOCITY;
velocity[ 1 ] = crandom( ) * GGIB_VELOCITY;
velocity[ 2 ] = GGIB_JUMP + crandom( ) * GGIB_VELOCITY;
- CG_AlienBuildableExplosionFragment( origin, velocity, cgs.media.gibAbdomen );
+
+ switch( i )
+ {
+ case 1: case 5: gibModel = cgs.media.alienGib1; break;
+ case 2: case 6: gibModel = cgs.media.alienGib2; break;
+ case 3: case 7: gibModel = cgs.media.alienGib3; break;
+ case 4: case 8: gibModel = cgs.media.alienGib4; break;
+ }
+
+ CG_AlienBuildableExplosionFragment( origin, velocity, gibModel );
}
}