Search
Username:
Password:
Register or Reset Password
Remove the ads!
Triggering Sounds in your Map
Difficulty: Intermediate
Category: CS:S > MappingAuthor(s): SGT_kick_ur_ass

Okay so you've probably read my last tutorial on Adding Sound but you weren't sure how to use your sound because it doesn't loop right? Well this tutorial will show you how to use the sounds that don't loop and how to make it so that they only play when you reach a certain part of the map.

Start off by opening your map and using the entity tool (Image Hosted by ImageShack.us) add in the entity ambient_generic.

I just made a quick example map, in this map the sound will play when the player goes through the doorway.

Free Image Hosting at www.ImageShack.us

Yours can be different, it doesn't really matter because it's all the same thing when it comes to setting it up.

Now open up your ambient_generic entity and you should see the following

Free Image Hosting at www.ImageShack.us

Go ahead and give it a name, I called it sound, you can call it whatever you want as long as it has a name because you will need it.

Now move on to the Sound Name Option and search for a sound file. My door will have a bell sound when the player walks through it so I filtered the word Bell.

Free Image Hosting at www.ImageShack.us

The other options should stay the same, there isn't really a need in changing them.

Now move onto the Flags Tab that's at the top. You should notice that there are 2 options selected, well unlike my last tutorial, these you should keep the same because the sound doesn't loop, and you don't want it playing when the map starts, you want it to be triggered.

Free Image Hosting at www.ImageShack.us

You can now close the ambient_generic properties window because we don't need it anymore, we are done for this part.

Now onto setting up the trigger. This is pretty simple once you get the hang of it.

Create your trigger brush and use the tools/toolstrigger texture for it. Place it where you want the sound to trigger, so for my map I'll be placing it in the center of the doorway.

Free Image Hosting at www.ImageShack.us

Now this is what you need to choose on your own. There are 2 entities that you can tie this brush to but each are different. If you want the sound to trigger only once, then use the entity trigger_once. If you want it to trigger each time you go though the door, then use the entity trigger_multiple. In this tutorial I'll be using trigger_multiple, but you can use trigger_once if you want because the set up is the exact same.

So, tie the brush to trigger_multiple or trigger_once and open up the properties menu. Go ahead and give it a name.

Free Image Hosting at www.ImageShack.us

That's the only thing we have to do there, no move on to the Outputs Tab, clickAdd and key in the following:

My Output Named: OnTrigger
Targets Entities Named: sound or the name you gave the ambient_generic
Via This Input: PlaySound

It should look something like this:

Free Image Hosting at www.ImageShack.us

You're done! Now just compile and test it ingame, if you used a Trigger_multiple you should notice that it plays each time you go through the trigger. If you use a trigger_once it will only play once.


If you have any Questions, please do not hesitate to ask me, I am willing to help.
Example Map
www.halflifestorm.com
Half Life Storm Studio

Added: 2 years agoTags: triggering, sounds, your
Feedback (9)
Etnies .
BannedY2M
Posted 7 months ago
Do you know a tut that shows you how to put your own sounds in hammer to use?
- Banned
jaketwo_91 .
Y2M
Posted 2 years ago
Oooh, nice tut... if i get into mapping ill use this for sure :)
.
Y2M
Posted 2 years ago
Nice tut
WaterWar .
Finding a needle in a stack of needlesY2M
Posted 2 years ago
Godlike tut! :) Nice done!
Keysor_Sozer_JR .
Keys unlock many things. ^.^Y2M
Posted 2 years ago
Great. Nothing that i can say that is wrong with this.
- Keys unlock many things. ^.^
.
I'm selling these fine leather jackets!Y2M
Posted 2 years ago
Excellent, A tut just when I needed one!
.
www.ww-multigaming.deY2M
Posted 2 years ago
Very nice !!!
.
Back from Jamaca and it FREAKIN COLDHEREY2M
Posted 2 years ago
YAY I've been waiting for this:D
:
Cake Or Death?Y2M
Posted 2 years ago
Think I'm going to be using a lot of these, or at least the soundscapes
- Cake Or Death?
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
9.6/10
bScore
9.6/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
Helpful & Handy
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Brought to you by...
Half Life Storm
The Mappers Corner!
Membership: On Request
Primary Skills: Compiling, Mapping, Modelling, Motion Graphics, Texturing, UV Mapping
Inception: 3 years ago
Vote for Studio
Like this tut? Vote Half Life Storm for one or more monthly awards.
You must login or register to access this!
Related Tutorials