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 »warthog help

Author Topic: warthog help (4 messages, Page 1 of 1)
Moderators: Dennis

john117
Joined: Jul 3, 2012

What fun is there in making sense?


Posted: Aug 31, 2012 01:58 PM    Msg. 1 of 4       
hello i was wondering how do you get music to play in a vehicle.
if you can help me thank you


XlzQwerty1
Joined: Aug 6, 2009


Posted: Aug 31, 2012 06:43 PM    Msg. 2 of 4       
Quote: --- Original message by: aLTis
Add new attachment with sound looping (music) and use function headlights or something like that.


nihao123456ftw
Joined: Mar 24, 2012


Posted: Sep 3, 2012 09:34 PM    Msg. 3 of 4       
@final444h I think this will work better:

• Point <sound> to the .sound of the music tags

• Name your warthog anything and put that name in the <name> parts and compile this script:


(script dormant playlist
(sound_impulse_start <sound> <name or just "none"> 1)
)

(script continuous warthog_music
(if
(= (vehicle_test_seat_list <name> w-driver (players)) true)
(sound_impulse_stop <sound>)
(wake playlist)
(sleep_until (= (sound_impulse_time <sound>) 0))
)


In fact I don't see any harm in just:


(script continuous warthog_music
(if
(= (vehicle_test_seat_list <name> w-driver (players)) true)
(sound_impulse_stop <sound>)
(sound_impulse_start <sound> <name or just "none"> 1)
(sleep_until (= (sound_impulse_time <sound>) 0))
)


If you have just 1 single hog. For multiple hogs though you could do

[code(script continuous warthog_music
(if
(=
(or
(vehicle_test_seat_list <name> w-driver (players))
(vehicle_test_seat_list <name of second vehicle> w-driver (players))
(vehicle_test_seat_list <name of third vehicle, copypaste this for every vehicle> w-driver (players))
)
true)
(sound_impulse_stop <sound>)
(sound_impulse_start <sound> none 1)
(sleep_until (= (sound_impulse_time <sound>) 0))
)

Edited by nihao123456ftw on Sep 3, 2012 at 09:41 PM


XlzQwerty1
Joined: Aug 6, 2009


Posted: Sep 3, 2012 09:51 PM    Msg. 4 of 4       
Honestly, I don't see the point in using scripts when this can be achieved without scripts simply by adding a sound looping to the vehicle attachments scaled by the engine so that whenever the engine is running, the sound starts playing. With this method, the sound will also fade in when you get into the vehicle and fade out when you exit.

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 11:03 PM 110 ms.
A Halo Maps Website