- Jun 27, 2010
- 14
- 0
So, I've now been desperately trying to implement a sound in my map that would play from a location with a desired attenuation. Since just pointing at my soundfile with an "ambient_generic" only resulted in the sound being played too loud right next to the source but already inaudible two meters away, I knew I had to make a soundscript.
Problem is, I have no clue where to put the piece of code, so that it can be played through the ambient_generic. I tried putting it into a file that is "maps/<mapname>_level_sounds.txt", like advised in the Valve Developer Wiki, but that doesn't work for me at all. And I'm just not sure about whether it wouldn't cause problems when putting an edited "game_sounds", or "game_sounds_manifest" into my final bsp file.
Does anyone has an idea how to solve this?
Problem is, I have no clue where to put the piece of code, so that it can be played through the ambient_generic. I tried putting it into a file that is "maps/<mapname>_level_sounds.txt", like advised in the Valve Developer Wiki, but that doesn't work for me at all. And I'm just not sure about whether it wouldn't cause problems when putting an edited "game_sounds", or "game_sounds_manifest" into my final bsp file.
Does anyone has an idea how to solve this?