]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use a temporary hack to hide the jump sound issue
authorMario <mario@smbclan.net>
Sat, 5 Dec 2015 04:36:43 +0000 (14:36 +1000)
committerMario <mario@smbclan.net>
Sat, 5 Dec 2015 04:36:43 +0000 (14:36 +1000)
qcsrc/common/effects/qc/globalsound.qc

index 4b38615f6ef40592aa457ed2d810ddac56f2e626..6e0e461f2b8e707ce776ec07b57e964efe3be9d4 100644 (file)
 
        #ifdef SVQC
 
+               bool autocvar_g_debug_globalsounds;
+
                void _GlobalSound(entity this, entity gs, entity ps, string sample, int chan, int voicetype, bool fake)
                {
                        if (gs == NULL && ps == NULL && sample == "") return;
                                        }
                                        else
                                        {
-                                               if (gs) globalsound(MSG_ALL, this, gs, r, chan, VOL_BASE, ATTEN_NORM);
+                                               if (gs)
+                                               {
+                                                       if(autocvar_g_debug_globalsounds)
+                                                               globalsound(MSG_ALL, this, gs, r, chan, VOL_BASE, ATTEN_NORM);
+                                                       else
+                                                               _sound(this, chan, GlobalSound_sample(gs.m_globalsoundstr, r), VOL_BASE, ATTEN_NORM);
+                                               }
                                                else if (ps) playersound(MSG_ALL, this, ps, r, chan, VOL_BASE, ATTEN_NORM);
                                                else _sound(this, chan, sample, VOL_BASE, ATTEN_NORM);
                                        }