]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Support custom door sounds on QL maps
authorbones_was_here <bones_was_here@xonotic.au>
Sat, 16 Mar 2024 01:44:59 +0000 (11:44 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Wed, 17 Apr 2024 14:49:33 +0000 (00:49 +1000)
qcsrc/common/mapobjects/func/door.qc

index ba2e53d27d027c2a01bbcd38736fec993665b60b..f24bdb45b53cc69635f204bbcc2f4e38d4158225 100644 (file)
@@ -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