From 5c4b9806def8eaaf9bed8b4e05f88b4e67080764 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sat, 16 Mar 2024 11:44:59 +1000 Subject: [PATCH] Support custom door sounds on QL maps --- qcsrc/common/mapobjects/func/door.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/common/mapobjects/func/door.qc b/qcsrc/common/mapobjects/func/door.qc index ba2e53d27..f24bdb45b 100644 --- a/qcsrc/common/mapobjects/func/door.qc +++ b/qcsrc/common/mapobjects/func/door.qc @@ -683,6 +683,10 @@ void door_init_shared(entity this) string s = GetField_fullspawndata(this, "sound_start", true); string e = GetField_fullspawndata(this, "sound_end", true); + // Quake Live adds these ones, because of course it had to be different from CPMA + if (!s) s = GetField_fullspawndata(this, "startsound", true); + if (!e) e = GetField_fullspawndata(this, "endsound", true); + if (s) this.noise2 = strzone(s); else -- 2.39.2