From: Mario Date: Thu, 14 Jan 2016 14:45:25 +0000 (+1000) Subject: Hopefully temporarily fix player sounds issue X-Git-Tag: xonotic-v0.8.2~1246 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=504ce3314af20a0e541247d314995d842586118e Hopefully temporarily fix player sounds issue --- diff --git a/qcsrc/common/effects/qc/globalsound.qc b/qcsrc/common/effects/qc/globalsound.qc index d895d75c68..02d8756aab 100644 --- a/qcsrc/common/effects/qc/globalsound.qc +++ b/qcsrc/common/effects/qc/globalsound.qc @@ -369,7 +369,13 @@ ? bound(ATTEN_MIN, msg_entity.cvar_cl_voice_directional_taunt_attenuation, \ ATTEN_MAX) \ : ATTEN_NONE; \ - if (gs) globalsound(MSG_ONE, this, gs, r, chan, VOL_BASEVOICE, atten); \ + if (gs) \ + { \ + if(autocvar_g_debug_globalsounds) \ + globalsound(MSG_ONE, this, gs, r, chan, VOL_BASEVOICE, atten); \ + else \ + soundto(MSG_ONE, this, chan, GlobalSound_sample(gs.m_globalsoundstr, r), VOL_BASE, ATTEN_NORM); \ + } \ else if (ps) playersound(MSG_ONE, this, ps, r, chan, VOL_BASEVOICE, atten); \ else soundto(MSG_ONE, this, chan, sample, VOL_BASEVOICE, atten); \ } \