]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make CTF notify server log directly, it normally would not send anymore
authorSamual Lenks <samual@xonotic.org>
Sat, 9 Feb 2013 00:52:36 +0000 (19:52 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 9 Feb 2013 00:52:36 +0000 (19:52 -0500)
qcsrc/server/mutators/gamemode_ctf.qc
qcsrc/server/mutators/gamemode_ctf.qh

index f1b7fb28ceecc211d3baf3450cd4a2e8f97ef532..132896d32c95cfcd902e71cf1ee685a2c8e328cf 100644 (file)
@@ -42,9 +42,13 @@ void ctf_CaptureRecord(entity flag, entity player)
        FOR_EACH_REALCLIENT(tmp_entity)
        {
                if not(tmp_entity.CAPTURE_VERBOSE) { notification = APP_TEAM_ENT_2(flag, INFO_CTF_CAPTURE_); s2 = NO_STR_ARG; f1 = f2 = NO_FL_ARG; }
-               Send_Notification_Legacy_Wrapper(NOTIF_ONE, tmp_entity, MSG_INFO, notification, s1, s2, f1, f2, NO_FL_ARG);
+               Send_Notification_Legacy_Wrapper(NOTIF_ONE_ONLY, tmp_entity, MSG_INFO, notification, s1, s2, f1, f2, NO_FL_ARG);
        }
 
+       // notify server log too
+       if not(autocvar_notification_ctf_capture_verbose) { notification = APP_TEAM_ENT_2(flag, INFO_CTF_CAPTURE_); s2 = NO_STR_ARG; f1 = f2 = NO_FL_ARG; }
+       Local_Notification_Without_VarArgs(MSG_INFO, notification, stof(Get_Field_Value(F_STRNUM, MSG_INFO, notification)), stof(Get_Field_Value(F_FLNUM, MSG_INFO, notification)), s1, s2, NO_STR_ARG, NO_STR_ARG, f1, f2, NO_FL_ARG, NO_FL_ARG);
+
        // write that shit in the database
        if(success) 
        {
index ae3ce4ade6ec9ebc0b702228af5127d1312dbbda..00576ee3c1bc5a9345373d2a3ff13c0c75ba9a8c 100644 (file)
@@ -136,8 +136,8 @@ void havocbot_role_ctf_setrole(entity bot, float role);
 .float CAPTURE_VERBOSE;
 .float PICKUP_TEAM_VERBOSE;
 .float PICKUP_ENEMY_VERBOSE;
-#else
+#endif
 var float autocvar_notification_ctf_capture_verbose = TRUE;
 var float autocvar_notification_ctf_pickup_team_verbose = TRUE;
 var float autocvar_notification_ctf_pickup_enemy_verbose = TRUE;
-#endif
+