ambient_generic: Make sure speech sentences use the attenuation as defined by the radius.

This commit is contained in:
Marco Cawthorne 2022-05-05 19:18:26 -07:00
parent 665572543f
commit 5e70290017
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 1 additions and 1 deletions

View File

@ -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