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.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 99cf5c5..b86f41a 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -1679,7 +1679,21 @@ LEVEL5
void Prickles( gentity_t *ent )
{
- Prickles_Fire( ent, muzzle, forward );
+ trace_t tr;
+ vec3_t end;
+ float r;
+ float u;
+ gentity_t *tent;
+ gentity_t *traceEnt;
+
+ r = random( ) * M_PI * 2.0f;
+ u = sin( r ) * crandom( ) * LEVEL5_PRICKLES_SPREAD * 16;
+ r = cos( r ) * crandom( ) * LEVEL5_PRICKLES_SPREAD * 16;
+ VectorMA( muzzle, 8192 * 16, forward, end );
+ VectorMA( end, r, right, end );
+ VectorMA( end, u, up, end );
+
+ Prickles_Fire( ent, muzzle, end );
}