]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Draw the player's name as well
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 21:39:02 +0000 (23:39 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 21:39:02 +0000 (23:39 +0200)
data/qcsrc/client/hud.qc

index cef016dc2c83fb07ae6702f3d9b6895e2bfff870..7c4cf21d7e30e0a7ce8206f39297fb75f3e1557a 100644 (file)
@@ -25,7 +25,7 @@ float sbar_accuracy_hud;
 float sbar_scoreboard_alpha_name;\r
 float sbar_scoreboard_alpha_name_self;\r
 \r
-string portrait_image;\r
+string portrait_image, portrait_name;\r
 float portrait_time;\r
 \r
 float ps_primary, ps_secondary;\r
@@ -1687,7 +1687,10 @@ void Sbar_Portrait()
        left_y = vid_conheight / 2;\r
 \r
        if(portrait_time)\r
+       {\r
                drawpic(left + '10 -80 0', portrait_image, '120 160 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+               drawcolorcodedstring(left + '10 80 0', portrait_name, '12 12 0', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+       }\r
 }\r
 \r
 void Sbar_Score()\r
@@ -3575,6 +3578,7 @@ void Ent_ReadPortrait()
        pl_name = ReadString();\r
 \r
        portrait_time = time;\r
+       portrait_name = strzone(pl_name);\r
 \r
        // obtain the image name from the text file\r
        float glob, i, fh;\r