From c75400bc23770361923ba88e48fe375e9e31d542 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 22 Sep 2018 15:36:38 +1000 Subject: [PATCH] During warmup stage, show WARMUP instead of a timer, but restore the timer 1 minute before the match starts --- qcsrc/client/hud/panel/timer.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 0dcbb70db..10d10c45d 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -61,7 +61,9 @@ void HUD_Timer() else timer_color = '1 0 0'; //red - if (intermission_time) { + if (warmup_stage && warmup_timeleft >= 60) { + timer = _("WARMUP"); + } else if (intermission_time) { timer = seconds_tostring(max(0, floor(intermission_time - STAT(GAMESTARTTIME)))); } else if (autocvar_hud_panel_timer_increment || (!warmup_stage && timelimit == 0) || (warmup_stage && warmup_timeleft <= 0)) { if (time < STAT(GAMESTARTTIME)) -- 2.39.2