]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud.qc
More work on centerprint rendering, plus new feature with sv_fraginfo which allows...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud.qc
index fff7b5699a8d28ec64153f2559fda31d5218bc2b..98102151d6d166854b5aa354d0dcbd4e3ee9d7e6 100644 (file)
@@ -4610,9 +4610,9 @@ void HUD_CenterPrint (void)
                        a = (centerprint_expire_time[j] - time) / centerprint_fadetime;
                }
                
-               sz = 0.8 + a * (1 - 0.8); // change the size before the other fade effect
-               
                a = a * (bound(0.5, (1 - (i / 2)), 1) * bound(0.5, (1 - (i / 10)), 1));
+               
+               sz = 0.5 + a * (1 - 0.5);
 
                drawfontscale = sz * '1 1 0';
                if (centerprint_countdown_num[j])
@@ -4672,13 +4672,13 @@ void HUD_CenterPrint (void)
                {
                        pos_y = current_msg_pos_y - CENTERPRINT_SPACING * fontsize_y;
                        if (a < 1 && centerprint_msgID[j] == 0) // messages with id can be replaced just after they are faded out, so never move over them the next messages
-                               pos_y += (msg_size + CENTERPRINT_SPACING * fontsize_y) * (1 - sqrt(a));
+                               pos_y += (msg_size + CENTERPRINT_SPACING * fontsize_y);
                }
                else
                {
                        pos_y += CENTERPRINT_SPACING * fontsize_y;
                        if (a < 1 && centerprint_msgID[j] == 0) // messages with id can be replaced just after they are faded out, so never move over them the next messages
-                               pos_y -= (msg_size + CENTERPRINT_SPACING * fontsize_y) * (1 - sqrt(a));
+                               pos_y -= (msg_size + CENTERPRINT_SPACING * fontsize_y);
                }
        }
        drawfontscale = '1 1 0';