From 671c05158e0fe78f7bc8c9e2c4ccba7a0f9fcdf7 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 20 Dec 2014 21:46:01 +1100 Subject: [PATCH] Force arc to always play pitch shifted hitsounds for consistency --- qcsrc/client/View.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.2