From: Mario Date: Mon, 26 Oct 2015 00:22:28 +0000 (+1000) Subject: Allow customizing the sound secret door plays when touched X-Git-Tag: xonotic-v0.8.2~1792 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7174b3fe239d9bf24a6f3808ac4b19a18bf40163;p=xonotic%2Fxonotic-data.pk3dir.git Allow customizing the sound secret door plays when touched --- diff --git a/qcsrc/common/triggers/func/door_secret.qc b/qcsrc/common/triggers/func/door_secret.qc index 8686c671f..ac7361951 100644 --- a/qcsrc/common/triggers/func/door_secret.qc +++ b/qcsrc/common/triggers/func/door_secret.qc @@ -161,7 +161,7 @@ void secret_touch() { if (IS_CLIENT(other)) centerprint(other, self.message); - play2(other, SND(TALK)); + play2(other, self.noise); } } @@ -210,6 +210,9 @@ spawnfunc(func_door_secret) return; self.effects |= EF_LOWPRECISION; + if(self.noise == "") + self.noise = "misc/talk.wav"; + self.touch = secret_touch; self.blocked = secret_blocked; self.speed = 50;