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 (4 messages, Page 1 of 1)
Moderators: Dennis

EcoSurge
Joined: Apr 1, 2019

Moved to JadeUndead


Posted: Apr 2, 2019 05:16 PM    Msg. 1 of 4       
We can load the vehicle into another custom vehicle based on unit flashlight state.

Edit: Better vid
https://youtu.be/P-b9N8exDUE

Test map:
https://mega.nz/#!9LJ1CawQ!TTeA7mZzZH2nQ0fuomkyLqamspf88WprdpbEUTias5w


(script startup startstuff
(set developer_mode 127)
(sleep 60)
(set playerman0 (unit (list_get (players) 0)))
(object_create g0b)
)


(script static unit g0_driver (vehicle_driver g0))
(script static unit g0b_driver (vehicle_driver g0b))

(script continuous loadinit
(if (!= (unit_get_health (g0b_driver)) -1)
(begin
(recording_play (player0) boost2)
(sleep -1)
)
)
)

(script continuous load
(objects_attach g0 "" g0b "")
(object_data_save_vector g0 transitional_velocity 0)
(if (= (unit_get_current_flashlight_state g0) true)
(begin
(objects_detach g0 g0b)
(vehicle_load_magic g0b "" g0)
(object_data_set_vector g0b transitional_velocity 0)
(object_set_collideable g0b true)
(sleep_until (or (= (unit_get_health (g0_driver)) -1)
(= (unit_get_current_flashlight_state g0b) true)
))
(object_set_collideable g0b false)
(vehicle_unload g0b "")
(object_set_collideable g0 true)

)
)

)

Edited by EcoSurge on Apr 2, 2019 at 05:35 PM


Erutypus
Joined: Jan 1, 2018


Posted: Apr 11, 2019 06:00 AM    Msg. 2 of 4       

Edited by Erutypus on Jun 25, 2019 at 02:48 AM


DeadHamster
Joined: Jun 8, 2014

https://discord.gg/Neu4EJM


Posted: Apr 11, 2019 07:33 AM    Msg. 3 of 4       
Quote: --- Original message by: Erutypus
That's very nice.
Sorry if this is off the subject but have you done anything/programing with single player co-op?


Kirby is our resident HaloMaps wizard, not to discredit this guy in any way. Kirby spent some time looking into it, and my understanding is some of the code for Co-Op was removed from the port by Gearbox. IIRC, The ELI5 end result was that Kirby was able to get a second character but had no way of getting the game to assign a controller to them.


Banshee64
Joined: Dec 4, 2012

oify


Posted: Apr 16, 2019 10:43 AM    Msg. 4 of 4       
Quote: --- Original message by: EcoSurge

We can load the vehicle into another custom vehicle based on unit flashlight state.

Edit: Better vid
https://youtu.be/P-b9N8exDUE

Test map:
https://mega.nz/#!9LJ1CawQ!TTeA7mZzZH2nQ0fuomkyLqamspf88WprdpbEUTias5w


(script startup startstuff
(set developer_mode 127)
(sleep 60)
(set playerman0 (unit (list_get (players) 0)))
(object_create g0b)
)


(script static unit g0_driver (vehicle_driver g0))
(script static unit g0b_driver (vehicle_driver g0b))

(script continuous loadinit
(if (!= (unit_get_health (g0b_driver)) -1)
(begin
(recording_play (player0) boost2)
(sleep -1)
)
)
)

(script continuous load
(objects_attach g0 "" g0b "")
(object_data_save_vector g0 transitional_velocity 0)
(if (= (unit_get_current_flashlight_state g0) true)
(begin
(objects_detach g0 g0b)
(vehicle_load_magic g0b "" g0)
(object_data_set_vector g0b transitional_velocity 0)
(object_set_collideable g0b true)
(sleep_until (or (= (unit_get_health (g0_driver)) -1)
(= (unit_get_current_flashlight_state g0b) true)
))
(object_set_collideable g0b false)
(vehicle_unload g0b "")
(object_set_collideable g0 true)

)
)

)

Edited by EcoSurge on Apr 2, 2019 at 05:35 PM


This is so much better than the other methods I've seen, thanks.

Quote: --- Original message by: DeadHamster
Quote: --- Original message by: Erutypus
That's very nice.
Sorry if this is off the subject but have you done anything/programing with single player co-op?


Kirby is our resident HaloMaps wizard, not to discredit this guy in any way. Kirby spent some time looking into it, and my understanding is some of the code for Co-Op was removed from the port by Gearbox. IIRC, The ELI5 end result was that Kirby was able to get a second character but had no way of getting the game to assign a controller to them.


lol

 

 
Previous Older Thread    Next newer Thread







Time: Thu August 22, 2019 12:00 AM 453 ms.
A Halo Maps Website