From 48436604d0b4284e3abfdc2f4f46eebfa9150c16 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 14 May 2017 21:39:34 +0200 Subject: Let Basilisk gas go through entities. --- src/game/g_weapon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index c4909be..11bbd38 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -1035,10 +1035,10 @@ void poisonCloud( gentity_t *ent ) if( BG_InventoryContainsUpgrade( UP_BATTLESUIT, humanPlayer->client->ps.stats ) ) continue; - trap_Trace( &tr, muzzle, NULL, NULL, humanPlayer->s.origin, humanPlayer->s.number, MASK_SHOT ); + trap_Trace( &tr, muzzle, NULL, NULL, humanPlayer->s.origin, humanPlayer->s.number, MASK_SOLID ); //can't see target from here - if( tr.entityNum != entityList[ i ] ) + if( tr.fraction < 1.0f ) continue; if( !( humanPlayer->client->ps.stats[ STAT_STATE ] & SS_POISONCLOUDED ) ) -- cgit