CBaseMonster/NPC: Tweak what qu/s speed is considered falling

This commit is contained in:
Marco Cawthorne 2021-09-17 01:24:47 +02:00
parent 211a28692b
commit 3cc01ca512
Signed by: eukara
GPG key ID: C196CD8BA993248A
2 changed files with 2 additions and 2 deletions

View file

@ -466,7 +466,7 @@ CBaseMonster::Physics(void)
}
}
if (velocity[2] < -100) {
if (!(flags & FL_ONGROUND) && velocity[2] < -415) {
if (!(m_iFlags & MSF_FALLING))
FallNoise();

View file

@ -416,7 +416,7 @@ CBaseNPC::Physics(void)
SetOrigin(origin);
}
if (velocity[2] < -100) {
if (!(flags & FL_ONGROUND) && velocity[2] < -415) {
if (!(m_iFlags & MSF_FALLING)) {
FallNoise();
}