Sound entities can be heard everywhere in level despite the distance being set
As the title reads. The distance is set and is not covering the whole map. KeepPlayingOutOfRange is set to false in the .snt. STILL it can be heard everywhere.
RE: Sound entities can be heard everywhere in level despite the distance being set
Any sound with "ambient" in the name will play throughout the level regardless of distance from the source. I haven't found a solution to that specific issue, but there's usually a non-ambient version if you're using TDD's sounds.
If it's not ambience, try checking for map_cache files in appdata/roaming. It could be that your settings haven't been updated in-game because of a cache file.
Also definitely post the .snt for Romulator. I'm no expert in this and he'll be able to help you more
RE: Sound entities can be heard everywhere in level despite the distance being set
Here's the content of the .snt. It's an amfp sound that I copied to my isolated full conversion with the goal of making it only heard inside the area I set on the sound entity.
I have double checked my resources.cfg and my mod directory is above the default sound directory so it can't be that the original sound file is loaded. Or can it? xD
RE: Sound entities can be heard everywhere in level despite the distance being set
Alright, this seems to work for some reason. As Newsman Waterpaper above said, you'll need to play around with the Min and MaxDistance. The Min is the distance between the sound's origin and, in Level Editor units*, how far away the sound will be its loudest. The Max Distance is the maximum distance the sound can be heard - at least, until the sound reaches 0 volume. Between Max and Min, the sound will fade depending on distance.
Have a graphic I drew in Paint in a few minutes to show what I mean. This is based on the .snt I have in the code below. Volume can be changed (but 0.8 is pretty loud, since I am pretty sure 1.0 is the cap) and the distances should be changed to suit your environment.
This worked for me - but if it still doesn't work, I'll post my poorly created map for you
*Level Editor units being, the standard sized wall is 4 wide and 4 tall. Therefore, a distance of 20 wide would be about 5 default walls.
Previous Post
Spoiler below!
Since I still cannot figure out exactly why it doesn't adjust itself, are you able to take an approach similar to this?
The idea is this:
- Blue: The Player cannot hear the sound
- Green The Player can hear the sound (it's within the area, but unfortunately, still as loud as the volume (0.8f))
- Red The Sound Location, which is technically still green, since it plays around.
I set up a ScriptArea around the green area, which, when entered and exited, plays and stops the sound respectably using conditionals. The sound plays at a ScriptArea at the end of the corridor.