From: z411 Date: Fri, 4 Sep 2020 22:21:03 +0000 (-0400) Subject: Add suddendeath announcer X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7716cb7372c585546ac0d18d3201bc978408c63a;p=xonotic%2Fxonotic-data.pk3dir.git Add suddendeath announcer --- diff --git a/qcsrc/common/notifications/all.inc b/qcsrc/common/notifications/all.inc index d1d2db618..a3eeb6d27 100644 --- a/qcsrc/common/notifications/all.inc +++ b/qcsrc/common/notifications/all.inc @@ -205,6 +205,7 @@ MSG_ANNCE_NOTIF(TIMEOUT, N__ALWAYS, "timeoutcalled", CH_INFO, VOL_BASEVOICE, ATTEN_NONE) MSG_ANNCE_NOTIF(OVERTIME, N__ALWAYS, "overtime", CH_INFO, VOL_BASEVOICE, ATTEN_NONE) + MSG_ANNCE_NOTIF(SUDDENDEATH, N__ALWAYS, "suddendeath", CH_INFO, VOL_BASEVOICE, ATTEN_NONE) MSG_ANNCE_NOTIF(SUICIDE, N_GNTLOFF, "suicide", CH_INFO, VOL_BASEVOICE, ATTEN_NONE) MSG_ANNCE_NOTIF(ACCIDENT, N_GNTLOFF, "accident", CH_INFO, VOL_BASEVOICE, ATTEN_NONE) diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index 25163269b..c97291b41 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -1985,6 +1985,8 @@ void CheckRules_World() Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_RACE_FINISHLAP); else Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_OVERTIME_FRAG); + sound(NULL, CH_INFO, SND_OVERTIME, VOL_BASE, ATTN_NONE); + Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, ANNCE_SUDDENDEATH); } } else