From: bones_was_here Date: Sat, 16 Mar 2024 01:44:59 +0000 (+1000) Subject: Support custom door sounds on QL maps X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5c4b9806def8eaaf9bed8b4e05f88b4e67080764;p=xonotic%2Fxonotic-data.pk3dir.git Support custom door sounds on QL maps --- 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