mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 21:31:28 +00:00
SERVER: Slight fall damage fixes
This commit is contained in:
parent
5e1bcb46da
commit
b416568c7c
1 changed files with 5 additions and 8 deletions
|
@ -2158,15 +2158,12 @@ void() CheckPlayer =
|
||||||
self.dive = 0;
|
self.dive = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fabs(vlen(self.oldz - self.origin_z)) > 176 && !(self.perks & P_FLOP)) {
|
if (fabs(self.oldz - self.origin_z) + 64 > 176 && !(self.perks & P_FLOP)) {
|
||||||
float height = fabs(vlen(self.oldz - self.origin_z)) - 176 + 64;
|
float height = fabs(self.oldz - self.origin_z) + 64;
|
||||||
float damage;
|
float damage = height*(0.68);
|
||||||
|
|
||||||
if (height > 326) {
|
if (damage > 98) damage = 98;
|
||||||
damage = 98;
|
|
||||||
} else {
|
|
||||||
damage = height*(0.68);
|
|
||||||
}
|
|
||||||
DamageHandler (self, other, damage, S_ZOMBIE);
|
DamageHandler (self, other, damage, S_ZOMBIE);
|
||||||
|
|
||||||
if (self.health <= 10)
|
if (self.health <= 10)
|
||||||
|
|
Loading…
Reference in a new issue