Sound problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Bromi
Lance Corporal
Posts: 24
Joined: Sun Dec 23, 2007 2:09 pm

Sound problem

Post by Bromi »

i recently installed spearhead and before this my custom sounds worked fine but now they are really low in volume and the radius you can hear them from

heres my script and this is exactly the same as i would do it on mohaa

Code: Select all

main:


local.master = spawn ScriptMaster
local.master aliascache siren sound/amb/siren.mp3 soundparms 10 10 0 0 160 100000 auto loaded maps "m moh dm obj "
local.master aliascache mgburst sound/amb/mgburst.mp3 soundparms 10 10 0 0 160 100000 auto loaded maps "m moh dm obj "
local.master aliascache explosi sound/amb/explo.mp3 soundparms 10 10 0 0 160 100000 auto loaded maps "m moh dm obj "

level waittill prespawn

exec global/ambient.scr test_b

level waittill spawn

wait 2

$spk1 loopsound siren
$spk2 loopsound mgburst
$spk3 loopsound explosi
end
as you can see i made the sound radius huge and the volume but as soon as the player walks a few steps he cant here it and the script origins are placed right next to the player at the start

thanks

[/quote]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I once had the exact same problem. Pantera helped me resolve it. :)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

you want those three sounds looping all the time from spawn? if so make an ubersound file like Pantera shows(caution - sh sound limitation here if exceeded will crash the server).

If you script a trigger for the sounds to be activated for the players the script master thingy will work in SH if you use it to fetch the sound just before it is played.

the second sound param is a random volume - Im not sure how it works but i think you may want to set it to 1 or 2

the max distance may be set way to high - don't exceed nore than half the length of the map - 5000 should work for a very large map
Post Reply