]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add CA announcers z411/leadannce 1076/head
authorz411 <z411@omaera.org>
Mon, 12 Jun 2023 23:13:58 +0000 (19:13 -0400)
committerz411 <z411@omaera.org>
Mon, 12 Jun 2023 23:13:58 +0000 (19:13 -0400)
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc

index 7a16141fc8ebbe89409b947cdfd9b979da571233..950c165895faa4eff853ffe058aed16795a79dd3 100644 (file)
@@ -143,17 +143,20 @@ float CA_CheckWinner()
        if(winner_team > 0)
        {
                Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, APP_TEAM_NUM(winner_team, CENTER_ROUND_TEAM_WIN));
+               Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, APP_TEAM_NUM(winner_team, ANNCE_ROUND_TEAM_WIN));
                Send_Notification(NOTIF_ALL, NULL, MSG_INFO, APP_TEAM_NUM(winner_team, INFO_ROUND_TEAM_WIN));
                TeamScore_AddToTeam(winner_team, ST_CA_ROUNDS, +1);
        }
        else if(winner_team == -1)
        {
                Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_ROUND_TIED);
+               Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, ANNCE_ROUND_TIED);
                Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_ROUND_TIED);
        }
        else if(winner_team == -2)
        {
                Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, CENTER_ROUND_OVER);
+               Send_Notification(NOTIF_ALL, NULL, MSG_ANNCE, ANNCE_ROUND_OVER);
                Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_ROUND_OVER);
        }
 
@@ -324,7 +327,10 @@ void ca_LastPlayerForTeam_Notify(entity this)
        {
                entity pl = ca_LastPlayerForTeam(this);
                if (pl)
+               {
                        Send_Notification(NOTIF_ONE, pl, MSG_CENTER, CENTER_ALONE);
+                       Send_Notification(NOTIF_ONE, pl, MSG_ANNCE, ANNCE_ALONE);
+               }
        }
 }