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 »Got bored, thought up this script

Author Topic: Got bored, thought up this script (2 messages, Page 1 of 1)
Moderators: Dennis

Co1t3r
Joined: Dec 13, 2008


Posted: Feb 8, 2010 10:59 PM    Msg. 1 of 2       
I decided to make a script which would immitate that powerup in H3 where you are invincible for a short period of time. I would tune it up a bit with HUD messages when I try to ingame it.
(global boolean hasPowerup false)
(script continuous Invincible
(if (hasPowerup)
(begin=
(object_cannot_take_damage (list_get players 0))
(sleep 400)
(set hasPowerup false)
)
(begin=
((object_can_take_damage (list_get players 0))
)
)
)

I probably messed up somewhere so... GAMMA!
I can probably get it to work for things such as cammo or overshield, or possibly a powerup unique to custom edition. Almost my bedtime, though, so I'll try to get this up and running tomorrow.
Edited by colter13 on Feb 8, 2010 at 10:59 PM


chrisk123999
Joined: Aug 10, 2008

=CE= Chris [Captain] [=]


Posted: Feb 9, 2010 09:05 AM    Msg. 2 of 2       
Quote: --- Original message by: colter13

I decided to make a script which would immitate that powerup in H3 where you are invincible for a short period of time. I would tune it up a bit with HUD messages when I try to ingame it.
(global boolean hasPowerup false)
(script continuous Invincible
(if (= hasPowerup 1)
(begin
(object_cannot_take_damage (list_get players 0 ) )
(sleep 400)
(set hasPowerup false)
(object_can_take_damage (list_get players 0 ) )
)
)
)

I probably messed up somewhere so... GAMMA!
I can probably get it to work for things such as cammo or overshield, or possibly a powerup unique to custom edition. Almost my bedtime, though, so I'll try to get this up and running tomorrow.
Edited by colter13 on Feb 8, 2010 at 10:59 PM


FTFY
Edited by chrisk123999 on Feb 9, 2010 at 09:06 AM

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 10:28 AM 141 ms.
A Halo Maps Website