Tuesday, August 23, 2011

How to add sound in your map

Most people don't add sound in their map. But to make a truly immersive experience, adding sound is very important. This tutorial will teach you how to add sound in your map in easy steps.

  First, place an ambient_generic entity by using the entity tool on the left side of the screen. Select the entity and go to its properties. The dialog box will look like this:

  You can add the name of the file. This will make it triggerable by other entities. Leave it as blank for now.
Go to "path/filename wav of WAV" and select the sound file to play. You will be able to bowse the cstrike/sound folder. If you want to add a custom sound file, paste the sound file to the sound folder. Volume tells the entity how loudly the sound will play. Leave the other options to default. Now go to flags and click on "play everywhere". The rest of the options are self explainable.

Compile the map and check it out. The sound will play at the starting. I will post more about looping sound later.

2 comments:

  1. To add to this tutorial, the .wav file you add must be Mono, not stereo. I struggled getting the sound work even when i followed these instructions but mono was the key to victory.

    ReplyDelete
  2. Hmm...
    Never knew this restriction on goldsrc. Thanks for letting me know.

    ReplyDelete

Post your views here