From: terencehill Date: Thu, 4 May 2023 15:26:22 +0000 (+0200) Subject: Damage effects can't be applied on pure entities, ignore them for a small performance... X-Git-Tag: xonotic-v0.8.6~119 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=923a6cdecf9ac26e64770e4bacf4f4270eb53448;p=xonotic%2Fxonotic-data.pk3dir.git Damage effects can't be applied on pure entities, ignore them for a small performance gain. In particular 2 pure entities attached to each player are now always ignored: shownames_tag and ENT_CLIENT_ENTCS --- diff --git a/qcsrc/common/effects/qc/damageeffects.qc b/qcsrc/common/effects/qc/damageeffects.qc index dbc8e637e..dbc138f41 100644 --- a/qcsrc/common/effects/qc/damageeffects.qc +++ b/qcsrc/common/effects/qc/damageeffects.qc @@ -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) {