]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Cvars and code comments
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 21:47:25 +0000 (23:47 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 29 Jan 2012 21:47:25 +0000 (23:47 +0200)
data/defaultVT.cfg
data/qcsrc/client/hud.qc

index a683bf8f8ef5b5d4aa44638768fbd50a073ffe1b..22d1a6355389c6d0947a3e88af393acfbc4e07c9 100644 (file)
@@ -1232,6 +1232,8 @@ seta sbar_ring2_scale 80 "scale of the second HUD ring"
 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
index 18f76f8d9df5601638b17670d6be3c4f14be4614..58c1d3787fabcb67ed7822f100c072fec79756cf 100644 (file)
@@ -1682,10 +1682,15 @@ void Sbar_DrawRaceStatus(vector pos)
 \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
@@ -3570,6 +3575,8 @@ void CSQC_race_hud(void)
 \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