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

Fall damage uses engine damage if below 110

This commit is contained in:
Jbleezy
2020-03-27 00:01:06 -07:00
parent 77fd483474
commit 6229db8175

View File

@ -1688,6 +1688,9 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
ratio = self.maxhealth / 100;
idamage = int(idamage / ratio);
// increase fall damage beyond 110
if (idamage >= 110)
{
min_velocity = 420;
max_velocity = 740;
if (self.divetoprone)
@ -1702,9 +1705,9 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
velocity = min_velocity;
}
// increase fall damage beyond 110
idamage = int(((velocity - min_velocity) / diff_velocity) * 110);
}
}
return idamage;
}