seta sbar_ring2_text_scale 10 "scale of the text on the second HUD ring"\r
seta sbar_ring2_alpha 0.75 "alpha of the second HUD ring"\r
seta sbar_vote_alreadyvoted_alpha 0.75 "alpha of the vote dialog after you have voted"\r
+seta sbar_portrait 1 "enables portraits"\r
+seta sbar_portrait_time 5 "how long a portrait lasts on the screen"\r
\r
// for menu server list (eventually make them have engine support?)\r
seta menu_slist_showfull 1 "show servers even if they are full and have no slots to join"\r
\r
void Sbar_Portrait()\r
{\r
+ // draws the portrait, using the values set in Ent_ReadPortrait\r
+\r
vector left;\r
left_x = 0;\r
left_y = vid_conheight / 2;\r
\r
+ if(!cvar("sbar_portrait"))\r
+ return;\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
\r
void Ent_ReadPortrait()\r
{\r
+ // receives portrait values, which are used in Sbar_Portrait\r
+\r
string pl_model, pl_name, img;\r
float pl_skin;\r
\r