ItsMods

Full Version: Disable Health Regen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So, currently I'm trying to find a way to disable health regen. I've tried doing self.regenRate = undefined; and 0, but neither work.

I've looked into _healthoverlay either one should have worked... anyone got any ideas?
(05-04-2014, 17:26)DidUknowiPwn Wrote: [ -> ]So, currently I'm trying to find a way to disable health regen. I've tried doing self.regenRate = undefined; and 0, but neither work.

I've looked into _healthoverlay either one should have worked... anyone got any ideas?

You could in _healthoverlay:
Code:
onPlayerSpawned()
{
    self endon("disconnect");
    
    for(;;)
    {
        self waittill("spawned_player");
        self thread playerHealthRegen();
    }
}
Comment self thread playerHealthRegen(); but that might also break some other functionality. I'll look a bit further.

Edit: or you could do in init() in _healthoverlay:
Code:
level.healthRegenDisabled = false;
Well the problem is that disabling that will disable regen overall and the mod I'm doing it's set once the player activates a certain func.
(05-04-2014, 18:45)DidUknowiPwn Wrote: [ -> ]Well the problem is that disabling that will disable regen overall and the mod I'm doing it's set once the player activates a certain func.

Well then you could do: self notify("end_healthregen");