custom sound not work

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
tsensor
Sergeant
Posts: 52
Joined: Wed Feb 11, 2004 1:25 pm

custom sound not work

Post by tsensor »

hi

I am trying to add some custom sounds.

i saw tut in this homepage, and i followed that exactly

i recorded helicopter sound from site using recording program. i saved sound file to 18_heli.wav


heres the script i am using:


main:

local.master = spawn ScriptMaster

local.master aliascache 18_heli sound/amb/18_heli.wav soundparms 1.0 0.2 1.0 0.2 200 2000 auto loaded maps "obj dm"

thread mover1_mover

level waittill spawn

end

//--
// mover1_mover
//--
mover1_mover:
wait 1
$speaker1 loopsound 18_heli

end





i never hear sound
never!
never!!!!!!!!!!!!!!!!!!!!!!!!!!!

but...when i changed soundfile in original game
example, below:


main:

local.master = spawn ScriptMaster

local.master aliascache Amb_RainRoof_02 sound/amb/Amb_RainRoof_02.wav soundparms 1.0 0.2 1.0 0.2 200 2000 auto loaded maps "obj dm"

thread mover1_mover

level waittill spawn

end

//--
// mover1_mover
//--
mover1_mover:
wait 1
$speaker1 loopsound Amb_RainRoof_02

end



successful.........
i heared sound(Amb_RainRoof_02)

i can play sound file in original game. but i cant play sound my own custom sound file.

i have to insert helicopter sound to my helicopter map
please help me please
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

try this

Post by tltrude »

Did you try renaming the wav file. I don't know if it will work with a number at the start of the name. Also, there are different types of wav files and yours may not be the right type for the game. It should give an error in the console, if that is the case.
Tom Trude,

Image
Post Reply