What would be the easiest way to trigger a sound from script that is heard by everyone in the map, regardless of where they are located? I looked in tow_dm.scr as I think the final countdown of the bomb is heard by everyone, but I didn't understand what made it heard by everyone. Do I need to get into tikis or ubersound? I found a lot of great info here in the forum, but I'm not sure which approach to use or how to make it heard by all.
Thanks for your help!
Sysquik
Easiest way to trigger a sound that can be heard by all?
Moderator: Moderators
Sound
Is it a custom sound, or one that is in the game already? Also, is it a wav or mp3?
Solution! Script contained
Thanks for your response jv_map. Here's the script:
Thanks to your excellent tut, I have the problem solved. I just set the min value to 10000 which should be larger than my map. What if I did just want to edit the ubersound.scr, how would I make MOHAA use the ubersound.scr in my pak file instead of the standard one in MOHAA?
Thanks again for all your help!
SySquik
Code: Select all
main:
exec global/ambient.scr
level waittill prespawn
local.master = spawn ScriptMaster
local.master aliascache snd_river sound/amb/Amb_RainWindow_01.wav soundparms 1.0 0.2 1.0 0.2 10000 2000 auto loaded maps "obj dm"
level waittill spawn
thread sound
end
sound:
while (1)
{
$sound_trigger waittill trigger
$river_sound loopsound snd_river
iprintln "Sound Triggered"
}
end
Thanks again for all your help!
SySquik
Re: Solution! Script contained
Simply make sure the filename of your pak has a later order in the alphabet than the stock paks. For instance prefix a 'z' (or moresysQuik wrote:What if I did just want to edit the ubersound.scr, how would I make MOHAA use the ubersound.scr in my pak file instead of the standard one in MOHAA?
Like: zzzysquick.pk3

