From: Samual Date: Sat, 15 Oct 2011 18:02:26 +0000 (-0400) Subject: Working more on getting the fading calculation right X-Git-Tag: xonotic-v0.6.0~35^2~78^2~7^2~53 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca287b246d99318b20280ee6313ab305b23d8ba2;p=xonotic%2Fxonotic-data.pk3dir.git Working more on getting the fading calculation right --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 0a53b5b69..c4c827b1d 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4680,9 +4680,13 @@ void HUD_CenterPrint (void) a = (centerprint_expire_time[j] - time) / centerprint_fadetime; } - a = a * (bound(0.5, (1 - (i / 2)), 1) * bound(0.5, (1 - (i / 10)), 1)); + //a = a * bound(0.5, (1 - (i / 2)), 1); // pass one: all messages after the first have half alpha - sz = 0.5 + a * (1 - 0.5); + sz = 0.75 + a * (1 - 0.75); // set the sizing before final fading pass + + //a = a * bound(0.75, (1 - (i / 10)), 1); // pass two: after that, gradually lower alpha even more for each message + + //print(strcat("alpha for centerprint ", ftos(i), ": ", ftos(a), ".\n")); drawfontscale = sz * '1 1 0'; if (centerprint_countdown_num[j])