]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Added Prepare your team announcer
authorz411 <z411@omaera.org>
Mon, 31 Aug 2020 17:49:57 +0000 (13:49 -0400)
committerz411 <z411@omaera.org>
Mon, 31 Aug 2020 17:49:57 +0000 (13:49 -0400)
qcsrc/client/announcer.qc
qcsrc/common/notifications/all.inc

index ae04b5be15e5b866fda2a185ac58397727cd5101..a8bb43bf8928d00648f54cb62eb7e8ea57177b0e 100644 (file)
@@ -106,9 +106,13 @@ void Announcer_Gamestart()
                        }
 
                        if(time + 5.0 < startTime) // if connecting to server while restart was active don't always play prepareforbattle
-                       if(time > announcer_countdown.nextthink) // don't play it again if countdown was already going
-                               Local_Notification(MSG_ANNCE, ANNCE_PREPARE);
-
+                       if(time > announcer_countdown.nextthink) { // don't play it again if countdown was already going
+                               if(teamplay && warmup_stage)
+                                       Local_Notification(MSG_ANNCE, ANNCE_PREPARE_TEAM);
+                               else
+                                       Local_Notification(MSG_ANNCE, ANNCE_PREPARE);
+                       }
+                       
                        announcer_countdown.nextthink = startTime - floor(startTime - time); //synchronize nextthink to startTime
                }
        }
index ffad793a53143af9a2f57b031cbdd1f80f1d2282..d1d2db6181195e3f5a795dac5df16ccf767827b3 100644 (file)
     MSG_ANNCE_NOTIF(NUM_ROUNDSTART_10,          N___NEVER, "10",                CH_INFO, VOL_BASEVOICE, ATTEN_NONE)
 
     MSG_ANNCE_NOTIF(PREPARE,                    N__ALWAYS, "prepareforbattle",  CH_INFO, VOL_BASEVOICE, ATTEN_NONE)
+       MSG_ANNCE_NOTIF(PREPARE_TEAM,               N__ALWAYS, "prepareyourteam",   CH_INFO, VOL_BASEVOICE, ATTEN_NONE)
 
     MSG_ANNCE_NOTIF(REMAINING_FRAG_1,           N_GNTLOFF, "1fragleft",         CH_INFO, VOL_BASEVOICE, ATTEN_NONE)
     MSG_ANNCE_NOTIF(REMAINING_FRAG_2,           N_GNTLOFF, "2fragsleft",        CH_INFO, VOL_BASEVOICE, ATTEN_NONE)