]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also use MSG_MULTI for victory message
authorMario <mario.mario@y7mail.com>
Thu, 7 Mar 2013 00:39:44 +0000 (11:39 +1100)
committerMario <mario.mario@y7mail.com>
Thu, 7 Mar 2013 00:39:44 +0000 (11:39 +1100)
qcsrc/common/notifications.qh
qcsrc/server/mutators/gamemode_td.qc

index d3e39393c85fe65f203b3e162f0c5af2ef93c746..86a24a4f121f167ae8e00d0879e36f3e5ce64c76 100644 (file)
@@ -341,6 +341,7 @@ void Send_Notification_WOVA(
        MSG_INFO_NOTIF(1, INFO_TD_REPAIR,                          0, 0, "", "",                            "",                     _("^F1Turret repaired by 100 health points!\n"), "") \
        MSG_INFO_NOTIF(1, INFO_TD_SPAWN,                                   0, 0, "", "",                            "",                     _("^BGYou spawned a turret\n"), "") \
        MSG_INFO_NOTIF(1, INFO_TD_UPGRADE,                         0, 0, "", "",                            "",                     _("^F1Turret power increased by 20 percent!\n"), "") \
+       MSG_INFO_NOTIF(1, INFO_TD_VICTORY,                         1, 0, "s1", "",                          "",                     _("^F1%s^F1 victory!\n"), "") \
        MSG_INFO_NOTIF(2, INFO_VERSION_BETA,                   2, 0, "s1 s2", "",                       "",                     _("^F4NOTE: ^BGThe server is running ^F1Xonotic %s (beta)^BG, you have ^F2Xonotic %s\n"), "") \
        MSG_INFO_NOTIF(2, INFO_VERSION_OLD,                    2, 0, "s1 s2", "",                       "",                     _("^F4NOTE: ^BGThe server is running ^F1Xonotic %s^BG, you have ^F2Xonotic %s\n"), "") \
        MSG_INFO_NOTIF(2, INFO_VERSION_OUTDATED,               2, 0, "s1 s2", "",                       "",                     _("^F4NOTE: ^F1Xonotic %s^BG is out, and you still have ^F2Xonotic %s^BG - get the update from ^F3http://www.xonotic.org/^BG!\n"), "") \
@@ -625,6 +626,7 @@ void Send_Notification_WOVA(
        MSG_MULTI_NOTIF(1, MULTI_TD_GENDESTROYED,                INFO_TD_GENDESTROYED,                                  CENTER_TD_GENDESTROYED) \
        MSG_MULTI_NOTIF(1, MULTI_TD_PHASE_BUILD,                 INFO_TD_PHASE_BUILD,                                   CENTER_TD_PHASE_BUILD) \
        MSG_MULTI_NOTIF(1, MULTI_TD_PHASE_COMBAT,                INFO_TD_PHASE_COMBAT,                                  CENTER_TD_PHASE_COMBAT) \
+       MSG_MULTI_NOTIF(1, MULTI_TD_VICTORY,                             INFO_TD_VICTORY,                                       CENTER_TD_VICTORY) \
        MSG_MULTI_NOTIF(1, WEAPON_ACCORDEON_MURDER,              INFO_WEAPON_ACCORDEON_MURDER,              NO_MSG) \
        MSG_MULTI_NOTIF(1, WEAPON_ACCORDEON_SUICIDE,             INFO_WEAPON_ACCORDEON_SUICIDE,             CENTER_DEATH_SELF_GENERIC) \
        MSG_MULTI_NOTIF(1, WEAPON_CRYLINK_MURDER,                INFO_WEAPON_CRYLINK_MURDER,                NO_MSG) \
index b7c73b98dbb923a87c34a20ab29637aec91544b2..f252001ecb03de7c9ccd5e59c91ca15fed9cadc6 100644 (file)
@@ -567,7 +567,7 @@ void build_phase()
                if(head.health <= 0)
                        continue;
                        
-        print(strcat("Warning: Monster still alive during build phase! Monster name: ", head.netname, "\n"));
+        dprint(strcat("Warning: Monster still alive during build phase! Monster name: ", head.netname, "\n"));
                
                WaypointSprite_Kill(head.sprite);
         remove(head);
@@ -599,12 +599,10 @@ void build_phase()
 
 void wave_end(float starting)
 {
-       if not(starting)
-               Send_Notification(NOTIF_ALL, world, MSG_CENTER, CENTER_TD_VICTORY, ((wave_count >= max_waves) ? "Level" : "Wave"));
-       
        if not(starting)
        {
-               print((wave_count >= max_waves) ? "^2Level victory!\n" : "^2Wave victory!\n");
+               Send_Notification(NOTIF_ALL, world, MSG_MULTI, MULTI_TD_VICTORY, ((wave_count >= max_waves) ? "Level" : "Wave"));
+               
                if(autocvar_sv_eventlog)
             GameLogEcho(strcat(":wave:", ftos(wave_count), ":victory"));
        }