#include <client/view.qh>
// Timer (#5)
+float last_timeleft;
+bool autocvar_hud_panel_timer_count = true;
void HUD_Timer_Export(int fh)
{
timeleft = max(0, timelimit * 60 + STAT(GAMESTARTTIME) - time);
timeleft = ceil(timeleft);
+ // countdown sound
+ if(autocvar_hud_panel_timer_count && timeleft > 0 && timeleft != last_timeleft && timeleft <= 10) {
+ sound(NULL, CH_INFO, SND_ENDCOUNT, VOL_BASE, ATTN_NONE);
+ last_timeleft = timeleft;
+ }
+
minutesLeft = floor(timeleft / 60);
float warmup_timeleft = 0;
SOUND(TYPEHIT, "misc/typehit");
SOUND(KILL, "misc/kill");
SOUND(DEATH, "misc/death");
+SOUND(ENDCOUNT, "misc/endcount");
SOUND(ENDMATCH, "misc/endmatch");
SOUND(OVERTIME, "misc/overtime");
SOUND(TIMEOUT, "misc/timeout");