From: Rudolf Polzer Date: Mon, 27 Feb 2012 09:31:29 +0000 (+0100) Subject: don't damage attached entities X-Git-Tag: xonotic-v0.6.0~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3309390c613fc0acd76df9149dbab54aae45a1b1;p=xonotic%2Fxonotic-data.pk3dir.git don't damage attached entities --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index 34c15837a..49d392abe 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -146,6 +146,10 @@ void Ent_DamageInfo(float isNew) for(self = findradius(w_org, rad + MAX_DAMAGEEXTRARADIUS); self; self = self.chain) { + // attached ents suck + if(self.tag_entity) + continue; + vector nearest = NearestPointOnBox(self, w_org); if(rad) {