diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-07-22 00:21:00 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-07-22 00:21:00 +0300 |
commit | 4c26da913161e0bc3d5a912c6b154e33c38d9546 (patch) | |
tree | 2ec1adbca3e49c502d006f62ace7ade643ecced5 /src/game/g_weapon.c | |
parent | 8ec700b583a9f061072270d1c18964942f4e17fc (diff) |
Added basic portable force field implementation as lasgun secondary fire.
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r-- | src/game/g_weapon.c | 13 |
1 files changed, 12 insertions, 1 deletions
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 ); |