diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-05-26 04:07:57 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-05-26 04:07:57 +0300 |
commit | 65ecd185ab744857f738980cc86bbf5cbd26b4c4 (patch) | |
tree | 416c48966142a193f6baf8310dbef72a568894d9 /src/game/g_weapon.c | |
parent | 67a2767ff0f97fe39d603492d46e1c77b4621b78 (diff) |
Modified hummel damage values.
Hummel prickles no longer spread poison.
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r-- | src/game/g_weapon.c | 16 |
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 ); } |