Right click on the 2d side of the editor and find sound/speaker. Place the speaker above the radio. Highlight the speaker and hit key N. Type the following key/value.
Key: noise
Value: sound/music/mus_berlin.mp3
Also click on the little box that says "AMBIENT-ON". Hit key N again to close it, and save your map.
I think that will work.
Last edited by tltrude on Sun May 04, 2003 9:24 am, edited 1 time in total.
Done that tut before for ambients and such and have my background sound working fine...even can get that second sound to play. HOWEVER, being somewhat of an entity/scripting boob, I want to understand how to make that localized sound play. . . Without, hopefully, tweaking the ubersound file. Or, do I need to add a line to it anyway? I want to play a piece of custom music from my radio. I CAN make the radio play certain 'stock' music/sounds, no issue there...just want the custom sound to play and afraid that I have to put a line in the ubersound and then what? Rename it zzzubersound...etc???
1) Place a "script_model" anywhere in your map where you want to hear the sound from and give it:
key: model
value: fx/dummy.tik
&
key: targetname
value: speaker1 (example)
3) For custom sounds create a tiki file and save it in 'main/models/sound/yourdir/..'
The tiki should look something like this:
//////////////////////////////////////////////////////////
TIKI
setup
{
path models/fx/dummy
skelmodel dummy3.skd
}
init
{
server
{
classname ScriptModel
rendereffects +dontdraw
notsolid
}
client
{
settiki none
aliascache youralias sound/yourdir/yoursound.wav soundparms 1.5 0.0 1.0 0.0 300 3000 auto loaded maps "t m dm moh obj train yourbspname"
aliascache morealiases? ... put them here
}
}
animations
{
idle dummy3.skc
}
//////////////////////////////////////////////////////////
4) In the _precache script for your map add the lines..:
'cache models/fx/dummy.tik'
'cache models/sound/yourdir/yourtiki.tik'
.. to load your aliases. I've tested this with custom wav's and it works but only if I added the lines to the _precache. I'm not sure though if this can be done with mp3 files.
My idea of using a speaker to play mp3 music fell through. The speaker will only let you use wav files--click on the sound button in the entity properties window (key N). It would work if you just wanted radio static type sounds.