1 // =====================
3 // =====================
5 // main types/groups of notifications
6 #define MSG_INFO 1 // information messages (sent to console)
7 #define MSG_NOTIFY 2 // events to be sent to the notification panel
8 #define MSG_CENTER 3 // centerprint messages
9 #define MSG_WEAPON 4 // weapon messages (like "You got the Nex", sent to weapon notify panel)
11 // collapse multiple arguments into one argument
12 #define CLPS3(arg1,arg2,arg3) arg1, arg2, arg3
13 #define CLPS2(arg1,arg2) arg1, arg2
15 // ===================
17 // ===================
18 // List of all notifications (including identifiers and display information)
19 // Format: type, name, number, args, special, normal, gentle
21 // Type of notification
22 // Name of notification
23 // ID number of notification
24 // Arguments for sprintf(string, args), if no args needed then use ""
26 // MSG_INFO: NULL/FLOAT: leave as FALSE
27 // MSG_NOTIFY: STRING: icon string name for the hud notify panel, "" if no icon is used
28 // MSG_CENTER: FLOAT: centerprint ID number (CPID_*), FALSE if no CPID is needed
29 // MSG_WEAPON: NULL/FLOAT: leave as FALSE
30 // Normal message (string for sprintf when gentle messages are NOT enabled)
31 // Gentle message (string for sprintf when gentle messages ARE enabled)
33 // Messages have ^FG1, ^FG2, and ^BG in them-- these are replaced
34 // with colors according to the cvars the user has chosen.
36 #define NOTIFICATIONS \
37 NOTIFICATION(MSG_NOTIFY, DEATH_MARBLES_LOST, 1, CLPS3(s1, s2, s3), "notify_death", _("^FG1%s^BG lost their marbles against ^FG1%s^BG using the ^FG2%s^BG\n"), "") \
38 NOTIFICATION(MSG_CENTER, CENTER_CTF_CAPTURESHIELD_SHIELDED, 1, "", CPID_CTF_CAPTURESHIELD, _("^BGYou are now ^FG1shielded^BG from the flag\n^BGfor ^FG2too many unsuccessful attempts^BG to capture.\n\n^BGMake some defensive scores before trying again."), "") \
41 // declare notifications
42 #define NOTIFICATION(type,name,num,args,special,normal,gentle) float name = num;
47 void testingthisshit()
49 print("KILL_FRAG = ", ftos(KILL_FRAG), ".\n");