From 5e70290017775d423d2eecb893e7c498df0749ef Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Thu, 5 May 2022 19:18:26 -0700 Subject: [PATCH] ambient_generic: Make sure speech sentences use the attenuation as defined by the radius. --- src/gs-entbase/shared/ambient_generic.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gs-entbase/shared/ambient_generic.qc b/src/gs-entbase/shared/ambient_generic.qc index 549dd077..e9a33af4 100644 --- a/src/gs-entbase/shared/ambient_generic.qc +++ b/src/gs-entbase/shared/ambient_generic.qc @@ -318,7 +318,7 @@ void ambient_generic::SentenceSample(string sample) { /* honestly, the 0.25 for the radius is probably inaccurate (winged it), ATTN_NORM is too short though */ - sound(this, CHAN_VOICE, sample, 1.0, 0.25, 100, SOUNDFLAG_FOLLOW); + sound(this, CHAN_VOICE, sample, 1.0, m_flRadius, 100, SOUNDFLAG_FOLLOW); } float