From 889a1275873b62e96fb3a963ed2d5ff73870adff Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Fri, 8 Feb 2013 19:52:36 -0500 Subject: [PATCH] Make CTF notify server log directly, it normally would not send anymore --- qcsrc/server/mutators/gamemode_ctf.qc | 6 +++++- qcsrc/server/mutators/gamemode_ctf.qh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index f1b7fb28c..132896d32 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -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) { diff --git a/qcsrc/server/mutators/gamemode_ctf.qh b/qcsrc/server/mutators/gamemode_ctf.qh index ae3ce4ade..00576ee3c 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qh +++ b/qcsrc/server/mutators/gamemode_ctf.qh @@ -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 + -- 2.39.2