From: MirceaKitsune Date: Sun, 26 Sep 2010 21:22:43 +0000 (+0300) Subject: Better artwork cvar names X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e45245942a8fe06b0e9fe658cca2e3a595c5b7cb;p=voretournament%2Fvoretournament.git Better artwork cvar names --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 73fcadea..70300cce 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -113,8 +113,8 @@ 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_win 2 "number of artwork_won_ images available in the gfx folder, 0 disables winning artwork" +seta cl_artwork_lose 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" seta cl_artwork_alpha 1 "artwork alpha" seta cl_artwork_fade 0.65 "artwork fade in speed" diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index 1eda42f0..b497665a 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -498,13 +498,13 @@ void CSQC_UpdateView(float w, float h) { if(getstati(STAT_WINNING)) // we are the winner { - if(cvar("cl_artwork_won")) - artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won"))))); + if(cvar("cl_artwork_win")) + artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_win"))))); } else // we have lost { - if(cvar("cl_artwork_lost")) - artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost"))))); + if(cvar("cl_artwork_lose")) + artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lose"))))); } artwork_image = strzone(artwork_image); }