diff options
author | Michael Levin <risujin@fastmail.fm> | 2009-10-03 11:33:36 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:07 +0000 |
commit | 3750577e8d18451939e5ae58b90bd75a397737ba (patch) | |
tree | e10f36ec71b57a0f5da3d702b7d6ff9bedb25372 /src/cgame/cg_weapons.c | |
parent | 7f9e87b189414ea8eef4a2bcec4c380142b16bab (diff) |
* Mass driver reverted to upstream (function and effect)
* Squad marking removed
* Marauder walljump reverted to upstream
* Minijump removed
Enjoy!
Diffstat (limited to 'src/cgame/cg_weapons.c')
-rw-r--r-- | src/cgame/cg_weapons.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c index d0968dd9..a4f8b667 100644 --- a/src/cgame/cg_weapons.c +++ b/src/cgame/cg_weapons.c @@ -1611,43 +1611,6 @@ void CG_MissileHitPlayer( weapon_t weaponNum, weaponMode_t weaponMode, CG_MissileHitWall( weaponNum, weaponMode, 0, origin, dir, IMPACTSOUND_FLESH, charge ); } -/* -============== -CG_MassDriverFire - -Draws the mass driver trail -============== -*/ - -#define MDRIVER_MUZZLE_OFFSET 48.0f - -void CG_MassDriverFire( entityState_t *es ) -{ - vec3_t front, frontToBack; - trailSystem_t *ts; - float length; - - ts = CG_SpawnNewTrailSystem( cgs.media.massDriverTS ); - if( !CG_IsTrailSystemValid( &ts ) ) - return; - - // trail front attaches to the player, needs to be pushed forward a bit - // so that it doesn't look like it shot out of the wrong location - VectorCopy( es->origin2, front ); - VectorSubtract( es->pos.trBase, front, frontToBack ); - length = VectorLength( frontToBack ); - if( length - MDRIVER_MUZZLE_OFFSET < 0.0f ) - return; - VectorScale( frontToBack, 1.0f / length, frontToBack ); - VectorMA( front, MDRIVER_MUZZLE_OFFSET, frontToBack, front ); - CG_SetAttachmentPoint( &ts->frontAttachment, front ); - CG_AttachToPoint( &ts->frontAttachment ); - - // trail back attaches to the impact point - CG_SetAttachmentPoint( &ts->backAttachment, es->pos.trBase ); - CG_AttachToPoint( &ts->backAttachment ); -} - /* ============================================================================ |