From: terencehill Date: Tue, 25 Aug 2020 15:41:46 +0000 (+0200) Subject: Hide shownames health / armor bg as soon as player dies, instead of waiting for the... X-Git-Tag: xonotic-v0.8.5~767 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=d38ae691c3c755244f474ee182870142c865c967 Hide shownames health / armor bg as soon as player dies, instead of waiting for the body to disappear --- diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index bee9a2b454..7c126f10fa 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -156,7 +156,7 @@ void Draw_ShowNames(entity this) myPos.y += (mySize.y / resize - mySize.y); // this is where the origin of the string float namewidth = mySize.x; - if (autocvar_hud_shownames_status && this.sameteam) + if (autocvar_hud_shownames_status && this.sameteam && !this.csqcmodel_isdead) { vector pos = myPos + eY * autocvar_hud_shownames_fontsize * resize; vector sz = vec2(0.5 * mySize.x, resize * autocvar_hud_shownames_statusbar_height);