+
+ // Check for matchend = 0 seconds remaining
+ if(autocvar_cl_announcer_matchend == 1)
+ {
+ if (announcer_matchend)
+ {
+ if((!warmup_stage || autocvar_g_warmup_limit == 0) && timeleft == 0)
+ announcer_matchend = TRUE;
+ }
+ else if((!warmup_stage || autocvar_g_warmup_limit == 0) && timelimit > 0 && timeleft == 0)
+ {
+ // if we're in warmup mode, dont play a sound
+ if not(autocvar_g_warmup_limit == -1 && warmup_stage)
+ {
+ announcer_matchend = TRUE;
+ Announcer_Play("matchend");
+ }
+ }
+ }