diff options
author | Tim Angus <tim@ngus.net> | 2002-06-21 23:07:48 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-06-21 23:07:48 +0000 |
commit | 9c84a1fc74a03edec430290a8da5d20b06a7d027 (patch) | |
tree | 802c06846d54357b1262a7dd58be0579f6aea78a /src/cgame/cg_ents.c | |
parent | 23a3cf67841b44ddfbdc482af08abc2142f66033 (diff) |
Weapon additions???
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r-- | src/cgame/cg_ents.c | 19 |
1 files changed, 19 insertions, 0 deletions
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; |