From 7174b3fe239d9bf24a6f3808ac4b19a18bf40163 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 26 Oct 2015 10:22:28 +1000 Subject: [PATCH] Allow customizing the sound secret door plays when touched --- qcsrc/common/triggers/func/door_secret.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.2