]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Removed centerprint fade in (spicy)
authorz411 <z411@omaera.org>
Tue, 20 Oct 2020 06:15:57 +0000 (03:15 -0300)
committerz411 <z411@omaera.org>
Tue, 20 Oct 2020 06:15:57 +0000 (03:15 -0300)
qcsrc/client/autocvars.qh
qcsrc/client/hud/panel/centerprint.qc

index 8fe8a0cc1398bb3c34959c0aa4ec34b006b0dc4c..0973e7932c80e2e914bd2f7c2ed259dd7dd62d04 100644 (file)
@@ -233,7 +233,7 @@ float autocvar_hud_panel_bg_color_team;
 float autocvar_hud_panel_bg_padding;
 bool autocvar_hud_panel_centerprint;
 float autocvar_hud_panel_centerprint_align;
-float autocvar_hud_panel_centerprint_fade_in = 0.2;
+//float autocvar_hud_panel_centerprint_fade_in = 0.2; // z411 disable fade in
 float autocvar_hud_panel_centerprint_fade_out = 0.5;
 float autocvar_hud_panel_centerprint_fade_subsequent = 1;
 float autocvar_hud_panel_centerprint_fade_subsequent_passone = 3;
index cf65ecc1a0d0d5ccedf534dfa1509bd1cb07f9c3..4dc4627d551cfa52540bee6605aadf5618ff8814 100644 (file)
@@ -357,10 +357,10 @@ void HUD_CenterPrint()
                all_messages_expired = false;
 
                // fade
-               if(centerprint_time[j] < 0)  // Expired but forced. Expire time is the fade-in time.
-                       a = (time - centerprint_expire_time[j]) / max(0.0001, autocvar_hud_panel_centerprint_fade_in);
-               else if(centerprint_expire_time[j] - autocvar_hud_panel_centerprint_fade_out > time)  // Regularily printed. Not fading out yet.
-                       a = (time - (centerprint_expire_time[j] - centerprint_time[j])) / max(0.0001, autocvar_hud_panel_centerprint_fade_in);
+               //if(centerprint_time[j] < 0)  // Expired but forced. Expire time is the fade-in time.
+               //      a = (time - centerprint_expire_time[j]) / max(0.0001, autocvar_hud_panel_centerprint_fade_in);
+               if(centerprint_expire_time[j] - autocvar_hud_panel_centerprint_fade_out > time)  // Regularily printed. Not fading out yet.
+                       a = 1;
                else // Expiring soon, so fade it out.
                        a = (centerprint_expire_time[j] - time) / max(0.0001, autocvar_hud_panel_centerprint_fade_out);