MOH Central

Medal of Honor Series Forum => MOHAA Series: General => Topic started by: Gotcha {sfx} on May 24, 2015, 11:37:35 PM

Title: Simple Health Regeneration script
Post by: Gotcha {sfx} on May 24, 2015, 11:37:35 PM
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

Title: Re: Simple Health Regeneration script
Post by: Cobra {sfx} on June 19, 2015, 03:22:49 PM
I remember you from the old days ... vaguely :P

Title: Re: Simple Health Regeneration script
Post by: Gotcha {sfx} on June 19, 2015, 04:15:02 PM
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
Title: Re: Simple Health Regeneration script
Post by: ToxinUK {sfx} on July 03, 2015, 08:48:54 PM
Welcome back Gotcha.  ;)