From c787284d1dfdc6191dc2bfc96ddaa2819a94224f Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 5 Dec 2015 14:36:43 +1000 Subject: [PATCH] Use a temporary hack to hide the jump sound issue --- qcsrc/common/effects/qc/globalsound.qc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/effects/qc/globalsound.qc b/qcsrc/common/effects/qc/globalsound.qc index 4b38615f6..6e0e461f2 100644 --- a/qcsrc/common/effects/qc/globalsound.qc +++ b/qcsrc/common/effects/qc/globalsound.qc @@ -296,6 +296,8 @@ #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; @@ -402,7 +404,13 @@ } 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); } -- 2.39.2