From: MirceaKitsune Date: Mon, 6 Sep 2010 00:00:18 +0000 (+0300) Subject: Of COURSE this effect is frametime dependent X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=420a66d36e1dd4def15cca6d1bababb30dc754a6 Of COURSE this effect is frametime dependent --- diff --git a/data/defaultVoretournament.cfg b/data/defaultVoretournament.cfg index 392a91d8..f951e081 100644 --- a/data/defaultVoretournament.cfg +++ b/data/defaultVoretournament.cfg @@ -1125,7 +1125,7 @@ seta sbar_scoreboard_highlight_alpha_self 0.25 "self highlight alpha value" seta sbar_stomachboard_color1 "0 0.5 0" "RGB color of the stomach board indicators for self" seta sbar_stomachboard_color2 "0.5 0 0" "RGB color of the stomach board indicators for predator" 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_status_fade 1 "color fading speed of the stomach board status" 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" seta sbar_timer_scale 1 "scale multiplier of the timer" diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index bea2ae58..62e8d513 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2630,7 +2630,7 @@ vector stomachstatus_colorfade_current; vector StomachStatus_ColorFade(vector target_color) { local float step; - step = cvar("sbar_stomachboard_status_fade"); + step = cvar("sbar_stomachboard_status_fade") * frametime; if(stomachstatus_colorfade_current_x >= target_color_x + step) stomachstatus_colorfade_current_x -= step;