
Z T Requiem
Joined: Jul 10, 2014
Spar...10(tan)?!?
|
Posted: Oct 2, 2014 11:33 PM
Msg. 1 of 6
Like H3 Foundry. When I got hurt, I can restore the health automaticly if no one shoot me in a short time.
|
|
|

not giraffe
Joined: Jul 17, 2014
|
Posted: Oct 3, 2014 03:23 AM
Msg. 2 of 6
First fix the stretching in your avatar. It's such an eyesore.
|
|
|

Z T Requiem
Joined: Jul 10, 2014
Spar...10(tan)?!?
|
Posted: Oct 3, 2014 05:30 AM
Msg. 3 of 6
Quote: --- Original message by: raffgie First fix the stretching in your avatar. It's such an eyesore. LOL, I think it's funny. The fat MasterChief.
|
|
|

StormUndBlackbird
Joined: Oct 27, 2011
https://youtube.com/StormUndBlackbird
|
Posted: Oct 3, 2014 08:16 AM
Msg. 4 of 6
|
|
|

Specop75
Joined: Nov 20, 2012
|
Posted: Oct 3, 2014 08:42 AM
Msg. 5 of 6
Here are 2 ways using scripts, they will however break the overshield:
--FILLS HEALTH AFTER SHIELD REFILLED:
(script continuous health_regen (sleep_until (and (< (unit_get_health (unit (list_get (players) 0))) 1) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 175)) )
--((( THE NUMBER 1 in: (sleep_until (and (< (unit_get_health (unit (list_get (players) 0))) 1) CAN BE CHANGED TO DEFINE THE MAX HEALTH REFILL (0.5,0.3...)
--FILLS HEALTH IN 5 STAGES (REACH STYLE):
(global "boolean" can_regen_stage1 true ) (global "boolean" can_regen_stage2 true ) (global "boolean" can_regen_stage3 true ) (global "boolean" can_regen_stage4 true )
(script continuous health_refilled (sleep_until (>= (unit_get_health (unit (list_get (players) 0))) 1)) (set can_regen_stage1 true) (set can_regen_stage2 true) (set can_regen_stage3 true) (set can_regen_stage4 true) )
(script continuous health_regen__stage1 (sleep_until can_regen_stage1 1 ) (sleep_until (and (>= (unit_get_health (unit (list_get (players) 0))) 0.8) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage2 (sleep_until can_regen_stage2 1 ) (sleep_until (and (and (< (unit_get_health (unit (list_get (players) 0))) 0.8) (>= (unit_get_health (unit (list_get (players) 0))) 0.6) ) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage1 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage3 (sleep_until can_regen_stage3 1 ) (sleep_until (and (and (< (unit_get_health (unit (list_get (players) 0))) 0.6) (>= (unit_get_health (unit (list_get (players) 0))) 0.4) ) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage2 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage4 (sleep_until can_regen_stage4 1 ) (sleep_until (and (and (< (unit_get_health (unit (list_get (players) 0))) 0.4) (>= (unit_get_health (unit (list_get (players) 0))) 0.2) ) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage3 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage5 (sleep_until (and (< (unit_get_health (unit (list_get (players) 0))) 0.2) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage4 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
|
|
|

Z T Requiem
Joined: Jul 10, 2014
Spar...10(tan)?!?
|
Posted: Oct 3, 2014 09:02 PM
Msg. 6 of 6
Quote: --- Original message by: Specop75 Here are 2 ways using scripts, they will however break the overshield:
--FILLS HEALTH AFTER SHIELD REFILLED:
(script continuous health_regen (sleep_until (and (< (unit_get_health (unit (list_get (players) 0))) 1) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 175)) )
--((( THE NUMBER 1 in: (sleep_until (and (< (unit_get_health (unit (list_get (players) 0))) 1) CAN BE CHANGED TO DEFINE THE MAX HEALTH REFILL (0.5,0.3...)
--FILLS HEALTH IN 5 STAGES (REACH STYLE):
(global "boolean" can_regen_stage1 true ) (global "boolean" can_regen_stage2 true ) (global "boolean" can_regen_stage3 true ) (global "boolean" can_regen_stage4 true )
(script continuous health_refilled (sleep_until (>= (unit_get_health (unit (list_get (players) 0))) 1)) (set can_regen_stage1 true) (set can_regen_stage2 true) (set can_regen_stage3 true) (set can_regen_stage4 true) )
(script continuous health_regen__stage1 (sleep_until can_regen_stage1 1 ) (sleep_until (and (>= (unit_get_health (unit (list_get (players) 0))) 0.8) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage2 (sleep_until can_regen_stage2 1 ) (sleep_until (and (and (< (unit_get_health (unit (list_get (players) 0))) 0.8) (>= (unit_get_health (unit (list_get (players) 0))) 0.6) ) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage1 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage3 (sleep_until can_regen_stage3 1 ) (sleep_until (and (and (< (unit_get_health (unit (list_get (players) 0))) 0.6) (>= (unit_get_health (unit (list_get (players) 0))) 0.4) ) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage2 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage4 (sleep_until can_regen_stage4 1 ) (sleep_until (and (and (< (unit_get_health (unit (list_get (players) 0))) 0.4) (>= (unit_get_health (unit (list_get (players) 0))) 0.2) ) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage3 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) )
(script continuous health_regen_stage5 (sleep_until (and (< (unit_get_health (unit (list_get (players) 0))) 0.2) (>= (unit_get_shield (unit (list_get (players) 0))) 1))) (set can_regen_stage4 false) (sleep 18) (unit_set_current_vitality (unit (list_get (players) 0)) (+ (* (unit_get_health (unit (list_get (players) 0))) 100) 5) (* (unit_get_shield (unit (list_get (players) 0))) 100)) ) Thanks man, You are so kind!!! :D
|
|
|