Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Adjust ambient_generic dB (volume >10) in your map - A Tutorial for Source Engine

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) Needed Software: - Hammer - GCFScape - Pakrat 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:
"\_\_\_\_\_\_\_\_"
{
"channel" "CHAN\_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL\_130dB"
"pitch" "100"
"rndwave"
{
"wave""~~~~~~~/***.wav"
}
}
- 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:
"galaxy.lasers"
{
"channel" "CHAN\_VOICE"
"volume" "1.0"
"soundlevel" "SNDLVL\_130dB"
"pitch" "100"
"rndwave"
{
"wave" "galaxy/lasers.wav"
}
}
- 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.
  • gtamike_TSGK avatar
    gtamike_TSGK username pic Joined 14y ago
    Mapping
    1,373 points Ranked 24,202nd
    24 medals 2 legendary 6 rare
    • 10 years a member Medal icon
    • Became a Ripe Supporter Medal icon
    • 6 years a member Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    • Submitted 15 Mods Medal icon
    10y
    **Pros:** - Very useful! **Notes:** - This is just what I needed to lower my ent % displayed in my map log :D
    HL2DM Source Mapper Since 2007 avatar
    Mantra
    HL2DM Source Mapper Since 2007
    URL to post:
  • Allstarz avatar
    Allstarz Joined 13y ago
    Offline
    13y
    Pros: Very good, well explained tutorial Cons: Screenshots? Although, I done it without the need of screenshots. Notes: Nice tutorial! I realy liked it. Well done!
    WAAAGH!! avatar
    Mantra
    WAAAGH!!
    URL to post:
  • Ok so i downloaded games_sounds.txt and changed it but you said to make sure i put it in the right folder of *cstrike/scripts do you mean back in the GFC file? or just in a regular folder, I Can't find cstrike/scripts in a regular folder but i really need this to work =) thanks *edit nevermind i just made my own folder of cstrike/scripts and i can see my sound in hammer (though i cant hear it?) could it be that my file is way too big? (i made a 5m loop because i couldn't figure out how to just get it to loop =( **something was wrong with the way i saved my file the first time, it works now, thanks two billion for this tut
    Music is life. avatar
    Mantra
    Music is life.
    URL to post:
  • Lazer23 avatar
    Lazer23 Joined 15y ago
    Offline
    14y
    Pros: Excellent Tut Cons: Not enough pics Improvements: More pics. Notes: Very nice. Been looking for something like this... the only problem I had was actually doing it. Could've been the lack of pics. Thanks anyway.
    CS:S2D [GOLD] Mapper
    URL to post:
  • X-tr3m3r avatar
    X-tr3m3r Joined 14y ago
    Offline
    50,066 points Ranked 86th
    25 medals 1 legendary 5 rare
    • 10 years a member Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • 6 years a member Medal icon
    • Submitted 20 Maps Medal icon
    • Submitted 15 Mods Medal icon
    • Submitted 20 Mods Medal icon
    14y
    Really useful and has some nice colors :). Nice one.
     avatar
    URL to post:
  • Runaway of CSF avatar
    Runaway of CSF Joined 14y ago
    Offline
    336 points Ranked 56,448th
    14y
    You can just make more than one ambient_generic, but this looks like it will save time when you need it really loud and you need alot of loud noises.
    God is great, so great. Just a
    URL to post:
  • Mini avatar
    Mini username pic Joined 14y ago
    Community Wizard Ripe Supporter Modboy Manager FNF Manager Admin
    Always Watching
    36,080 points Ranked 140th
    53 medals 9 legendary 10 rare
    • 1st Place - Winter Sprays Contest Medal icon
    • Guardian of the Acid Milk Medal icon
    • Achieved Admin clearance Medal icon
    • Returned 5000 times Medal icon
    • 10 years a member Medal icon
    • 2017 Top Contributor Medal icon
    Mini avatar
    Mini
    Community Wizard
    14y
    Pros: great tut Cons: not much Improvements: more pics
    Sometimes I'm just not sure avatar
    Mantra
    Sometimes I'm just not sure
    URL to post:
  • j0hnnyblarg avatar
    j0hnnyblarg Joined 14y ago
    Offline
    1,000 points Ranked 32,920th
    14y
    Great tut
    im a pro lawl
    URL to post: