The_Caretaker kindly explains how to add ambient sounds to your map
Adding Ambient sound tutorialby The Caretaker
As many of you might have noticed, the ambient sounds are not working when you copy them from for instance mp_carentan. That's because, in the stock csv files the ambient aliases are limited to the stock MP maps only.
This tutorial will show you how to add ambient sounds to your map. This tutorial works for SP as wel, just alter the name of the map and put the .gsc and .d3dbsp file in the /maps folder instead.
We'll be using the same soundfile as mp_carentan and the map will be named "mp_mapname", so you'll have to alter this to your own mapname and the soundfile you prefer.
1) In your mp_mapname.gsc file, located in the maps/mp folder add
ambientPlay("ambient_mp_mapname"); to the main() function
So it should look something like this:
main() { maps\mp\_load::main();
// set background ambient noise ambientPlay("ambient_mp_mapname");
// Soldier settings etc.. //... }
Save it.
2) Now for the .csv file.
Make a folder called "soundaliases" in your /main folder. Inside this folder make a new text document. Open this document and put the following lines in there: