From 65ecd185ab744857f738980cc86bbf5cbd26b4c4 Mon Sep 17 00:00:00 2001 From: Mikko Tiusanen Date: Mon, 26 May 2014 04:07:57 +0300 Subject: Modified hummel damage values. Hummel prickles no longer spread poison. --- src/game/g_weapon.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/game/g_weapon.c') 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 ); } -- cgit