// Last updated: February, 2013
// ================================================
-#ifndef MENUQC
entity Get_Notif_Ent(float net_type, float net_name)
{
switch(net_type)
backtrace(sprintf("Get_Notif_Ent(%d, %d): Improper net type!\n", net_type, net_name));
return world;
}
-#endif // ifndef MENUQC
// ===============================
fputs(fh, notif_msg); \
if(alsoprint) { print(strreplace("^", "^^", notif_msg)); } }
- #ifndef MENUQC
string notif_msg;
float i;
entity e;
NOTIF_WRITE(MSG_DEATH, e.nent_name, sprintf("infoname: %s, centername: %s",
e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name)); }
-
print(sprintf("Notification counts: MSG_INFO = %d, MSG_CENTER = %d, MSG_WEAPON = %d, MSG_DEATH = %d\n",
NOTIF_INFO_COUNT, NOTIF_CENTER_COUNT, NOTIF_WEAPON_COUNT, NOTIF_DEATH_COUNT));
-
- #endif
return;
#undef NOTIF_WRITE
}
-#ifndef MENUQC
#define HIT_MAX(count,funcname) if(sel_num == count) { backtrace(sprintf("%s: Hit maximum arguments!\n", funcname)); break; }
#define HIT_UNKNOWN(token,funcname) default: { backtrace(sprintf("%s: Hit unknown token in selected string! '%s'\n", funcname, selected)); break; }
string Local_Notification_sprintf(string input, string args,
}
return sprintf(input, arg_slot[0], arg_slot[1], arg_slot[2], arg_slot[3], arg_slot[4], arg_slot[5], arg_slot[6]);
}
+
#ifdef CSQC
-void Local_Notification_HUD_Notify_Push(string icon, string hudargs, string s1, string s2)
+void Local_Notification_HUD_Notify_Push(string icon, string hudargs, string s1, string s2, string s3, string s4)
{
string selected;
float sel_num;
Local_Notification_HUD_Notify_Push(
notif.nent_icon,
notif.nent_hudargs,
- s1, s2);
+ s1, s2, s3, s4);
}
#endif
break;
Send_CSQC_Centerprint_Generic(e, id, "", 1, 0);
}
#endif // ifdef SVQC
-#endif // ifndef MENUQC
#define MSG_WEAPON 3 // "Personal" weapon messages (like "You got the Nex", sent to weapon notify panel)
#define MSG_DEATH 4 // "Personal" AND "Global" death messages
-#ifndef MENUQC // SERVER AND CLIENT ONLY
#define NO_MSG -12345
// ping of bots defined for extra frag message notification information
#define ARG_CSQC 3
#define ARG_SVQC 4
+#define NOTIF_MAX_ARGS 7
+#define NOTIF_MAX_HUDARGS 2
+
#define NOTIF_ARGUMENT_LIST \
ARG_CASE(ARG_TRIPLE, "s1", s1) \
ARG_CASE(ARG_TRIPLE, "s2", s2) \
- ARG_CASE(ARG_BOTH, "s3", s3) \
- ARG_CASE(ARG_BOTH, "s4", s4) \
+ ARG_CASE(ARG_TRIPLE, "s3", s3) \
+ ARG_CASE(ARG_TRIPLE, "s4", s4) \
ARG_CASE(ARG_BOTH, "f1", ftos(f1)) \
ARG_CASE(ARG_BOTH, "f2", ftos(f2)) \
ARG_CASE(ARG_BOTH, "f3", ftos(f3)) \
entity Get_Notif_Ent(float net_type, float net_name);
-string arg_slot[7];
+string arg_slot[NOTIF_MAX_ARGS];
+
+void Dump_Notifications(float fh, float alsoprint);
void Local_Notification(float net_type, float net_name, ...count);
void Local_Notification_Without_VarArgs(float net_type, float net_name, float stringcount, float floatcount, string s1, string s2, string s3, string s4, float f1, float f2, float f3, float f4);
void Send_CSQC_Centerprint_Generic(entity e, float id, string s, float duration, float countdown_num);
void Send_CSQC_Centerprint_Generic_Expire(entity e, float id);
#endif // ifdef SVQC
-#endif // ifndef MENUQC
-
-// MENU, SERVER, AND CLIENT
-void Dump_Notifications(float fh, float alsoprint);
// ====================================
// Initialization/Create Declarations
// ====================================
-#ifndef MENUQC // Menu doesn't need init
-
#define NOTIF_FIRST 1
#define NOTIF_MAX 1024 // limit of recursive functions with ACCUMULATE_FUNCTION
.string nent_durcnt;
.string nent_string;
-#define NOTIF_MAX_ARGS 7
-#define NOTIF_MAX_HUDARGS 2
-
-// notif.nent_args = strzone(args); \
-// notif.nent_hudargs = strzone(hudargs); \
// if(durcnt != "") { notif.nent_durcnt = durcnt; } \
string Process_Notif_Line(float check_newline, string input, string notiftype, string notifname, string stringtype)
#undef MSG_DEATH_NOTIF
#undef ADD_AUTOCVAR
-
-#endif // ifndef MENUQC