soundaliases help

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

Moderator: Core Staff

Post Reply
nukem
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: March 3rd, 2012, 5:46 pm
Gamertag: o DRYSPOON o
PSN ID: dryspoon

soundaliases help

Post by nukem » March 3rd, 2012, 6:08 pm

Hi im having some trouble getting a sound file to play ,i wondered if anyone could please help

im making a zombie map 3rd so far :D and i have added planes that fly over which is all well and good but i cannot get the sound working this is the gsc im using and the csv soundaliases i also have the wav file for this

Code: Select all

//// maps\planes::main(); ////add this to main in gsc mapname  below maps\_zombiemode::main() \\\\\\\\\

main() 
{ 

level thread planes(); 
} 

planes() 
{ 
level.PlaneSpeed = 2.5; 

stuka1 = getent ("stuka1","targetname"); 
stuka2 = getent ("stuka2","targetname"); 
stuka3 = getent ("stuka3","targetname"); 

temp = getent (stuka1.target,"targetname"); 
stuka1.dest = temp.origin; 
stuka1.start = stuka1.origin; 
stuka1 hide(); 
temp = getent (stuka2.target,"targetname"); 
stuka2.dest = temp.origin; 
stuka2.start = stuka2.origin; 
stuka2 hide(); 
temp = getent (stuka3.target,"targetname"); 
stuka3.dest = temp.origin; 
stuka3.start = stuka3.origin; 
stuka3 hide(); 

wait 2; 

while (1) 
{ 
stuka1 thread plane_flyby("stuka_flyby"); 
wait .15; 
stuka2 thread plane_flyby("stuka_flyby"); 
wait .15; 
stuka3 thread plane_flyby("stuka_flyby"); 

wait 60; 
} 
} 


plane_flyby(sound) 
{ 
// If you specified a sound to play then play it 
if (isdefined (sound)) 
self playsound (sound); 

wait 15; 

self show(); 

self moveto(self.dest, level.PlaneSpeed, 0.1, 0.1); 

wait level.PlaneSpeed; 

self hide(); 
self.origin = self.start; 
} 

[code]name,sequence,file,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle 
null,,null.wav,,,,,,,,,,,,, 

#Tank sounds,,,,,,,,,,,,,,, 
stuka_flyby,,vehicles/stuka_by02.wav,1.25,,,,100000,,,,,,,, 
if some one could talk me through the set up of the sounds it would be greatly appreciated ,thanks nukem
heres a little vid of the map in a early stage http://www.youtube.com/watch?v=dHZn3UgjpF8
nazi_zombie_lagops
nazi_zombie_waterworks
nazi_zombie_airport

Nekoneko
CJ Fan
CJ Fan
Posts: 170
Joined: April 18th, 2011, 3:48 pm

Re: soundaliases help

Post by Nekoneko » March 4th, 2012, 12:20 am

is there any error?
and what zombie mod is this?

nukem
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: March 3rd, 2012, 5:46 pm
Gamertag: o DRYSPOON o
PSN ID: dryspoon

Re: soundaliases help

Post by nukem » March 4th, 2012, 1:42 am

hi thanks for your reply
i get an error on compile > error sound file 'sound/vehicles/stuka_by02.wav' not found

i have the wav file and have put in root>raw>sound>sfx>vehicles>plane i put a copy of the wav in all the files in vehicles and added a file called stuka but still same error ?

the mod im using is the zct mw mod (zombie chicken taco with modern weapons) as im using this im not building fast files in my mod as im using theres from zct mod
nazi_zombie_lagops
nazi_zombie_waterworks
nazi_zombie_airport

Nekoneko
CJ Fan
CJ Fan
Posts: 170
Joined: April 18th, 2011, 3:48 pm

Re: soundaliases help

Post by Nekoneko » March 4th, 2012, 12:53 pm

I didnt realize this was cod waw

Try putting the .wav file exactly in
root>raw>sound>vehicles

nukem
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: March 3rd, 2012, 5:46 pm
Gamertag: o DRYSPOON o
PSN ID: dryspoon

Re: soundaliases help

Post by nukem » March 4th, 2012, 3:13 pm

haha it worked :D the compiler even told me the path it was looking for the file at god im such a noob

thanks for your help very much appreciated
nazi_zombie_lagops
nazi_zombie_waterworks
nazi_zombie_airport

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests