From: MirceaKitsune Date: Sun, 29 Jan 2012 21:39:02 +0000 (+0200) Subject: Draw the player's name as well X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9a77f76f97519200b891004a397e28ac908611d6;p=voretournament%2Fvoretournament.git Draw the player's name as well --- 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;