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 »Halo 2\3 Health system

Author Topic: Halo 2\3 Health system (4 messages, Page 1 of 1)
Moderators: Dennis

Xoronatus
Joined: Dec 6, 2010

Taking a break


Posted: Jun 15, 2011 11:51 PM    Msg. 1 of 4       
You know how in Halo 2 and 3, health automatically recharges, and you don't need health packs. Is this possible in CE, which I'm almost certain it is. Does it involve complex scripts?


The Cereal Killer
Joined: Mar 18, 2011

Scripts, AI, cutscenes, ui_widgets, animation.


Posted: Jun 16, 2011 03:00 PM    Msg. 2 of 4       
It does involve complex scripts if you wish it to recharge slowly. If you just mean to have it recharge immediately when your shield recharges then that's no problem at all. I'd be happy to share my scripts either way, just say which method you prefer.


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Jun 16, 2011 03:02 PM    Msg. 3 of 4       
(global short number 0)

(script static "unit" player
(unit (list_get (players) number))
)

(script continuous healing
(unit_set_current_vitality (player) (+ (* (unit_get_health (player)) 75) 2) (* (unit_get_shield (player)) 75))
(if (< number 15) (set number (+ number 1)) (set number 0))
)

The number scales where for the default Halo 1 Mastercheif. It recovers 2 health per run of the script, it should be about 4 health recovered every second (out of 75)


Xoronatus
Joined: Dec 6, 2010

Taking a break


Posted: Jun 16, 2011 09:12 PM    Msg. 4 of 4       
So I can just paste this:
(global short number 0)

(script static "unit" player
(unit (list_get (players) number))
)

(script continuous healing
(unit_set_current_vitality (player) (+ (* (unit_get_health (player)) 75) 2) (* (unit_get_shield (player)) 75))
(if (< number 15) (set number (+ number 1)) (set number 0))
)

and have some nice h2 health?

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 12:25 AM 421 ms.
A Halo Maps Website