Welcome, in this tutorial i'm going to tell you how to change the volume of your 'ambient\_generic' based sounds, even higher than the limit (10)
So, lets get started:
- Get the custom sound(s) you want to use and place them in a folder with the name you want (I recommend the name of your map), in this path: 'C:\Program Files\Steam\steamapps\common\counter-strike source\cstrike\sound' for example.
- Open GCFScape, Open your 'gamename\_dir.vpk' file located in the game's sub folder.
- Navigate to: 'C:\Program Files\Steam\steamapps\common\counter-strike source\cstrike\scripts' for example and download this file, 'game\_sounds.txt'
- Now, open 'game\_sounds.txt' and scroll all the way down.
Take a look at this code:
- Paste this code in the .txt file and replace the \_\_\_\_\_\_\_\_ with the name you want to show up in hammer (give it an easy name, 'galaxy.lasers' in my case).
- Then replace the ~~~~~~~ with the folder you have your sound in ('galaxy' in my case). Make sure you don't mention the 'sounds' folder there.
- Now replace the *** with the name of your sounds ('lasers' in my case)
- You may want to edit the "soundlevel" "SNDLVL\_130dB" entry. But if you don't hear the sound with the volume 10 you shouldn't go lower than 100dB.
Note: Don't go over 150dB.
- How your code should look like now:
- Ok, that's how you tell hammer which file to look for when playing a sound.
Note: You will have to make a similar code entry for every sound you want to edit.
- Now launch Hammer, if your 'game\_sounds.txt' is in the correct folder (*/cstrike/scripts) you should see the sound in the sound browser.
- Add an 'ambient\_generic' entity, and in its properties go to 'Sound Name' and click Browse. Search your sound through the name in the code part('galaxy.lasers' in my case) and select it.
- You should be now able to hear your sound in hammer.
* * *
- For the last part of this tutorial, you have to embed your files so that other people will hear the sounds as well.
- Compile your map the normal way, and then open Pakrat, open your map in it, and click Add.
- Select all the sounds you used and the 'game\_sounds.txt' file, press Open.
- Make sure all the files' paths show up with the 'cstrike' folder as rootfolder (that means it doesn't show up in the name)
- If the path isn't similar to the screenshot's select the related file and press Edit. Change the path name to the correct one.
- After everything is set up correctly, Go to File>Save, and overwrite your .bsp
- You're done. Your 'ambient\_generic' entities are now actually audible.