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 »Arbiter style Active Camo

Author Topic: Arbiter style Active Camo (15 messages, Page 1 of 1)
Moderators: Dennis

Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Nov 2, 2010 03:20 AM    Msg. 1 of 15       
Can someone please help me with a script for arbiter style active camo???

(script continuous dascript
(if ( player activates flashlight)
engage active camo
(sleep 180)
(disengage active_camo)



Is something along the lines of what I need

Thanks


Mythril
-
Screenshot Guru
-
Joined: Mar 29, 2008

Jeffrey Albert Waldo


Posted: Nov 2, 2010 04:07 AM    Msg. 2 of 15       
As far as I know, that script won't work. I recall once that the method to achieve such active camo is to create an active camo powerup, name it, say, 'camo', and then use a script to detect when the player turns on the flashlight. When said player does, attach the powerup 'camo' to the player, hence creating such an effect.

I'm not quite sure about the scripting though - you'll have to figure that out yourself and/or with other members.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Nov 2, 2010 04:23 AM    Msg. 3 of 15       
Quote: --- Original message by: Muscl3r

(script continuous dascript
(if ( player activates flashlight)
engage active camo
(sleep 180)
(disengage active_camo)



Is something along the lines of what I need


Thank you i was thinking about that. Can someone please help with the script?


Sinow
Joined: Apr 22, 2009

Everybody Lies


Posted: Nov 2, 2010 09:51 PM    Msg. 4 of 15       
I have tried before, it isnt exactly like in H2 but along the same lines.

1. Make a new .equipment tag or mod the current Active Camo equipment and set the powerup time (located at the bottom) to 0.1 seconds and delete the sound directory so you dont constantly hear the powerup. Next, get in the map via Sapien, somewhere the player cant pick it up normally, and call it camo.

2. Compile this script

(script continuous camo
(if (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) 1)
(begin
(object_create_anew camo)
(objects_attach (list_get (players) 0) จจ camo จจ)
(objects_detach (list_get (players) 0) camo)))
(sleep 3))

This script checks every 0.1 seconds if the flashlight is on. If so, it applies a 0.1 second long active camo. Lather rinse repeat.
Then again this might not be accurate as I cannot test this ingame atm (the script is correct, though).
Edited by Sinow on Nov 2, 2010 at 09:53 PM


Co1t3r
Joined: Dec 13, 2008


Posted: Nov 2, 2010 10:42 PM    Msg. 5 of 15       
Quote: --- Original message by: Sinow

I have tried before, it isnt exactly like in H2 but along the same lines.

1. Make a new .equipment tag or mod the current Active Camo equipment and set the powerup time (located at the bottom) to 0.1 seconds and delete the sound directory so you dont constantly hear the powerup. Next, get in the map via Sapien, somewhere the player cant pick it up normally, and call it camo.

2. Compile this script

(script continuous camo
(sleep_until (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) 1)
(begin
(object_create_anew camo)
(objects_attach (list_get (players) 0) จจ camo จจ)
(objects_detach (list_get (players) 0) camo))
(sleep 180)
)
)


This script checks every 0.1 seconds if the flashlight is on. If so, it applies a 0.1 second long active camo. Lather rinse repeat.
Then again this might not be accurate as I cannot test this ingame atm (the script is correct, though).
Edited by Sinow on Nov 2, 2010 at 09:53 PM

Did a few adjustments.


Sinow
Joined: Apr 22, 2009

Everybody Lies


Posted: Nov 2, 2010 10:46 PM    Msg. 6 of 15       
Quote: --- Original message by: Co1t3r
Did a few adjustments.


Thanks, cant type very well with this keyboard.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Nov 5, 2010 04:48 AM    Msg. 7 of 15       
So that script would only give me 0.1 secs of active camo? Or would the active camo go for the normal amount of time an active camo goes for. I'm guessing the second one.


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Nov 5, 2010 08:31 AM    Msg. 8 of 15       
It basically teleports an active camouflage equipment to the player and detaches it, giving the player a seemingly "instant" active camouflage. All you are really doing is picking up an active camouflage like any other time, except it happens to be right where you are. So yes, regular time.


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Nov 5, 2010 10:15 AM    Msg. 9 of 15       
In addition to Grunt's script, amke sure that you go into each weapon tag that's in the map, and change the active camo revealing setting (Pretty sure it's called Active Camo ding) Make it so if you fire the weapon at all, the regrowth time is the recharge time in seconds.
Edited by SlappyThePirate on Nov 5, 2010 at 10:15 AM


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Nov 6, 2010 10:46 PM    Msg. 10 of 15       
okay thanks guys. I will make the active camo only last around about 5 t0 7 seconds


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Nov 7, 2010 05:51 AM    Msg. 11 of 15       
Wait, how do you change the run time for a powerup?


Co1t3r
Joined: Dec 13, 2008


Posted: Nov 7, 2010 11:18 AM    Msg. 12 of 15       
Powerup functionality is hard-coded.


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Nov 8, 2010 03:16 AM    Msg. 13 of 15       
I have already set it to five seconds but have decided to raise it to 7 seconds. But here's the problem:

Every five seconds, if the flashlight is active, the script will spit out another active camo. So essentially u have unlimited active camo while the light is active but everyone can see you cos the flashlight is blasting at their face

Which tag do i need to edit to set the flashlight to only be active for 1 second?


MoooseGuy
Joined: Aug 10, 2008

I Approve This Message.


Posted: Nov 8, 2010 05:16 AM    Msg. 14 of 15       
(script continuous camo
(sleep_until (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) 1)
(begin
(object_create_anew camo)
(objects_attach (list_get (players) 0) จจ camo จจ)
(objects_detach (list_get (players) 0) camo))
(sleep 30)
(units_set_desired_flashlight_state (players) false)
)
)

Added the command.
Edited by MoooseGuy on Nov 8, 2010 at 05:17 AM


Muscl3r
Joined: May 22, 2010

dont pray 4 easy lives...pray to be STRONGER MEN


Posted: Nov 9, 2010 05:22 AM    Msg. 15 of 15       
thank you everyone

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 1:43 PM 140 ms.
A Halo Maps Website