]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't damage attached entities
authorRudolf Polzer <divverent@alientrap.org>
Mon, 27 Feb 2012 09:31:29 +0000 (10:31 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 27 Feb 2012 09:31:29 +0000 (10:31 +0100)
qcsrc/client/damage.qc

index 34c15837acc26fe3e9cade3ce1430bd218b9da87..49d392abea2862397e6c49cbdb91ba62dab75c2e 100644 (file)
@@ -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)
                {