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 »Postprocess and Scripting

Author Topic: Postprocess and Scripting (2 messages, Page 1 of 1)
Moderators: Dennis

Alexis
Joined: Nov 22, 2010


Posted: Feb 6, 2013 12:21 AM    Msg. 1 of 2       
So,

I am trying to set up CMT's VISr Post process, but I can't seem to figure out how to get it to activate when using the flashlight.

I am pretty sure I have the scenario set up properly since I can for VISr on at all times, or when zoomed etc.

I tried using the scripts included with CMT's tag release, but I get nothing

(script stub unit player0
(unit (list_get (players) 0))
)

(global boolean opensauce_available
(>= ai_debug_path_maximum_radius 2.5)
)

(global boolean visr_allowed true)
(global boolean visr_mode_changed false)
(global boolean visr_on false)
(global boolean visr_triggered false)
(global boolean flashlight_should_be_on false)

(script static boolean flashlight_is_on
(= (unit_get_current_flashlight_state (player0)) 1)
)

(script continuous visr_triggerer
(sleep_until (!= flashlight_should_be_on (flashlight_is_on)) 0)
(set visr_triggered (not visr_triggered))
(set visr_mode_changed (not visr_mode_changed))
(set flashlight_should_be_on (flashlight_is_on))
)

(script static void turn_on_visr
(pp_set_effect_instance_fade 0 0 1 0.05)
(pp_set_effect_instance_fade 1 1 0 0.2)
(pp_set_effect_instance_active 0 1)
(pp_set_effect_instance_active 1 1)
(set visr_on true)
(set flashlight_should_be_on false)
(unit_set_desired_flashlight_state (player0) 0)
)

(script static void turn_off_visr
(pp_set_effect_instance_fade 0 1 0 0.25)
(pp_set_effect_instance_active 1 0)
(set visr_on false)
(set flashlight_should_be_on false)
(unit_set_desired_flashlight_state (player0) 0)
)

(script static void turn_on_flashlight
(set visr_on true)
(set flashlight_should_be_on true)
(unit_set_desired_flashlight_state (player0) 1)
)

(script static void turn_off_flashlight
(set visr_on false)
(set flashlight_should_be_on false)
(unit_set_desired_flashlight_state (player0) 0)
)


Any Help would be appreciated,

Thanks!


game user10
Joined: Dec 9, 2011

Who is the Overseer?


Posted: Feb 10, 2013 10:14 AM    Msg. 2 of 2       
I think you're missing a part of the script, there's nothing calling the "turn_on_visr" script.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 6:28 PM 125 ms.
A Halo Maps Website