]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Migrate remaining CA messages to the notification system
authorterencehill <piuntn@gmail.com>
Sat, 1 Mar 2014 23:18:38 +0000 (00:18 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 1 Mar 2014 23:18:38 +0000 (00:18 +0100)
qcsrc/common/notifications.qh
qcsrc/server/command/cmd.qc
qcsrc/server/mutators/gamemode_ca.qc

index 062d2080dfee72efd1cf42435b03a44bff297069..17422ccede1a80540a60cfb765d0d289fd52f4de 100644 (file)
@@ -429,6 +429,8 @@ void Send_Notification_WOCOVA(
        MSG_INFO_NOTIF(1, INFO_DEATH_SELF_VH_WAKI_ROCKET,      2, 1, "s1 s2loc spree_lost", "s1",       "notify_death",         _("^BG%s^K1 couldn't find shelter from a Racer rocket%s%s"), "") \
        MSG_INFO_NOTIF(1, INFO_DEATH_SELF_VOID,                2, 1, "s1 s2loc spree_lost", "s1",       "notify_void",          _("^BG%s^K1 was in the wrong place%s%s"), "") \
        MULTITEAM_INFO(1, INFO_DEATH_TEAMKILL_, 4,             3, 1, "s1 s2 s3loc spree_end", "s2 s1",  "notify_teamkill_%s",   _("^BG%s^K1 was betrayed by ^BG%s^K1%s%s"), "") \
+       MSG_INFO_NOTIF(1, INFO_CA_JOIN_LATE,                   0, 0, "", "",                            "",                     _("^F1Round already started, you will join the game in the next round"), "") \
+       MSG_INFO_NOTIF(1, INFO_CA_LEAVE,                       0, 0, "", "",                            "",                     _("^F2You will spectate in the next round"), "") \
        MSG_INFO_NOTIF(1, INFO_FREEZETAG_FREEZE,               2, 0, "s1 s2", "",                       "",                     _("^BG%s^K1 was frozen by ^BG%s"), "") \
        MSG_INFO_NOTIF(1, INFO_FREEZETAG_REVIVED,              2, 0, "s1 s2", "",                       "",                     _("^BG%s^K3 was revived by ^BG%s"), "") \
        MSG_INFO_NOTIF(1, INFO_FREEZETAG_REVIVED_FALL,         1, 0, "s1", "",                          "",                     _("^BG%s^K3 was revived by falling"), "") \
index 40f7ed406c7b72299f45b96318b118d02305fc6b..df6872d36c5cd76a59cb676b4f635121aa2e4e10 100644 (file)
@@ -578,7 +578,7 @@ void ClientCommand_spectate(float request)
                                if((IS_PLAYER(self) || self.caplayer) && autocvar_sv_spectate == 1)
                                {
                                        if(self.caplayer && (IS_SPEC(self) || IS_OBSERVER(self)))
-                                               sprint(self, "WARNING: you will spectate in the next round.\n");
+                                               Send_Notification(NOTIF_ONE_ONLY, self, MSG_INFO, INFO_CA_LEAVE);
                                        ClientKill_TeamChange(-2); // observe
                                }
                        }
index 5236889adc0bae395e2c533d0d95100fdba3ce89..76419d8387039d086dbff3f7e8780ff1b6cc2e47 100644 (file)
@@ -153,7 +153,7 @@ MUTATOR_HOOKFUNCTION(ca_PutClientInServer)
                {
                        self.caplayer = 0.5;
                        if(IS_REAL_CLIENT(self))
-                               sprint(self, "You will join the game in the next round.\n");
+                               Send_Notification(NOTIF_ONE_ONLY, self, MSG_INFO, INFO_CA_JOIN_LATE);
                }
        }
        return 1;