float sbar_scoreboard_alpha_name;\r
float sbar_scoreboard_alpha_name_self;\r
\r
+string portrait_image;\r
+float portrait_time;\r
+\r
float ps_primary, ps_secondary;\r
float ts_primary, ts_secondary;\r
\r
}\r
}\r
\r
+void Sbar_Portrait()\r
+{\r
+ vector left;\r
+ left_x = vid_conwidth / 2;\r
+ left_y = vid_conheight / 2;\r
+\r
+dprint(strcat(ftos(portrait_time), " --------\n"));\r
+dprint(strcat(portrait_image, " --------\n"));\r
+\r
+ if(portrait_time)\r
+ drawpic(left + '0 0 0', portrait_image, '192 96 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+}\r
+\r
void Sbar_Score()\r
{\r
float score, distribution, leader;\r
Sbar_PrintStomachboardItemPred(bottomleft - '-76 150 0', pred);\r
}\r
\r
- // draw status, scores, timer, and ring\r
+ // draw status, scores, timer, ring and portrait\r
Sbar_Status();\r
Sbar_Score();\r
Sbar_Timer();\r
Sbar_Ring();\r
+ Sbar_Portrait();\r
\r
// draw strength/invincibility icon and timer\r
CSQC_Strength_Timer();\r
{\r
string pl_model, pl_name, img;\r
float pl_skin;\r
+\r
pl_model = ReadString();\r
pl_skin = ReadByte();\r
pl_name = ReadString();\r
\r
+ portrait_time = time;\r
+\r
// obtain the image name from the text file\r
float glob, i, fh;\r
string fn;\r
img = fgets(fh);\r
if(pl_skin == stof(fgets(fh)))\r
if(pl_model == fgets(fh))\r
- dprint(strcat(img, " ----------------\n"));\r
+ portrait_image = strzone(img);\r
\r
fclose(fh);\r
}\r