From 3907523c81eaec5f88025ec885f0a796447799f5 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 24 Apr 2013 05:22:49 +1000 Subject: [PATCH] Play an alarm sound when a powerful monster spawns --- qcsrc/server/mutators/gamemode_towerdefense.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/mutators/gamemode_towerdefense.qc b/qcsrc/server/mutators/gamemode_towerdefense.qc index c7c906af1..2b2684546 100644 --- a/qcsrc/server/mutators/gamemode_towerdefense.qc +++ b/qcsrc/server/mutators/gamemode_towerdefense.qc @@ -326,7 +326,10 @@ void buffturret (entity tur, float buff) void AnnounceSpawn(string anounce) { + entity e; Send_Notification(NOTIF_ALL, world, MSG_CENTER, CENTER_TD_ANNOUNCE_SPAWN, anounce); + + FOR_EACH_REALCLIENT(e) soundto(MSG_ONE, e, CHAN_AUTO, "kh/alarm.wav", VOL_BASE, ATTN_NONE); } entity PickSpawn (float strngth, float type) -- 2.39.2