]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
artwork cvars
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 14:10:54 +0000 (17:10 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 26 Sep 2010 14:10:54 +0000 (17:10 +0300)
data/defaultVoretournament.cfg
data/qcsrc/client/View.qc

index 76d5a0a7f278c216fa6d245af445acfbd1ea3f02..454f0ffcda3c867539fe0478b40a5a4e5186466d 100644 (file)
@@ -113,6 +113,9 @@ seta crosshair_effect_scalefade 1 "use scaling and fading for crosshair effects"
 seta crosshair_hittest 1.25 "do a crosshair hit evaluation; also, the crosshair is scaled by the given number when aiming at an enemy, and blurred when aiming at a team mate"\r
 seta crosshair_hittest_blur 1 "blur the crosshair if the shot is obstructed"\r
 seta crosshair_hittest_showimpact 0 "move the crosshair to the actual impact location if obstructed"\r
+seta cl_artwork_won 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork"\r
+seta cl_artwork_lost 2 "number of artwork_lost_ images available in the gfx folder, 0 disables loosing artwork"\r
+seta cl_artwork_stretch 0 "stretch artwork to fit the screen, even if it brakes image proportions"\r
 fov 90\r
 seta cl_velocityzoom 0 "velocity based zooming of fov, negative values zoom out"\r
 seta cl_velocityzoomtime 0.3   "time value for averaging speed values"\r
index b73e51f0554bd82018ec16242f6d3306db5d3e47..dea5d17679a0d1332d42b15dc6251617b9ca6550 100644 (file)
@@ -495,9 +495,17 @@ void CSQC_UpdateView(float w, float h)
                if(artwork_image == "")\r
                {\r
                        if(getstati(STAT_WINNING))\r
-                               artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * 2)))); // CCCCVVVVVAAAAAAAAARRRRRRRRRRRRRRR!!!!!!\r
+                       {\r
+                               if(!cvar("cl_artwork_won"))\r
+                                       return;\r
+                               artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won")))));\r
+                       }\r
                        else\r
-                               artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * 2)))); // CCCCVVVVVAAAAAAAAARRRRRRRRRRRRRRR!!!!!!\r
+                       {\r
+                               if(!cvar("cl_artwork_lost"))\r
+                                       return;\r
+                               artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost")))));\r
+                       }\r
                        artwork_image = strzone(artwork_image);\r
                }\r
 \r