1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 07:08:06 -05:00

Fix new health regen not working after respawn

This commit is contained in:
Jbleezy
2021-12-04 20:01:15 -08:00
parent 7a490761a0
commit bb1ae50deb

View File

@ -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" );