From 21dfc5b93969a57d8ceebfd85775248456fa22d6 Mon Sep 17 00:00:00 2001 From: Roman Tetelman Date: Sat, 3 Oct 2009 12:03:02 +0000 Subject: * buildable bleed wip code --- src/game/g_weapon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index bf547dbb..dac17f7a 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -362,7 +362,9 @@ void bulletFire( gentity_t *ent, float spread, int damage, int mod ) SnapVectorTowards( tr.endpos, muzzle ); // send bullet impact - if( traceEnt->takedamage && traceEnt->client ) + if( traceEnt->takedamage && + (traceEnt->s.eType == ET_PLAYER || + traceEnt->s.eType == ET_BUILDABLE ) ) { tent = G_TempEntity( tr.endpos, EV_BULLET_HIT_FLESH ); tent->s.eventParm = traceEnt->s.number; -- cgit