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

Home  Search Register  Login Member ListRecent Posts
  
 
Viewing User Profile for: jennamorton
About Contact
Joined: Apr 28, 2020 04:11 AM
Last Post: Apr 28, 2020 04:17 AM
Last Visit: Apr 28, 2020 04:17 AM
Location:
Occupation:
Interests:
Your Age:
What Games do you play:


Send Private Message
Post Statistics
jennamorton has contributed to 1 posts out of 465497 total posts (0.00%) in 28 days (.04 posts per day).

20 Most recent posts:
Halo CE General Discussion » Vehicle Boosting Apr 28, 2020 04:17 AM (Total replies: 2)

Quote: --- Original message by: Jade

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 resume examples

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


This looks pretty cool dude.


Time: Mon May 25, 2020 4:57 PM 172 ms.
A Halo Maps Website