X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fshownames.qc;h=fcca84189f697a9ac0e1d18368abc5384ae17a85;hb=db280a66b7b7ac88eaf779e80d71373c8d09cc98;hp=e44e18f753b881a2969ad6887427c4d7727becc7;hpb=be255d5426e17de0dc4beb8c423e780ebd9e617b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index e44e18f75..fcca84189 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -1,15 +1,14 @@ #include "shownames.qh" #include "autocvars.qh" -#include "miscfunctions.qh" +#include #include "resources.qh" +#include #include "hud/_mod.qh" #include #include -#include #include -#include #include #include @@ -157,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); @@ -178,7 +177,7 @@ void Draw_ShowNames(entity this) } string s = entcs_GetName(this.sv_entnum - 1); if ((autocvar_hud_shownames_decolorize == 1 && teamplay) || autocvar_hud_shownames_decolorize == 2) - s = playername(s, entcs_GetTeam(this.sv_entnum - 1)); + s = playername(s, entcs_GetTeam(this.sv_entnum - 1), true); drawfontscale = '1 1 0' * resize; s = textShortenToWidth(s, namewidth, '1 1 0' * autocvar_hud_shownames_fontsize, stringwidth_colors); float width = stringwidth(s, true, '1 1 0' * autocvar_hud_shownames_fontsize);