Simple Health Regeneration script

Started by Gotcha {sfx}, May 24, 2015, 11:37:35 PM

Previous topic - Next topic

Gotcha {sfx}

Just working on some new things, I've returned recently, took me longer than I'd like to admit, but I made this tonight. Just thought I'd share this with anyone who might need/want it. I don't think I've seen it in a server, but it's been years now. I do believe Rock's realism mod had this feature or something quiet like it? Just trying to reintroduce myself to the language. Anyway.


//---healthregen
test:

while(1)
{
if($player.health <= 99)
$player.needit=1
if($player.health >= 100)
$player.needit=0

if ((isalive $player) && ($player.needit==1))
$player volumedamage -1
wait 1.8
}

end


Cobra {sfx}

I remember you from the old days ... vaguely :P

Sleep? What is that?

Gotcha {sfx}

Yeah but I wasn't around for all the good stuff lol. I started modding too late, and then I quit playing because of changing locations/computer problems and now I'm back and the community is so small. Just been workin on things so I have something to do and as a way to learn and exercise the brain. Good to be back though lol

ToxinUK {sfx}

Patience is a virtue that I do not have time for!