]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Damage effects can't be applied on pure entities, ignore them for a small performance...
authorterencehill <piuntn@gmail.com>
Thu, 4 May 2023 15:26:22 +0000 (17:26 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 4 May 2023 15:36:50 +0000 (17:36 +0200)
qcsrc/common/effects/qc/damageeffects.qc

index dbc8e637ef88207670ce5b8ecf14d3be8244d284..dbc138f41f3e7e0e1eb16de7c4ab1e4a52c7d5eb 100644 (file)
@@ -219,7 +219,7 @@ NET_HANDLE(ENT_CLIENT_DAMAGEINFO, bool isNew)
 
        forcemul = (rad_negative ? -1 : 1);
 
-       FOREACH_ENTITY_RADIUS(w_org, rad + MAX_DAMAGEEXTRARADIUS, !it.tag_entity, {
+       FOREACH_ENTITY_RADIUS(w_org, rad + MAX_DAMAGEEXTRARADIUS, !it.tag_entity && !is_pure(it), {
                vector nearest = NearestPointOnBox(it, w_org);
                if (rad)
                {