X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fannouncer.qc;h=b53c04da052b048a233054639cbf659480d3cc34;hb=a2b044e8d47280d464523e889cfc206a105d1f4a;hp=7a4ed9223ad090d0549c5453e3e930819e9281c7;hpb=756a2e093820dc91621b95d955ca48a3462af3cb;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index 7a4ed9223..b53c04da0 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -1,16 +1,3 @@ -void Announcer_Play(string announcement) -{ - /*if((announcement != previous_announcement) || (time >= (previous_announcement_time + autocvar_cl_announcer_antispam))) - { - sound(world, CH_INFO, strcat("announcer/", autocvar_cl_announcer, "/", announcement, ".wav"), VOL_BASEVOICE, ATTN_NONE); - - if(previous_announcement) { strunzone(previous_announcement); } - - previous_announcement = strzone(announcement); - previous_announcement_time = time; - }*/ -} - float announcer_1min; float announcer_5min; void Announcer_Countdown() @@ -41,15 +28,14 @@ void Announcer_Countdown() else // countdown is still going { if(roundstarttime == starttime) + { Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, countdown_rounded); + Local_Notification(MSG_ANNCE, Announcer_PickNumber(CNT_ROUNDSTART, countdown_rounded)); + } else - Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_GAMESTART, countdown_rounded); - - switch(countdown_rounded) { - case 1: Local_Notification(MSG_ANNCE, ANNCE_NUM_1); break; - case 2: Local_Notification(MSG_ANNCE, ANNCE_NUM_2); break; - case 3: Local_Notification(MSG_ANNCE, ANNCE_NUM_3); break; + Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_GAMESTART, countdown_rounded); + Local_Notification(MSG_ANNCE, Announcer_PickNumber(CNT_GAMESTART, countdown_rounded)); } self.nextthink = (starttime - (countdown - 1));