From 923a6cdecf9ac26e64770e4bacf4f4270eb53448 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 4 May 2023 17:26:22 +0200 Subject: [PATCH] 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 --- qcsrc/common/effects/qc/damageeffects.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2