]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/target/music.qc
Hack: mute all target_music entities when the match ends (fixes overlapping with...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / music.qc
index 257de8be5708c52bf2a11e1410f7173a179fa53a..ebecb18e317e3da64b8999a4624914722d298a0a 100644 (file)
@@ -33,6 +33,17 @@ void target_music_reset()
        if(self.targetname == "")
                target_music_sendto(MSG_ALL, 1);
 }
+void target_music_kill()
+{
+       for(self = world; (self = find(self, classname, "target_music")); )
+       {
+               self.volume = 0;
+               if(self.targetname == "")
+                       target_music_sendto(MSG_ALL, 1);
+               else
+                       target_music_sendto(MSG_ALL, 0);
+       }
+}
 void target_music_use()
 {
        if(!activator)