Assigning Ambient

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Assigning Ambient

Post by Soviet » August 17th, 2007, 5:54 am

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.
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » August 17th, 2007, 4:32 pm

trigger pressed -> ambientPlay("ambient_mp_carentan");

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » August 17th, 2007, 4:46 pm

Yano wrote:trigger pressed -> ambientPlay("ambient_mp_carentan");
^^^ wtf?

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]

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » August 17th, 2007, 6:08 pm

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

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 17th, 2007, 6:16 pm

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...
Image
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

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » August 17th, 2007, 7:17 pm

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...
i was right? :D

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Post by Soviet » August 17th, 2007, 7:52 pm

will the commands musicplay and musicstop work in cod1? cause that gives me an idea
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 17th, 2007, 11:09 pm

Soviet wrote:will the commands musicplay and musicstop work in cod1? cause that gives me an idea
Dunno.
Image
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

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Post by Soviet » August 17th, 2007, 11:16 pm

well im glad you're so useful drofder, the supposed god of scripting :roll:
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » August 17th, 2007, 11:31 pm

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

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » August 18th, 2007, 3:28 am

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]

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 18th, 2007, 5:03 pm

Soviet wrote:well im glad you're so useful drofder, the supposed god of scripting :roll:
Since when was God required to answer your prayers ;)
Image
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

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Post by Soviet » August 18th, 2007, 5:07 pm

Drofder2004 wrote:
Soviet wrote:well im glad you're so useful drofder, the supposed god of scripting :roll:
Since when was God required to answer your prayers ;)
since god created me, put me on this earth, and told me to pray to him and ask for things :roll:
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 19th, 2007, 2:06 am

Soviet wrote:
Drofder2004 wrote:
Soviet wrote:well im glad you're so useful drofder, the supposed god of scripting :roll:
Since when was God required to answer your prayers ;)
since god created me, put me on this earth, and told me to pray to him and ask for things :roll:
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!
Image
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

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Post by Soviet » August 19th, 2007, 2:30 am

no. die.
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests