From 7716cb7372c585546ac0d18d3201bc978408c63a Mon Sep 17 00:00:00 2001 From: z411 Date: Fri, 4 Sep 2020 18:21:03 -0400 Subject: [PATCH] Add suddendeath announcer --- qcsrc/common/notifications/all.inc | 1 + qcsrc/server/world.qc | 2 ++ 2 files changed, 3 insertions(+) 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 -- 2.39.2