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

No ads for members. Membership is 100% free. Sign up!
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.
Sign up to access this!
  • gtamike_TSGK avatar
    gtamike_TSGK username pic Joined 13y ago
    Mapping
    684 points Ranked 43322nd
    19 medals 2 legendary 3 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
    • Reached 1,000 Points Medal icon
    access_time 8y
    **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 11y ago
    Offline
    access_time 11y
    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:
  • Manicmaster07 avatar
    Manicmaster07 Joined 12y ago
    Offline
    access_time 11y
    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 13y ago
    Offline
    access_time 12y
    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 13y ago
    Offline
    49,910 points Ranked 83rd
    21 medals 1 legendary 3 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
    • High Altitude Mapping Contest Entrant Medal icon
    • Reached 1,000 Points Medal icon
    access_time 12y
    Really useful and has some nice colors :). Nice one.
     avatar
    URL to post:
  • Runaway of CSF avatar
    Runaway of CSF Joined 12y ago
    Offline
    336 points Ranked 49810th
    access_time 12y
    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 12y ago
    Community Wizard Ripe Supporter Modboy Manager Admin
    Always Watching
    25,925 points Ranked 195th
    51 medals 8 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
    access_time 12y
    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 12y ago
    Offline
    1,000 points Ranked 30378th
    access_time 12y
    Great tut
    im a pro lawl
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
-tWo-
Unknown

Submitter

-tWo- avatar
-tWo- Joined 12y ago
Offline
34,058 points Ranked 133rd
13 medals 1 rare
  • 6 years a member Medal icon
  • Reached 1,000 Points Medal icon
  • Reached 2,500 Points Medal icon
  • Reached 7,500 Points Medal icon
  • Reached 25,000 Points Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
-tWo-
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Advanced

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 5
  • 17.8k
  • 10
  • 12y
  • 6y

More from Submitter

WiPs by Submitter

More Mapping Tutorials