Regen Glitch with Health Packs or Stim Shot

User avatar
United States of America
Posts: 366
Joined: 09 May 2018
Location: United States
Clan: Fuse
Contact:
Status: Offline

Regen Glitch with Health Packs or Stim Shot

Post by impossybull » 06 Jul 2019

Hi,

There is a glitch that when regenerating health with the Regen perk, and then picking up a health pack or using Stim Shot, that the health will reset to 100, when it should be something above 100. I assume it is caused by how the Regen perk is coded to make sure players do not regen health over 100. Example: https://youtu.be/g3OSHoYfAZA

Thanks :)
"Practice to gain skill"
          Image
               "Think to gain strategy"

Member of Split, SWAT, Milk, RT, Dark Masters, Criminal Gamers, Fuse, Greg Heffley, and leader of OVERPOWERED.
User avatar
Latvia
Posts: 863
Joined: 29 Dec 2017
Location: Latvia
Clan: SW
Contact:
Status: Online

Post by OneManArmy » 06 Jul 2019

Regeneration adds 5 hp every second and should stop at 100 (not 102, or 104). I was checking if(health > 100) health = 100;
That's what you see here.
I added one more check, so now everything should work as it should.
User avatar
United States of America
Posts: 366
Joined: 09 May 2018
Location: United States
Clan: Fuse
Contact:
Status: Offline

Post by impossybull » 06 Jul 2019

Alright, thank you :)
"Practice to gain skill"
          Image
               "Think to gain strategy"

Member of Split, SWAT, Milk, RT, Dark Masters, Criminal Gamers, Fuse, Greg Heffley, and leader of OVERPOWERED.
Post Reply