From 9a77f76f97519200b891004a397e28ac908611d6 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 29 Jan 2012 23:39:02 +0200 Subject: [PATCH] Draw the player's name as well --- data/qcsrc/client/hud.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index cef016dc..7c4cf21d 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -25,7 +25,7 @@ float sbar_accuracy_hud; float sbar_scoreboard_alpha_name; float sbar_scoreboard_alpha_name_self; -string portrait_image; +string portrait_image, portrait_name; float portrait_time; float ps_primary, ps_secondary; @@ -1687,7 +1687,10 @@ void Sbar_Portrait() left_y = vid_conheight / 2; if(portrait_time) + { drawpic(left + '10 -80 0', portrait_image, '120 160 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); + drawcolorcodedstring(left + '10 80 0', portrait_name, '12 12 0', sbar_alpha_fg, DRAWFLAG_NORMAL); + } } void Sbar_Score() @@ -3575,6 +3578,7 @@ void Ent_ReadPortrait() pl_name = ReadString(); portrait_time = time; + portrait_name = strzone(pl_name); // obtain the image name from the text file float glob, i, fh; -- 2.39.2