From bb1ae50debd96a6430f47b5ea18966fe1f9dd828 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 4 Dec 2021 20:01:15 -0800 Subject: [PATCH] Fix new health regen not working after respawn --- scripts/zm/_zm_reimagined.gsc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/zm/_zm_reimagined.gsc b/scripts/zm/_zm_reimagined.gsc index 719f618c..b3687153 100644 --- a/scripts/zm/_zm_reimagined.gsc +++ b/scripts/zm/_zm_reimagined.gsc @@ -3,6 +3,11 @@ #include common_scripts/utility; #include maps/mp/_utility; +main() +{ + replaceFunc(maps/mp/zombies/_zm_playerhealth::playerhealthregen, ::playerhealthregen); +} + init() { level.inital_spawn = true; @@ -101,8 +106,6 @@ onplayerspawned() self setperk( "specialty_unlimitedsprint" ); self setperk( "specialty_fastmantle" ); - - self thread playerhealthregen(); } } @@ -1466,7 +1469,6 @@ get_zone_name() playerhealthregen() { - self notify( "noHealthOverlay" ); self notify( "playerHealthRegen" ); self endon( "playerHealthRegen" ); self endon( "death" );