From 425096c0438a1c5102629a8a23ab03c7b04913cb Mon Sep 17 00:00:00 2001 From: z411 Date: Fri, 25 Mar 2022 01:22:44 -0300 Subject: [PATCH] Make timer stuck in infinite warmup --- qcsrc/client/hud/panel/timer.qc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 68e7312c7..85527d5d6 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -91,7 +91,12 @@ void HUD_Timer() timer_color = HUD_Timer_Color(timeleft); // Timer text - if (autocvar_hud_panel_timer_increment || timelimit <= 0) + if (timelimit == -1) // Infinite warmup + if (autocvar_hud_panel_timer_increment) + timer = seconds_tostring(0); + else + timer = seconds_tostring(STAT(TIMELIMIT) * 60); + else if (autocvar_hud_panel_timer_increment || timelimit == 0) timer = seconds_tostring(HUD_Timer_TimeElapsed(curtime, STAT(GAMESTARTTIME))); else timer = seconds_tostring(timeleft); -- 2.39.2