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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user