Net_LinkEntity(notif, FALSE, 0, Write_Notification);
- if(!server_is_local)
+ if((!server_is_local) && (broadcast == NOTIF_ANY || broadcast == NOTIF_ANY_EXCEPT) && (net_type != MSG_CENTER))
{
Local_Notification_Without_VarArgs(net_type, net_name, stringcount, floatcount, IFSTR(0), IFSTR(1), IFSTR(2), IFSTR(3), IFFL(0), IFFL(1), IFFL(2), IFFL(3));
}
#define WEAPON_NAME f1 // weaponorder[f1].netname
#endif
-#define ADD_AUTOCVAR(name) var float autocvar_notification_##name = TRUE;
-#define CHECK_AUTOCVAR(name) if(autocvar_notification_##name)
-
#define NOTIF_SWITCH_LIST(net_type,net_name,returnv) \
switch(net_name) \
{ \
#define NOTIF_FIRST 1
#define NOTIF_MAX 1024 // limit of recursive functions with ACCUMULATE_FUNCTION
+#define ADD_AUTOCVAR(name) var float autocvar_notification_##name = TRUE;
+#define CHECK_AUTOCVAR(name) if(autocvar_notification_##name)
+
#define CHECK_NOTIFICATION_1(net_type,net_name,check_newline,normal,gentle) \
if((normal == "") || ((normal == "") && (gentle == ""))) { print(strcat("^1EMPTY NOTIFICATION: ^7net_type = ", net_type, ", net_name = ", VAR_TO_TEXT(net_name), ".\n")); } \
#if check_newline \
#undef MSG_WEAPON_NOTIF
#undef MSG_DEATH_NOTIF
+#undef ADD_AUTOCVAR
+
#endif // ifndef MENUQC
if(self.netaddress == "local")
{
- print("^3server is local!\n");
+ //print("^3server is local!\n");
if(server_is_local)
- print("Multiple local clients???");
+ error("Multiple local clients???");
else
server_is_local = TRUE;
}