]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply the same fix to regular doors
authorMario <mario@smbclan.net>
Mon, 26 Oct 2015 00:43:04 +0000 (10:43 +1000)
committerMario <mario@smbclan.net>
Mon, 26 Oct 2015 00:43:04 +0000 (10:43 +1000)
qcsrc/common/triggers/func/door.qc

index 24fc6d64c77bc3d49b62275283c12c5934ed1136..921642406e6d8b357e9a2250e755572ec5fae855 100644 (file)
@@ -316,7 +316,7 @@ void door_touch()
        {
                if (IS_CLIENT(other))
                        centerprint(other, self.owner.message);
-               play2(other, SND(TALK));
+               play2(other, self.owner.noise);
        }
 #endif
 }
@@ -734,6 +734,9 @@ spawnfunc(func_door)
        self.effects |= EF_LOWPRECISION;
        self.classname = "door";
 
+       if(self.noise == "")
+               self.noise = "misc/talk.wav";
+
        self.blocked = door_blocked;
        self.use = door_use;