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 »Active camouflage connected to the flashlight?

Author Topic: Active camouflage connected to the flashlight? (4 messages, Page 1 of 1)
Moderators: Dennis

Joined: Dec 18, 2018

F Neil Kahn

Posted: Mar 26, 2019 11:57 AM    Msg. 1 of 4       
Tell how to do it for the altheros maps

Joined: Jun 8, 2014


Posted: Mar 27, 2019 12:08 AM    Msg. 2 of 4       
Well, to attach the active camo to the flashlight, you would use this;

(script static unit P0 (unit (list_get (players) 0)))

(script static void connection

(objects_attach (unit_data_get_object P0 weapon0) "flashlight" <EQUIPMENT_NAME> "")


Now, whenever you run the command connection it'll attach the active camo to your flashlight. Not sure why you'd ever want to do that though. What's a lot cooler than that is replacing the flashlight function with the active camouflage effect like Halo 2 does for Elites. To do that is something like this;

(global short FRS 0)
(global long timer 0)
(global short camo_time 0)

(script startup Time_Set

((= easy (game_difficulty_get_real))
(set camo_time 10)
((= normal (game_difficulty_get_real))
(set camo_time 8)
((= hard (game_difficulty_get_real))
(set camo_time 6)
((= impossible (game_difficulty_get_real))
(set camo_time 4)


(script static unit P0 (unit (list_get (players) 0)))

(script continuous flashlight

(sleep_until (= 1 (unit_data_get_real P0 integrated_light_power)) 5)
(unit_data_set_real P0 integrated_light_power 0)
(if (= 0 FRS)
(set FRS 1)
(set FRS 0)

(script continuous camo

(sleep_until (= 1 FRS) 5)
(unit_data_set_real P0 camo_power 1)
(set timer game_time)
(sleep_until (or (= 0 FRS)(< camo_time (/ (- game_time timer) 30)))
(set FRS 0)
(unit_data_set_real P0 camo_power 0)
(sleep 450)


See, that waits for the user to turn on the flashlight. It turns the flashlight back off, and then sets the player's active camo on. After a set amount of time that varies based on the current difficulty setting, the camo wears off. Alternatively, the user can press the flashlight button again at any time to deactivate it. Either way, once it's worn off it'll take 15 seconds to "recharge" and be usable again.

See, that's much more interesting than just attaching the active camo powerup to the player's weapon's flashlight. That's just dumb, like what were you gonna accomplish by that?

See? Pretty stupid really. My idea is much better, you should go with that instead.

Joined: Jul 20, 2010

Humble thyself and hold thy tongue.

Posted: Mar 27, 2019 01:32 AM    Msg. 3 of 4       
I appreciate the effort that was put into the graphical aid.

The Gravemind
Joined: Jul 26, 2016

I Am The Monument To All Your Sins

Posted: Mar 27, 2019 11:14 PM    Msg. 4 of 4       
Quote: --- Original message by: Echo77
I appreciate the effort that was put into the graphical aid.

I do too.


Previous Older Thread    Next newer Thread

Time: Mon February 17, 2020 8:06 PM 187 ms.
A Halo Maps Website