From: Martin Taibr Date: Tue, 29 Aug 2017 01:59:56 +0000 (+0200) Subject: document potential bug in entcs X-Git-Tag: xonotic-v0.8.5~2467^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=446350973ded2e1bb7ae02422a63cc46563da8a6;p=xonotic%2Fxonotic-data.pk3dir.git document potential bug in entcs --- diff --git a/qcsrc/common/ent_cs.qh b/qcsrc/common/ent_cs.qh index 14a758b26..0180fea78 100644 --- a/qcsrc/common/ent_cs.qh +++ b/qcsrc/common/ent_cs.qh @@ -9,8 +9,13 @@ REGISTER_NET_TEMP(CLIENT_ENTCS) /** True when private information such as origin is available */ .bool m_entcs_private; + /** True when origin is available */ +// FIXME: it seems sometimes this is false when observing even though observers should be able to know about all players +// easily reproducible on heart_v2 or The_Yard with bots - might be because they lack waypoints and bots stand still +// it has happened in matches with players and no bots but much more rarely .bool has_origin; + /** True when a recent server sent origin has been received */ .bool has_sv_origin; diff --git a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc index bafe8c460..0977b62ce 100644 --- a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc @@ -233,9 +233,7 @@ NET_HANDLE(damagetext, bool isNew) } make_impure(NEW(DamageText, server_entity_index, entcs.origin, false, health, armor, potential_damage, deathtype, friendlyfire)); } else if (autocvar_cl_damagetext_2d && spectatee_status != -1) { - // never show 2d damagetext when observing - // on some maps (hearth_v2, The_Yard), sometimes has_origin is false even though observers should know about all players - // it happens mostly with bots but occasionally also with players + // never show 2d damagetext when observing - might be a bug in .has_origin // screen coords only vector screen_pos = vec2(vid_conwidth * autocvar_cl_damagetext_2d_pos.x, vid_conheight * autocvar_cl_damagetext_2d_pos.y);