X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fnotifications.qh;h=e4a8f69a08d9e365fa7ec1519d898c1ed97ea0a0;hp=151b49ded1486b7d2b8eb21d3ad0a39239ba9b48;hb=1829340db8cae14dd44fd3546298361ce84ff452;hpb=7658be47b16ec12b75fc8e7502dbfdf190649869 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) \