From 4c26da913161e0bc3d5a912c6b154e33c38d9546 Mon Sep 17 00:00:00 2001 From: Mikko Tiusanen Date: Tue, 22 Jul 2014 00:21:00 +0300 Subject: Added basic portable force field implementation as lasgun secondary fire. --- src/game/g_weapon.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/game/g_weapon.c') diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index aae97f9..184949f 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -754,6 +754,13 @@ void lasGunFire( gentity_t *ent ) G_Damage( traceEnt, ent, ent, forward, tr.endpos, LASGUN_DAMAGE, 0, MOD_LASGUN ); } +// Lasgun 2ndary (shield) + +void lasGunFire2( gentity_t *ent ) +{ + launch_shield( ent, muzzle, forward ); +} + /* ====================================================================== PAIN SAW @@ -1802,7 +1809,7 @@ void FireWeapon2( gentity_t *ent ) switch( ent->s.weapon ) { - case WP_MACHINEGUN: + case WP_MACHINEGUN: bulletFire( ent, RIFLE_SPREAD2, RIFLE_DMG2, MOD_MACHINEGUN ); break; @@ -1829,6 +1836,10 @@ void FireWeapon2( gentity_t *ent ) case WP_FLAMER: FlamerNormal( ent ); break; + + case WP_LAS_GUN: + lasGunFire2( ent ); + break; case WP_PULSE_RIFLE: prifleStasisFire( ent ); -- cgit