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

Fix PHD Flopper explosions if max health less than 100

This commit is contained in:
Jbleezy
2022-01-27 14:52:16 -08:00
parent 07a29e7a42
commit b50358a8e0

View File

@ -1921,6 +1921,18 @@ fall_velocity_check()
if (!was_on_ground)
{
// fall damage does not register when player's max health is less than 100 and has PHD Flopper
if(self.maxhealth < 100 && self hasPerk("specialty_flakjacket"))
{
if(is_true(self.divetoprone) && self.fall_velocity <= -300)
{
if(isDefined(level.zombiemode_divetonuke_perk_func))
{
[[level.zombiemode_divetonuke_perk_func]](self, self.origin);
}
}
}
continue;
}