From: Samual Lenks Date: Tue, 20 Aug 2013 22:23:45 +0000 (-0400) Subject: Now add support for MULTITEAM_ANNCE X-Git-Tag: xonotic-v0.8.0~341^2~34 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1829340db8cae14dd44fd3546298361ce84ff452;p=xonotic%2Fxonotic-data.pk3dir.git Now add support for MULTITEAM_ANNCE --- diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index 151b49ded..e4a8f69a0 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -195,6 +195,15 @@ void Send_Notification_WOVA( If you send a notification with mismatching arguments, Send_Notification() will error. */ +#define MULTITEAM_ANNCE(default,prefix,teams,channel,sound,volume,position) \ + MSG_ANNCE_NOTIF(default, prefix##RED, channel, sprintf(sound, strtolower(STATIC_NAME_TEAM_1)), volume, position) \ + MSG_ANNCE_NOTIF(default, prefix##BLUE, channel, sprintf(sound, strtolower(STATIC_NAME_TEAM_2)), volume, position) \ + #if teams >= 3 \ + MSG_ANNCE_NOTIF(default, prefix##YELLOW, channel, sprintf(sound, strtolower(STATIC_NAME_TEAM_3)), volume, position) \ + #endif \ + #if teams >= 4 \ + MSG_ANNCE_NOTIF(default, prefix##PINK, channel, sprintf(sound, strtolower(STATIC_NAME_TEAM_4)), volume, position) \ + #endif #define MSG_ANNCE_NOTIFICATIONS \ MSG_ANNCE_NOTIF(1, ANNCE_ACHIEVEMENT_AIRSHOT, CH_INFO, "airshot", VOL_BASEVOICE, ATTN_NONE) \ MSG_ANNCE_NOTIF(1, ANNCE_ACHIEVEMENT_AMAZING, CH_INFO, "amazing", VOL_BASEVOICE, ATTN_NONE) \