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 General Discussion »Vehicle Boosting

Author Topic: Vehicle Boosting (2 messages, Page 1 of 1)
Moderators: Dennis

Jade
Joined: Jan 19, 2020


Posted: Mar 11, 2020 02:18 AM    Msg. 1 of 2       
Rewrote my old vehicle boosting stuff. Works on any vehicle, even ones you spawn in. Also works online but I only set that up for two players at the moment. Will post updates here. Map should be loaded with the map_name command.



(script static unit grabvehicle0 (unit (player_data_get_object 0 nearest_object)))
(script static unit grabvehicle1 (unit (player_data_get_object 1 nearest_object)))
(script static unit grabvehicle2 (unit (player_data_get_object 2 nearest_object)))
(script static unit grabvehicle3 (unit (player_data_get_object 3 nearest_object)))
(script static unit grabvehicle4 (unit (player_data_get_object 4 nearest_object)))
(script static unit grabvehicle5 (unit (player_data_get_object 5 nearest_object)))
(script static unit grabvehicle6 (unit (player_data_get_object 6 nearest_object)))
(script static unit grabvehicle7 (unit (player_data_get_object 7 nearest_object)))
(script static unit grabvehicle8 (unit (player_data_get_object 8 nearest_object)))
(script static unit grabvehicle9 (unit (player_data_get_object 9 nearest_object)))
(script static unit grabvehicle10 (unit (player_data_get_object 10 nearest_object)))
(script static unit grabvehicle11 (unit (player_data_get_object 11 nearest_object)))
(script static unit grabvehicle12 (unit (player_data_get_object 12 nearest_object)))
(script static unit grabvehicle13 (unit (player_data_get_object 13 nearest_object)))
(script static unit grabvehicle14 (unit (player_data_get_object 14 nearest_object)))
(script static unit grabvehicle15 (unit (player_data_get_object 15 nearest_object)))

(global unit grabvehicle0a (unit (player_data_get_object 0 nearest_object)))
(global unit grabvehicle1a (unit (player_data_get_object 1 nearest_object)))

(script static unit grabvehicle0driver (vehicle_driver grabvehicle0a))
(script static unit grabvehicle1driver (vehicle_driver grabvehicle1a))

(script continuous vehicle_boost
(if (!= (unit_get_health (grabvehicle0)) -1)
(begin
(set grabvehicle0a (grabvehicle0))
)
)

(if (!= (unit_get_health (grabvehicle1)) -1)
(begin
(set grabvehicle1a (grabvehicle1))
)
)

(if (and (= (unit_get_current_flashlight_state grabvehicle0a) true)
(!= (unit_get_health (grabvehicle0driver)) -1)
)
(begin
(object_data_set_real grabvehicle0a transitional_velocity x (/ (object_data_get_real grabvehicle0a forward x) 2.75))
(object_data_set_real grabvehicle0a transitional_velocity y (/ (object_data_get_real grabvehicle0a forward y) 2.75))

(if (or (> (object_data_get_real grabvehicle0a transitional_velocity z) 0.08)
(< (object_data_get_real grabvehicle0a transitional_velocity z) -0.08)
)
(begin
(unit_set_desired_flashlight_state grabvehicle0a 0)
(sleep 90)
(unit_set_desired_flashlight_state grabvehicle0a 0)
)
)
)
)

(if (and (= (unit_get_current_flashlight_state grabvehicle1a) true)
(!= (unit_get_health (grabvehicle1driver)) -1)
)
(begin
(object_data_set_real grabvehicle1a transitional_velocity x (/ (object_data_get_real grabvehicle1a forward x) 2.75))
(object_data_set_real grabvehicle1a transitional_velocity y (/ (object_data_get_real grabvehicle1a forward y) 2.75))
(if (or (> (object_data_get_real grabvehicle1a transitional_velocity z) 0.08)
(< (object_data_get_real grabvehicle1a transitional_velocity z) -0.08)
)
(begin
(unit_set_desired_flashlight_state grabvehicle1a 0)
(sleep 90)
(unit_set_desired_flashlight_state grabvehicle1a 0)
)
)
)
)


(if (= (unit_get_health (grabvehicle0driver)) -1)
(begin
(unit_set_desired_flashlight_state grabvehicle0a 0)
)
)
(if (= (unit_get_health (grabvehicle1driver)) -1)
(begin
(unit_set_desired_flashlight_state grabvehicle1a 0)
)
)

)


https://www.youtube.com/watch?v=ebPv4PAHcKY

Download the test map here:
https://drive.google.com/open?id=1UEwHnWF9vzQjMua74FSF9wSd8A8IDNI0
Edited by Jade on Mar 11, 2020 at 02:21 AM


Halo CE Noob Modder117
Joined: Aug 9, 2018

Can we just be friends? Chill my dudes...


Posted: Mar 13, 2020 07:19 PM    Msg. 2 of 2       
Although I like the idea of adding the newer Halo features to the older games. I don't know, CE has a form of uniqueness the way it is.

Anyway, does this require OS? Just a formality, it seems that just about anything that's made for CE these days requires OS everything.

Cool work.

 

 
Previous Older Thread    Next newer Thread







Time: Sat April 4, 2020 10:08 AM 297 ms.
A Halo Maps Website