From 9c84a1fc74a03edec430290a8da5d20b06a7d027 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 21 Jun 2002 23:07:48 +0000 Subject: Weapon additions??? --- src/cgame/cg_ents.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/cgame/cg_ents.c') diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index d6e8595b..615727cc 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -288,6 +288,25 @@ static void CG_Missile( centity_t *cent ) return; break; + case WP_LUCIFER_CANON: + ent.skinNum = cg.clientFrame & 1; + ent.hModel = weapon->missileModel; + ent.renderfx = weapon->missileRenderfx | RF_NOSHADOW; + + // convert direction of travel into axis + if ( VectorNormalize2( s1->pos.trDelta, ent.axis[ 0 ] ) == 0 ) + ent.axis[ 0 ][ 2 ] = 1; + + RotateAroundDirection( ent.axis, cg.time / 4 ); + + fraction = (float)s1->generic1 / (float)LC_TOTAL_CHARGE; + VectorScale( ent.axis[ 0 ], fraction, ent.axis[ 0 ] ); + VectorScale( ent.axis[ 1 ], fraction, ent.axis[ 1 ] ); + VectorScale( ent.axis[ 2 ], fraction, ent.axis[ 2 ] ); + ent.nonNormalizedAxes = qtrue; + + break; + case WP_FLAMER: //TA: don't actually display the missile (use the particle engine) return; -- cgit