}
entity weapon = GunGame_GetWeapon(level);
STAT(WEAPONS, player) |= weapon.m_wepset;
- centerprint(player, strcat("^3Level ", ftos(level + 1), ": ^2",
- weapon.m_name));
+ Send_Notification(NOTIF_ONE, player, MSG_CENTER, CENTER_GUNGAME_NEW_LEVEL,
+ level + 1, weapon.m_id);
+ Send_Notification(NOTIF_ONE, player, MSG_INFO, INFO_GUNGAME_NEW_LEVEL,
+ level + 1, weapon.m_id);
}
//============================= Hooks ========================================
MSG_INFO_NOTIF(GODMODE_OFF, N_CONSOLE, 0, 1, "f1", "", "", _("^BGGodmode saved you %s units of damage, cheater!"), "")
+ MSG_INFO_NOTIF(GUNGAME_NEW_LEVEL, N_CONSOLE, 0, 2, "f1 item_wepname2", "", "", _("^BGYou are on level %s: ^F1%s"), "")
+
MSG_INFO_NOTIF(ITEM_BUFF, N_CONSOLE, 1, 1, "s1 item_buffname", "", "", _("^BG%s^BG got the %s^BG buff!"), "")
MSG_INFO_NOTIF(ITEM_BUFF_LOST, N_CONSOLE, 1, 1, "s1 item_buffname", "", "", _("^BG%s^BG lost the %s^BG buff!"), "")
MSG_INFO_NOTIF(ITEM_BUFF_DROP, N_CONSOLE, 0, 1, "item_buffname", "", "", _("^BGYou dropped the %s^BG buff!"), "")
MSG_CENTER_NOTIF(FREEZETAG_SELF, N_ENABLE, 0, 0, "", CPID_Null, "0 0", _("^K1You froze yourself"), "")
MSG_CENTER_NOTIF(FREEZETAG_SPAWN_LATE, N_ENABLE, 0, 0, "", CPID_Null, "0 0", _("^K1Round already started, you spawn as frozen"), "")
+ MSG_CENTER_NOTIF(GUNGAME_NEW_LEVEL, N_ENABLE, 0, 2, "f1 item_wepname2", CPID_Null, "0 0", _("^F2Level %s: ^F1%s"), "")
+
MSG_CENTER_NOTIF(INVASION_SUPERMONSTER, N_ENABLE, 1, 0, "s1", CPID_Null, "0 0", _("^K1A %s has arrived!"), "")
MSG_CENTER_NOTIF(ITEM_BUFF_DROP, N_ENABLE, 0, 1, "item_buffname", CPID_ITEM, "item_centime 0", _("^BGYou dropped the %s^BG buff!"), "")
ARG_CASE(ARG_CS_SV, "spree_end", (autocvar_notification_show_sprees ? notif_arg_spree_inf(-1, "", "", f1) : "")) \
ARG_CASE(ARG_CS_SV, "spree_lost", (autocvar_notification_show_sprees ? notif_arg_spree_inf(-2, "", "", f1) : "")) \
ARG_CASE(ARG_CS_SV, "item_wepname", Weapons_from(f1).m_name) \
+ ARG_CASE(ARG_CS_SV, "item_wepname2", Weapons_from(f2).m_name) \
ARG_CASE(ARG_CS_SV, "item_buffname", BUFF_NAME(f1)) \
ARG_CASE(ARG_CS_SV, "f3buffname", BUFF_NAME(f3)) \
ARG_CASE(ARG_CS_SV, "item_wepammo", (s1 != "" ? sprintf(_(" with %s"), s1) : "")) \