diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-11-22 20:40:57 +0200 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-11-22 20:40:57 +0200 |
commit | d2a3f26bc4c0699f3a4bb2a08a3f48ca1ba5d9c6 (patch) | |
tree | aedcd68b4c9a6c1525b3de30a3dbd5b2b2c34639 /src/game/g_weapon.c | |
parent | 73d005979462a1b10169010cfc69f3d09e9823c7 (diff) | |
parent | 69382df33438a83a58645b9912788a47cd24552d (diff) |
Merge branch 'master' of github.com:mtiusane/new-edge
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r-- | src/game/g_weapon.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index bbc4e08..5453913 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -831,6 +831,19 @@ void LCChargeFire( gentity_t *ent, qboolean secondary ) /* ====================================================================== + +PULSE RIFLE + +====================================================================== +*/ + +void rocketLauncherFire( gentity_t *ent ) +{ + fire_rocket( ent, muzzle, forward ); +} + +/* +====================================================================== TESLA GENERATOR ====================================================================== */ @@ -937,8 +950,7 @@ void cancelBuildFire( gentity_t *ent ) ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE; return; } - if( ent->client->ps.weapon == WP_ABUILD || - ent->client->ps.weapon == WP_ABUILD2 ) + if( ent->client->ps.weapon == WP_ABUILD ) meleeAttack( ent, ABUILDER_CLAW_RANGE, ABUILDER_CLAW_WIDTH, ABUILDER_CLAW_WIDTH, ABUILDER_CLAW_DMG, MOD_ABUILDER_CLAW ); } @@ -1776,7 +1788,7 @@ gclient_t *client; bounceBallFire( ent ); break; - case WP_ABUILD2: + case WP_ABUILD: slowBlobFire( ent ); break; @@ -1877,7 +1889,6 @@ void FireWeapon2( gentity_t *ent ) break; case WP_ABUILD: - case WP_ABUILD2: case WP_HBUILD: cancelBuildFire( ent ); break; @@ -1974,6 +1985,9 @@ void FireWeapon( gentity_t *ent ) case WP_PAIN_SAW: painSawFire( ent ); break; + case WP_ROCKET_LAUNCHER: + rocketLauncherFire( ent ); + break; case WP_GRENADE: throwGrenade( ent ); break; @@ -1999,7 +2013,6 @@ void FireWeapon( gentity_t *ent ) FlameTurretFire( ent ); break; case WP_ABUILD: - case WP_ABUILD2: buildFire( ent, MN_A_BUILD ); break; case WP_HBUILD: |