Disable Health Regen
#1
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?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#2
(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;
Would like to make a donation? Click here
Reply

#3
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.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#4
(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");
Would like to make a donation? Click here
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.