// it is just a semi-helpful tool for those who want to manually change their user settings.
NOTIF_WRITE(sprintf("\n// MSG_INFO notifications (count = %d):\n", NOTIF_INFO_COUNT));
- for(i = 1; i <= NOTIF_INFO_COUNT; ++i) {
+ for(i = 1; i <= NOTIF_INFO_COUNT; ++i)
+ {
e = Get_Notif_Ent(MSG_INFO, i);
if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; }
- NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string); }
+ NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string);
+ }
NOTIF_WRITE(sprintf("\n// MSG_CENTER notifications (count = %d):\n", NOTIF_CENTER_COUNT));
- for(i = 1; i <= NOTIF_CENTER_COUNT; ++i) {
+ for(i = 1; i <= NOTIF_CENTER_COUNT; ++i)
+ {
e = Get_Notif_Ent(MSG_CENTER, i);
if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; }
- NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string); }
+ NOTIF_WRITE_SETA(e.nent_name, e.nent_default, e.nent_string);
+ }
NOTIF_WRITE(sprintf("\n// MSG_WEAPON notifications (count = %d):\n", NOTIF_WEAPON_COUNT));
- for(i = 1; i <= NOTIF_WEAPON_COUNT; ++i) {
+ for(i = 1; i <= NOTIF_WEAPON_COUNT; ++i)
+ {
e = Get_Notif_Ent(MSG_WEAPON, i);
if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; }
NOTIF_WRITE_SETA(e.nent_name, e.nent_default, sprintf("infoname: %s, centername: %s",
- e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name)); }
+ e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name));
+ }
NOTIF_WRITE(sprintf("\n// MSG_DEATH notifications (count = %d):\n", NOTIF_DEATH_COUNT));
- for(i = 1; i <= NOTIF_DEATH_COUNT; ++i) {
+ for(i = 1; i <= NOTIF_DEATH_COUNT; ++i)
+ {
e = Get_Notif_Ent(MSG_DEATH, i);
if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; }
NOTIF_WRITE_SETA(e.nent_name, e.nent_default, sprintf("infoname: %s, centername: %s",
- e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name)); }
+ e.nent_msginfo.nent_name, e.nent_msgcenter.nent_name));
+ }
// edit these to match whichever cvars are used for specific notification options
NOTIF_WRITE("\n// HARD CODED notification variables:\n");
// Current version number of the configuration file for notifications...
// This is used to check matches between the config file and the code,
-// and should be incremented any time you add a new/remove or edit an notification
-// or any time you change default values or add/edit/remove a special cvar.
+// and should be incremented with any new notifications or any other changes
+// to notification cvars, notification list, or notificiation config.
#define NOTIF_VERSION 3
#define EIGHT_VARS_TO_VARARGS_VARLIST \