Page 1 of 2

MP Sound

Posted: July 26th, 2006, 1:21 am
by creator
how do i add music to my map?
what i need to make in my radiant

i got the script i know how to modifie it
i know where my sound need to be
but what i got to place in the radiant?

trig_multiple

targetname
key: soundname ?

Posted: July 26th, 2006, 2:43 am
by creator
C_Jumps almost done
BSB size: 3,328 KB at the moment
PK3 Size: 1,355 KB
no sound yet..
i think its going to be release it soon.
still need to add music to finish room hope some 1 can help.

Posted: July 26th, 2006, 4:19 am
by red_gee

Posted: July 26th, 2006, 1:18 pm
by creator
k looking...

Posted: July 26th, 2006, 1:25 pm
by creator
there is nothing on it that can help....
:(
i need to put my own sound in my map
not effect sounds.

and i want for CoD1
not UO

Posted: July 26th, 2006, 3:09 pm
by Drofder2004

Posted: July 26th, 2006, 4:12 pm
by red_gee
Sry, it said Cod at the top of the page, I figured if it was UO it would have been under the UO page

Posted: July 26th, 2006, 4:29 pm
by Luke
same commands to play sounds in cod, uo or cod 2.

Posted: July 27th, 2006, 11:11 pm
by creator
wel..
i dont know what im doing wrong.
but im doing something wrong..
luke can u help me here?
can u make me a little script and tell me what to do in my radiant
or ofcourse drofder :roll:

Posted: July 28th, 2006, 12:16 am
by Luke
i dont know what im doing wrong
I don't know what you're doing to say what you're doing wrong, post your gsc, explain what you've done, and have you created the all important .CSV file?

Posted: July 28th, 2006, 1:13 pm
by creator
well..
actuly i only got .CSV file..
cause i dont know what to make in the game
and my gsc script don't work.

Posted: July 28th, 2006, 6:11 pm
by creator
i try'd those stuff from modsonline
but it isnt working...
can just some 1 help me tell me here what to do?
and maybe post a good script that works
come on i want to finish C_jumps :?

Posted: July 28th, 2006, 6:39 pm
by Luke
This method plays the sound so that only the player that triggers it will hear it. The only mapping needed is to make a trigger:

Code: Select all

test()
{
trig = getent("trig","targetname");  //your trigger name
while (1)
{
trig waittill ("trigger",user); 
user playlocalsound("yoursound"); //replace yoursound with the alias name in your csv file
wait 5; //change wait time to the length of sound or longer
}
}
Make sure your sound file is in .wav format, and is mono (1 channel)

Posted: July 29th, 2006, 12:21 am
by creator
Luke wrote: Make sure your sound file is in .wav format, and is mono (1 channel)
and how i do that and look if its 1 channel m8?
o and i like ur avatar :)

and is this the good csv ?

Code: Select all

null,1,null.wav,,,,,,,,,,,,,


#Custom sound aliases,,,,,,,,,,,,,,,

c_sound,,misc/test.wav,1,1,,,600,600,auto,,,nonlooping,,,
in sounds/misc the sound = test.wav

so this be the proper code?

Code: Select all

test()
{
trig = getent("trig","sound_trig");  //your trigger name
while (1)
{
trig waittill ("trigger",user);
user playlocalsound("c_sound"); //replace yoursound with the alias name in your csv file
wait 5; //change wait time to the length of sound or longer
}
}
or this

Code: Select all

user playlocalsound("test")
thanks for helping me luke 8)

Posted: July 29th, 2006, 12:41 am
by Luke
and how i do that and look if its 1 channel m8?
Right click on the .wav file, go to properties and click the summary tab.

Not sure about your csv, it might be correct, but i've always used Microsoft excell to edit these files, and I don't know if the number of commas inbetween is important.
so this be the proper code?

Code:

Code: Select all

test()
{
trig = getent("trig","sound_trig");  //your trigger name
while (1)
{
trig waittill ("trigger",user);
user playlocalsound("c_sound"); //replace yoursound with the alias name in your csv file
wait 5; //change wait time to the length of sound or longer
}
}
or this

Code:

Code: Select all

user playlocalsound("test")
the word "test" i just used as the thread name, it has nothing to do with the name of the sound file, and not related to it.
In your csv your sound alias is "c_sound"
so your script should be

Code: Select all

user playlocalsound("c_sound")