From: MirceaKitsune Date: Sun, 5 Sep 2010 10:18:27 +0000 (+0300) Subject: Cvar the color fading speed too X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af44a1c5ee1262c289095b9d8fc92a56132a0164;p=voretournament%2Fvoretournament.git Cvar the color fading speed too --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index ee80769c..d65e6ca0 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -1125,6 +1125,7 @@ seta sbar_scoreboard_highlight_alpha 0.10 "highlight alpha value (depends on sba seta sbar_scoreboard_highlight_alpha_self 0.25 "self highlight alpha value" seta sbar_stomachboard_status_brightness 0.5 "brightness of the stomach board status" seta sbar_stomachboard_status_alpha 0.75 "alpha of the stomach board status" +seta sbar_stomachboard_status_fade 0.0125 "color fading speed of the stomach board status" seta sbar_stomachboard_highlight_brightness 0.5 "brightness of the stomach board highlight" seta sbar_stomachboard_highlight_alpha 0.25 "alpha of the stomach board highlight" seta sbar_timer_increment 0 "1 = show elapsed time on the timer" diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 06fdcc21..feba5f95 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2629,7 +2629,7 @@ vector colortrans_current; vector Stomachstatus_Colortrans(vector target_color) { local float step; - step = 0.0125; + step = cvar("sbar_stomachboard_status_fade"); if(colortrans_current_x > target_color_x + step) colortrans_current_x -= step;