Post tutorial Report RSS Adding Custom sound into a hl2 map

hey guys this tutorial is for people who want to add custom sounds to there source game map

Posted by on - Basic Mapping/Technical

This is not hard to do just bare with me
CONTENT FROM Facepunch.com
SIX SIDED GAMING OR ZOMBIE SURVIVAL TEAM DID NOT MAKE THIS


In this tutorial I will show you how to put custom sounds into hammer and then to ingame.


What you will need.

.A sound, i recommend using newground's audio portal to find them.

Newgrounds.com

.A music editing program audicity is the best free one.

Audacity.sourceforge.net


The tutorial

First of all download a track or rip it from a CD.

Watch out for this!


Now open up audicty or any other music editing program you are using.

Select file, open and open the music.

Edit it to how you want and select file, export as wav.

  1. Go to my computer
  2. Local disk C:)
  3. Program files
  4. Steam
  5. Steamapps
  6. Yourusername
  7. Half life 2
  8. Hl2
  9. Sound

Go to my computer
Local disk C:)
Program files
Steam
Steamapps
Yourusername
Half life 2
Hl2
Sound
Then create a file with the name of your map.

Now open up hammer.

Choose your map and then go to the place you want your music. Go to the
entitities tab and find Ambient_generic. Place one where you want it on
your map.

Double click it to open it up.

Give it a name.

Then click sound name, then browse.

Find your sound and click preview to test if it's working. If it is not, revise the steps.

Click Ok, then apply. Other options are neccesary such as volume and
start volume but i will leave you to figure that our for yourself.

Click ok when your ready to go on.

This ambient_sound won't activate by itself so you will have to set up
a trigger to do so. Make a normal sized brush with the nodraw texture
applied to it.

Click on on and do CTRL + T.

Select the brush as trigger_once or Trigger_mutliple depending on your
choice. Trigger multiple can be activated many times but trigger once
can only be done once.

After selecting that, give the trigger a name such as musictrigger. Click apply.

Click on outputs and do the following.

Click add. Put these options in, where it says "music" put your ambient_generic's name in.

Click apply.

You are done. But only for now, the next part of the tutorial will show
you how to get it into garrys mod without any extra folders.


Getting it ingame

What you will need.

.Pakrat Geocities.com


When ready compile your map.

Install pakrat and open the javascript.

  1. Go to my computer
  2. Local disk C:)
  3. Program files
  4. Steam
  5. Steamapps
  6. Yourusername
  7. Half life 2
  8. Hl2
  9. Maps

Go to my computer
Local disk C:)
Program files
Steam
Steamapps
Yourusername
Half life 2
Hl2
Maps
And open up the .bsp of your map.

It will look something like this.

Now click on add and find your sound folder.

  1. Go to my computer
  2. Local disk C:)
  3. Program files
  4. Steam
  5. Steamapps
  6. Yourusername
  7. Half life 2
  8. Hl2
  9. Sound

Go to my computer
Local disk C:)
Program files
Steam
Steamapps
Yourusername
Half life 2
Hl2
Sound
Select the sound and click yes to all.

When all the sounds you want are in there click file, save bsp.
And there you go guys BTW i did not make this here is the original link
Facepunch.com

Post comment Comments
FLAPJACKDAN
FLAPJACKDAN

Its nice to meet a fellow facepuncher also thank you so much I needed this.

Reply Good karma Bad karma+2 votes
lebofly Author
lebofly

lol np

Reply Good karma+1 vote
Xirius
Xirius

Woaw Thank you for this great tutorial !

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: