mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-13 08:38:01 -05:00
Fix new health regen not working after respawn
This commit is contained in:
@ -3,6 +3,11 @@
|
|||||||
#include common_scripts/utility;
|
#include common_scripts/utility;
|
||||||
#include maps/mp/_utility;
|
#include maps/mp/_utility;
|
||||||
|
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
replaceFunc(maps/mp/zombies/_zm_playerhealth::playerhealthregen, ::playerhealthregen);
|
||||||
|
}
|
||||||
|
|
||||||
init()
|
init()
|
||||||
{
|
{
|
||||||
level.inital_spawn = true;
|
level.inital_spawn = true;
|
||||||
@ -101,8 +106,6 @@ onplayerspawned()
|
|||||||
|
|
||||||
self setperk( "specialty_unlimitedsprint" );
|
self setperk( "specialty_unlimitedsprint" );
|
||||||
self setperk( "specialty_fastmantle" );
|
self setperk( "specialty_fastmantle" );
|
||||||
|
|
||||||
self thread playerhealthregen();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1466,7 +1469,6 @@ get_zone_name()
|
|||||||
|
|
||||||
playerhealthregen()
|
playerhealthregen()
|
||||||
{
|
{
|
||||||
self notify( "noHealthOverlay" );
|
|
||||||
self notify( "playerHealthRegen" );
|
self notify( "playerHealthRegen" );
|
||||||
self endon( "playerHealthRegen" );
|
self endon( "playerHealthRegen" );
|
||||||
self endon( "death" );
|
self endon( "death" );
|
||||||
|
Reference in New Issue
Block a user