Ambient Sound

Tutorial collection, comprehensive listings on main site.

Postby Spartan on Fri Jun 03, 2005 4:24 am

For anyone who has problems getting sounds to play again during the next round in CSS there is an easy solution. Give all the sounds the same name. Then create a trigger at both spawn areas that will trigger the sounds at the beginning of each round.
Spartan
Veteran
Veteran
 
Joined: Sat Oct 09, 2004 2:58 pm

Postby Pureferret on Mon Jun 13, 2005 12:37 pm

I have two ambient sounds, at full volume, trigered bt a logic_auto. No sound. This is in Hl2DM.
Pureferret
Member
Member
 
Joined: Mon Jun 13, 2005 12:35 pm

im so confused

Postby Panda on Sun Jun 26, 2005 2:28 am

:!: can some1 pm me and tell me exactly how to trigger it i cant find anything i got trigger multiple but i probly set it up wrong and need help ..... im trying to loop rainsound through the rounds but cant plz pm me :twisted:




:-D
User avatar
Panda
Member
Member
 
Joined: Sun Jun 26, 2005 2:16 am

Postby slayera on Sun Jun 26, 2005 4:08 am

Well, I an not PM you, just posting here to help other noobs.

Make a bush over you spawn area.
Texture it with the trigger tool.
Make it an entity (ctrl-t) and select Trigger_once.
While still in the entity's properties select the output tab.
Set to OnTigger, your sound's name, and Playsound.

On the ambient generic properties, name your sound, make sure it matches the name in the targeted entity in the tigger, it should be bold if you setup right.

Now, when the 2nd round start you should hear your sound play, because the player will instantly set the trigger.
Image


"When one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." -Robert Pirsig
User avatar
slayera
Veteran
Veteran
 
Joined: Wed Dec 08, 2004 3:15 am
Location: Near the world's only super volcano.

dsfsdfsd

Postby Panda on Sun Jun 26, 2005 8:32 pm

i just dont get it.... i have tried all the things i can with trigger_once and got jsut 1 round ...( this is for CSS if that makes a difference)
User avatar
Panda
Member
Member
 
Joined: Sun Jun 26, 2005 2:16 am

Postby Yaminoxi on Mon Aug 08, 2005 3:58 pm

^ tell me about it Ive spent so many hours doing tuts n compiling just to get sound working in CSS its not funny, and NOTHING works ffs. :D :evil:
The next thing I do I rush through so I can do the next thing.
Yaminoxi
Member
Member
 
Joined: Sat Jul 09, 2005 1:52 am
Location: Gosford, NSW, Australia

Postby Opheliar on Thu Nov 17, 2005 4:03 pm

how do i add music? is there a tutorial?
Opheliar
Dumpling
Dumpling
 
Joined: Wed Nov 16, 2005 9:27 pm

Postby Opheliar on Sat Nov 19, 2005 12:43 pm

How do i add music? WITH AN AMBIENT SOUND?
Opheliar
Dumpling
Dumpling
 
Joined: Wed Nov 16, 2005 9:27 pm

Postby KILLA-COW on Sat Nov 19, 2005 12:57 pm

Logic_auto will also start it each time the map loads

Onmapstart
sound1
play
KILLA-COW
Veteran
Veteran
 
Joined: Sun Jun 12, 2005 1:37 pm
Location: The Island of britania!

Postby OVERLROD on Fri Dec 09, 2005 8:30 pm

How can you make the ambient_generic to STFU!? It playes perfectly normaly when it's triggerd by a button (Opens door, a_generic makes the door's moveing sound) but it also stays on forever. T ried thiggering it to stop by putting a few sec time delay on the swich/button, I made an output saying it to stop when te door is fully opened or closed, I even tried using logic_timer! It just won't STFU! :x
User avatar
OVERLROD
Been Here A While
Been Here A While
 
Joined: Thu Nov 10, 2005 11:43 am
Location: Slovenia

Postby dead7iest-weap0n on Sun Apr 02, 2006 5:00 am

ok, I have one sound assigned to play all throughout my map, and another that is in a small area. The one in the small area does not play. :( I set it to a trigger, and it still dosent work.
edit: hmm, it seems that my sounds dont work if I uncheck play everywhere.
dead7iest-weap0n
Member
Member
 
Joined: Sun Apr 02, 2006 4:47 am

Postby sawo on Tue Jun 27, 2006 11:36 pm

Loopin sounds in CSS :
open your windows clock window(or use watch or whatever u want)

play your sound from the ambient_generic and count how many seconds it will play once(for example my ambient/levels/canals/windmill_wind_loop1.wav is ~12 seconds)

Now make logic_auto
Goto refire interval and set the length of your sound file(if the length is 12 seconds then type 12)
Now go to outputs and add new one:
Output name: OnTimer
Target entity: the name of your ambient_generic
Via input: PlaySound
-
Now u have looping sounds in css :)
*If you want to be more precise, extract the sound from the GCF with GCFScape(use google to find it) then play the wav with winamp or some other sound player and check the exact length of the sound file and type it in the Refire interval key in the logic_auto
-
if you still have problems - 217864911 or msn sawo_1337@hotmail.com
-GL & HF ;-)
User avatar
sawo
Been Here A While
Been Here A While
 
Joined: Thu Jun 22, 2006 9:40 am
Location: Bulgaria

Postby ZipIce on Sun Mar 18, 2007 10:25 pm

Panda wrote:i just dont get it.... i have tried all the things i can with trigger_once and got jsut 1 round ...( this is for CSS if that makes a difference)

I found that just using an auto_logic with the outputs in cs:s works well, example:
auto_logic
--------Outputs Tab---------------
My output name: onNewGame
Targets Entities Name:(ambient_sound name)
Via this input: PlaySound
Delay: 2.50 seconds (recommend delay x >= 1)
-------------------
ambient_generic
-------Flags------
Play Everywhere: (optional)
Start Silent: checked
Is NOT Looped: (optional)
--------------------------

This will activate looping or non looping sounds every round with a delay. Though if you want it to activate at different areas, you should follow what others said and use triggers.
ZipIce
Just Joined
Just Joined
 
Joined: Sun Mar 18, 2007 10:14 pm

Re: Ambient Sound

Postby mikes852 on Sat Apr 25, 2009 5:34 am

i want the sound to play when the user triggers it by walking into a trigger zone. but the sound just plays in the start whether im in the trigger zone or not. i tried using a trigger_multiple box and added the sound as an output to PlaySound OnTrigger.start silent is ticked and its not looped and does not play everywhere.
User avatar
mikes852
Member
Member
 
Joined: Mon Apr 13, 2009 1:55 pm
Previous

Return to Tutorials

Who is online

Users browsing this forum: No registered users