From d38ae691c3c755244f474ee182870142c865c967 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 25 Aug 2020 17:41:46 +0200 Subject: [PATCH] Hide shownames health / armor bg as soon as player dies, instead of waiting for the body to disappear --- qcsrc/client/shownames.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2