Need help making background music loop

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

Moderator: Core Staff

Post Reply
User avatar
Coontang
CJ G0D!
CJ G0D!
Posts: 1797
Joined: March 4th, 2007, 3:48 pm
Location: Painting by numbers

Need help making background music loop

Post by Coontang » June 21st, 2007, 6:45 pm

Hiya, im following the modsonline tutorial to creating ambient sounds looped. Im wanting something simila to that in carentan. I just arent a very good scripter so could someone tell me what i need to do?

Thanks :p
Image
JDogg: 'I have a video of me pissing, wanna see?'

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

Post by Drofder2004 » June 22nd, 2007, 4:00 pm

The background ambient?

ambientPlay("ambient_mp_carentan");
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
Coontang
CJ G0D!
CJ G0D!
Posts: 1797
Joined: March 4th, 2007, 3:48 pm
Location: Painting by numbers

Post by Coontang » June 22nd, 2007, 4:52 pm

is that it , just pop it into the gsc? or do i need to put it in a specific place in the gsc?
Image
JDogg: 'I have a video of me pissing, wanna see?'

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

Post by Luke » June 22nd, 2007, 4:58 pm

Put it in your mapname.gsc, somewhere below main(){

You also need a csv file, create a folder called soundaliases and put the csv in there, then put the folder into your iwd. The .csv should contain something like this:
name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage

#Ambiance,,,,,,,,,,,,,,,,,,,,,,,
amb_yourmapname,,ambient/amb_france03_ext.mp3,0.63,,,,,,,local,streamed,,looping,,yourmapname,,,,,,,,
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php

Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests