From: TimePath Date: Sat, 20 Dec 2014 10:46:01 +0000 (+1100) Subject: Force arc to always play pitch shifted hitsounds for consistency X-Git-Tag: xonotic-v0.8.0~51^2~1 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=671c05158e0fe78f7bc8c9e2c4ccba7a0f9fcdf7 Force arc to always play pitch shifted hitsounds for consistency --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index bec4f9e3fd..0eacfb7f33 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -449,7 +449,9 @@ void UpdateHitsound() // varying sound pitch static float hitsound_time_prev = 0; - if (COMPARE_INCREASING(time, hitsound_time_prev) > autocvar_cl_hitsound_antispam_time) + // HACK: the only way to get the arc to sound consistent with pitch shift is to ignore cl_hitsound_antispam_time + float arc_hack = activeweapon == WEP_ARC && autocvar_cl_hitsound >= 2; + if (arc_hack || COMPARE_INCREASING(time, hitsound_time_prev) > autocvar_cl_hitsound_antispam_time) { if (autocvar_cl_hitsound && unaccounted_damage) {