Adjust ambient_generic dB (volume >10) in your map

Credits

Submitter
  • P4: Worker
    Points: 33,745
  • E1: Helper
    EF: 10
  • C1: Member
  • A5: Veteran
    Account Age: 4 years
-tWo- (Creator/Co-creator)
Key Authors
-tWo-

Rating

9.7/10
Based off 5 rating(s)

Additional Info

Genre
Mapping
Difficulty Level
Advanced

Stats

Post Count
10
ViewCount
2,900
Date Added
4 years ago
Date Modified
6 months ago

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)

I've learnt how to do this on my own, I had this problem myself... I couldn't make my sounds loud enough because the volume limit was 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*****\counter-strike source\cstrike\sound'

-Open GCFScape, Open your 'counter-strike source shared.gcf' file located in your '*steamapps' folder.

-Navigate to: 'C:\Program Files\Steam\steamapps*****\counter-strike source\cstrike\scripts' and download this file, 'game_sounds.txt'

-Now, open 'game_sounds.txt' and scroll all the way down. Take a look at this code:

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 dont 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 dont hear the sound with the volume 10 you shouldnt go lower than 100dB.

Note: Dont go over 150dB.

-How your code should look like now:

Code"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 'gamesounds.txt' is in the correct folder (*/cstrike/scripts) you should see the sound in the sound browser. -Add an 'ambientgeneric' 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 isnt 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.

  • You must be a member

Comments

    • P1: Beggar
      Points: 833
    • C1: Member
    • A5: Veteran
      Account Age: 5 years

    Pros:

    • Very useful!

    Notes:

    • This is just what I needed to lower my ent % displayed in my map log :D
    Mapper
    • C1: Member
    • A4: Graduate
      Account Age: 3 years

    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!!
    • P1: Beggar
      Points: 80
    • C1: Member
    • A4: Graduate
      Account Age: 3 years

    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.
    • P1: Beggar
      Points: 98
    • C1: Member
    • A5: Veteran
      Account Age: 5 years

    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
    • P4: Worker
      Points: 56,171
    • E2: Guide
      EF: 38
    • C1: Member
    • A5: Veteran
      Account Age: 5 years

    Really useful and has some nice colors :). Nice one.

    No it's not "tr3m3r"
    • P1: Beggar
      Points: 356
    • E1: Helper
      EF: 3
    • C1: Member
    • A5: Veteran
      Account Age: 4 years

    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
    • P1: Beggar
      Points: 85
    • E3: Tutor
      EF: 43
    • C3: Moderator
    • A5: Veteran
      Account Age: 4 years
    Mini

    Pros: great tut Cons: not much Improvements: more pics

    Minecraft!
    • P1: Beggar
      Points: 1
    • C1: Member
    • A5: Veteran
      Account Age: 4 years

    Great tut

    im a pro lawl
  • You must be a member