From cda2b74a40a9b013c9ed947a38d1866efb164138 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 22 Jan 2021 15:03:42 +0100 Subject: [PATCH] Entcs: fix tag above teammates disappearing if they aren't in my pvs and their health (or view angle or name etc...) changes (especially noticeable with frozen players and bots standing still in maps without waypoints) --- qcsrc/common/ent_cs.qc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index a6f39e213..3d9127cbb 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -211,11 +211,19 @@ ENTCS_PROP(SOLID, true, sv_solid, solid, ENTCS_SET_NORMAL, it.m_set(this, player); this.SendFlags |= BIT(it.m_id); }); + if (intermission_running) { // health is set to special values after the game ends, ignore any change this.SendFlags &= ~BIT(ENTCS_PROP_HEALTH_id); } + + // always send origin of players even if they stand still otherwise + // if a teammate isn't in my pvs and his health (or view angle or name + // etc...) changes then his tag disappears + if (IS_PLAYER(this.owner)) + this.SendFlags |= BIT(ENTCS_PROP_ORIGIN_id); + setorigin(this, this.origin); // relink } -- 2.39.2