A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »sound looping tags help

Author Topic: sound looping tags help (5 messages, Page 1 of 1)
Moderators: Dennis

UnevenElefant5
Joined: May 3, 2008

its been fun yall, i'll never forget this site :')


Posted: Jul 1, 2009 11:15 PM    Msg. 1 of 5       
I'm just wondering if there is a way to make your sound looping tags play a certain sound irregularly. Because I lightning that plays exactly every 4-5 seconds and that doesn't sound too natural. I even tried setting the skip fraction in the sound tag but that didnt help.


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Jul 2, 2009 08:16 AM    Msg. 2 of 5       
Actually, you can. Assuming you want the sound to play either 3, 4, 5 or 6 seconds after the last time it played....




(global short x 0)


(script continuous change
(set x (random_range 3 6)))


(script continuous ocraplightning
(sleep x)
(sound_looping_start "[directory]")
Edited by Polamee on Jul 2, 2009 at 08:17 AM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jul 2, 2009 10:09 AM    Msg. 3 of 5       
Doesn't work. Your script will wait either 3 - 6 seconds, and then start the sound looping. Won't sleep at all.


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Jul 2, 2009 01:24 PM    Msg. 4 of 5       
That script would wait 3 to 6 ticks, not seconds. Also, the script would just restart the looping sound at each interval, not playing the sound once and then waiting until the next interval. And 'sound_looping_start' has 2 arguments after the sound reference.

(script continuous lightning
(sleep (random_range (* 30 [low]) (* 30 [high])))
(sound_impulse_start ".sound path" none 1)
)


Change [low] to the minimum number of seconds between thunder sounds, and change [high] to the max number. It will pick any integers between the two.

You could probably make the minimum interval a little less than the length of your sound tag. This way, you'll occasionally hear thunder overlapping twice for more variety.

Also, you have to refer directly to the .sound tag for the thunder in this script instead of the .sound_looping where it says '.sound path'. This is so that it doesn't start looping the sound after it plays.


UnevenElefant5
Joined: May 3, 2008

its been fun yall, i'll never forget this site :')


Posted: Jul 3, 2009 10:28 AM    Msg. 5 of 5       
Thank you Me KS, it works perfectly :)

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 3:31 AM 500 ms.
A Halo Maps Website