Custom sound help please

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Stacey

Custom sound help please

Post by Stacey »

Ok ive asked alot of questions now, and im sure im annoying some people but can anyone give me a very very detailed way of getting custom sounds to work in my map which will be a deathmatch map. All total im going to have about 20 sounds. I want to know exactly what to do in Raidient as far as how to target name what to name the Key and Value, and the process after that of anything else i need to do. Im looking for very detailed "how to" for some reason im just not getting it, step by step is what i need. Talk to me like im a dummy please lol. I appreciate the help i have been offered so far, but can anyone do this for me?
bdbodger

custom sounds

Post by bdbodger »

if you want to use custom sounds try this create a tiki file useing notepad or other text editor name it mysounds.tik or whatever it 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 elevator_gate sound/mechanics/Mec_ElevatorGate_03.wav soundparms 1.5 0.0 1.0 0.0 300 3000 auto loaded maps " t m dm moh obj train"

aliascache elevator_start sound/null.wav soundparms 1.5 0.0 1.0 0.0 800 3000 auto loaded maps " t m dm moh obj train"
aliascache elevator_run sound/mechanics/Mec_ElevatorRun_01.wav soundparms 1.5 0.0 1.0 0.0 800 3000 auto loaded maps " t m dm moh obj train"
aliascache elevator_stop sound/null.wav soundparms 1.5 0.0 1.0 0.0 800 3000 auto loaded maps " t m dm moh obj train"



}
}

animations
{
idle dummy3.skc
}
//////////////////////////////////////////////
as an example replace elevator_stop with your alias , the sound/null.wav is the location of the sound in this case the sound directory so you might put this

aliascache mywhatever_sound sound/blabla.wav soundparms 1.5 0.0 1.0 0.0 800 3000 auto loaded maps " t m dm moh obj train"

in your scipt put $targetname playsound mywhatever_sound , then in the precashe script for your map add the line mysounds.tik to load your aliases and don't forget to add your sounds to your *.pk3 if you send your map to friends
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply