From: Samual Lenks Date: Tue, 20 Aug 2013 23:01:06 +0000 (-0400) Subject: Add to Dump_Notifications X-Git-Tag: xonotic-v0.8.0~341^2~32 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=070d88d27b73dafcb9c0cec872a8a38ecf534df0;p=xonotic%2Fxonotic-data.pk3dir.git Add to Dump_Notifications --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 6ede8250a..c4911b277 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -787,6 +787,17 @@ void Dump_Notifications(float fh, float alsoprint) ); } + NOTIF_WRITE(sprintf("\n// MSG_CHOICE notifications (count = %d):\n", NOTIF_CHOICE_COUNT)); + for(i = 1; i <= NOTIF_CHOICE_COUNT; ++i) + { + e = Get_Notif_Ent(MSG_CHOICE, i); + if not(e) { backtrace("Dump_Notifications(): Missing notification entity!\n"); return; } + + NOTIF_WRITE_ENTITY( + "Notification control cvar: 0 = off, 1 = trigger option A subcall, 2 = trigger option B subcall" + ); + } + // edit these to match whichever cvars are used for specific notification options NOTIF_WRITE("\n// HARD CODED notification variables:\n"); @@ -901,18 +912,20 @@ void Dump_Notifications(float fh, float alsoprint) NOTIF_WRITE(sprintf( strcat( "\n// Notification counts (total = %d): ", - "MSG_ANNCE = %d, MSG_INFO = %d, MSG_CENTER = %d, MSG_MULTI = %d\n" + "MSG_ANNCE = %d, MSG_INFO = %d, MSG_CENTER = %d, MSG_MULTI = %d, MSG_CHOICE = %d\n" ), ( NOTIF_ANNCE_COUNT + NOTIF_INFO_COUNT + NOTIF_CENTER_COUNT + - NOTIF_MULTI_COUNT + NOTIF_MULTI_COUNT + + NOTIF_CHOICE_COUNT ), NOTIF_ANNCE_COUNT, NOTIF_INFO_COUNT, NOTIF_CENTER_COUNT, - NOTIF_MULTI_COUNT + NOTIF_MULTI_COUNT, + NOTIF_CHOICE_COUNT )); return;