From b164ddd1ba9bca3cb2dece3a422a11bb8b4875e0 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Mon, 10 Apr 2023 21:38:48 -0700 Subject: [PATCH] Fix health regen --- scripts/zm/replaced/_zm_playerhealth.gsc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/zm/replaced/_zm_playerhealth.gsc b/scripts/zm/replaced/_zm_playerhealth.gsc index 2e343a2f..3b9e0d7d 100644 --- a/scripts/zm/replaced/_zm_playerhealth.gsc +++ b/scripts/zm/replaced/_zm_playerhealth.gsc @@ -58,8 +58,8 @@ playerhealthregen() health_ratio = self.health / self.maxhealth; maxhealthratio = self.maxhealth / 100; regenrate = 0.05 / maxhealthratio; - regularregendelay = 2000; - longregendelay = 4000; + regularregendelay = level.playerhealth_regularregendelay; + longregendelay = level.longregentime; if (self hasPerk("specialty_quickrevive")) { @@ -79,6 +79,7 @@ playerhealthregen() if ( self.health == self.maxhealth ) { + oldratio = 1; continue; } }