From 4a625a1d97ef580a732aa1db38297c186f4ec33e Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 26 Sep 2010 17:10:54 +0300 Subject: [PATCH] artwork cvars --- data/defaultVoretournament.cfg | 3 +++ data/qcsrc/client/View.qc | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 76d5a0a7..454f0ffc 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -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" seta crosshair_hittest_blur 1 "blur the crosshair if the shot is obstructed" seta crosshair_hittest_showimpact 0 "move the crosshair to the actual impact location if obstructed" +seta cl_artwork_won 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork" +seta cl_artwork_lost 2 "number of artwork_lost_ images available in the gfx folder, 0 disables loosing artwork" +seta cl_artwork_stretch 0 "stretch artwork to fit the screen, even if it brakes image proportions" fov 90 seta cl_velocityzoom 0 "velocity based zooming of fov, negative values zoom out" seta cl_velocityzoomtime 0.3 "time value for averaging speed values" diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index b73e51f0..dea5d176 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -495,9 +495,17 @@ void CSQC_UpdateView(float w, float h) if(artwork_image == "") { if(getstati(STAT_WINNING)) - artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * 2)))); // CCCCVVVVVAAAAAAAAARRRRRRRRRRRRRRR!!!!!! + { + if(!cvar("cl_artwork_won")) + return; + artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won"))))); + } else - artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * 2)))); // CCCCVVVVVAAAAAAAAARRRRRRRRRRRRRRR!!!!!! + { + if(!cvar("cl_artwork_lost")) + return; + artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost"))))); + } artwork_image = strzone(artwork_image); } -- 2.39.2