From: terencehill Date: Fri, 22 Jan 2021 14:03:42 +0000 (+0100) Subject: Entcs: fix tag above teammates disappearing if they aren't in my pvs and their health... X-Git-Tag: xonotic-v0.8.5~559^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cda2b74a40a9b013c9ed947a38d1866efb164138;p=xonotic%2Fxonotic-data.pk3dir.git 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) --- 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 }