summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index e058a769..194d022b 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -212,6 +212,23 @@ void lockBlobLauncherFire( gentity_t *ent )
/*
======================================================================
+BLASTER PISTOL
+
+======================================================================
+*/
+
+void blasterFire( gentity_t *ent )
+{
+ gentity_t *m;
+
+ m = fire_blaster( ent, muzzle, forward );
+
+// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics
+}
+
+/*
+======================================================================
+
PULSE RIFLE
======================================================================
@@ -1040,6 +1057,9 @@ void FireWeapon( gentity_t *ent )
meleeAttack( ent, BMOFO_CLAW_RANGE, BMOFO_CLAW_DMG );
break;
+ case WP_BLASTER:
+ blasterFire( ent );
+ break;
case WP_MACHINEGUN:
bulletFire( ent, RIFLE_SPREAD, RIFLE_DMG, MOD_MACHINEGUN );
break;