summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-11-19 19:57:31 +0100
committerenneract <trem.redman@gmail.com>2014-11-19 19:57:31 +0100
commit9e0e1eeeb964f1eaf94622399695e4b4a2d0f1db (patch)
treea13681a4560d2a9884ca18ec75efc3291cfda50c /src/game/g_weapon.c
parent2a93a38bfa8feab7e7f9be7332f75f2d2b0036e7 (diff)
Implement the Rocket Launcher.
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 4e08523..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
======================================================================
*/
@@ -1972,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;