]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hide shownames health / armor bg as soon as player dies, instead of waiting for the...
authorterencehill <piuntn@gmail.com>
Tue, 25 Aug 2020 15:41:46 +0000 (17:41 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 25 Aug 2020 15:41:46 +0000 (17:41 +0200)
qcsrc/client/shownames.qc

index bee9a2b454880597402cfcc09145f62e53c7c501..7c126f10fa95778931b8290ecea12a0607adf365 100644 (file)
@@ -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);