mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-24 14:10:30 -05:00
Fix health regen
This commit is contained in:
@ -58,8 +58,8 @@ playerhealthregen()
|
|||||||
health_ratio = self.health / self.maxhealth;
|
health_ratio = self.health / self.maxhealth;
|
||||||
maxhealthratio = self.maxhealth / 100;
|
maxhealthratio = self.maxhealth / 100;
|
||||||
regenrate = 0.05 / maxhealthratio;
|
regenrate = 0.05 / maxhealthratio;
|
||||||
regularregendelay = 2000;
|
regularregendelay = level.playerhealth_regularregendelay;
|
||||||
longregendelay = 4000;
|
longregendelay = level.longregentime;
|
||||||
|
|
||||||
if (self hasPerk("specialty_quickrevive"))
|
if (self hasPerk("specialty_quickrevive"))
|
||||||
{
|
{
|
||||||
@ -79,6 +79,7 @@ playerhealthregen()
|
|||||||
|
|
||||||
if ( self.health == self.maxhealth )
|
if ( self.health == self.maxhealth )
|
||||||
{
|
{
|
||||||
|
oldratio = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user