Assigning Ambient
Moderator: Core Staff
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
Assigning Ambient
Nightmare mentioned at one time it was possible to assign ambient to specific parts of the map. I want to do this so I can have different ambient in specifically different parts of the map. Is this possible and if so how would i do it? I know you can just do sounds with a script_origin but i don't want a radial effect.
-
- CJ Worshipper
- Posts: 460
- Joined: May 5th, 2005, 9:34 pm
- Location: Azeroth
- Contact:
-
- Core Staff
- Posts: 2688
- Joined: January 12th, 2006, 10:09 pm
- Contact:
^^^ wtf?Yano wrote:trigger pressed -> ambientPlay("ambient_mp_carentan");
I am pretty sure luke has the answer, because I recall on ultra_gap_training that when you got out of the secret room, the music stopped playing.
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
- Past/Inactive Team Member
- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
That was just a "playloopsound" that only starts when you're within a certain range of it.
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Ambient sound is background noise. If you want certain areas to have sound, just do it the same way as always...
Available sound commands...
ambientplay
ambientstop
iswaitingonsound
musicplay
musicstop
playloopsound
playsound
playsoundasmaster
setsoundblend
soundexists
soundfade
stoploopsound
check the CoD2 documentation for help...
Available sound commands...
ambientplay
ambientstop
iswaitingonsound
musicplay
musicstop
playloopsound
playsound
playsoundasmaster
setsoundblend
soundexists
soundfade
stoploopsound
check the CoD2 documentation for help...

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- CJ Worshipper
- Posts: 460
- Joined: May 5th, 2005, 9:34 pm
- Location: Azeroth
- Contact:
i was right?Drofder2004 wrote:Ambient sound is background noise. If you want certain areas to have sound, just do it the same way as always...
Available sound commands...
ambientplay
ambientstop
iswaitingonsound
musicplay
musicstop
playloopsound
playsound
playsoundasmaster
setsoundblend
soundexists
soundfade
stoploopsound
check the CoD2 documentation for help...

-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
-
- Past/Inactive Team Member
- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
I know some of them don't work in MP. If those ones don't, theres another way of stopping and starting sound. Give it a go
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
-
- Core Staff
- Posts: 2688
- Joined: January 12th, 2006, 10:09 pm
- Contact:
just look in nm_jungle, I have used it a lot.
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Luckily i'm not the same God. And if you believe I am god of scripting, then you better hurry down to the local chapel and repent!Soviet wrote:since god created me, put me on this earth, and told me to pray to him and ask for thingsDrofder2004 wrote:Since when was God required to answer your prayersSoviet wrote:well im glad you're so useful drofder, the supposed god of scripting

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010