From: Mario Date: Mon, 5 Aug 2019 05:42:22 +0000 (+1000) Subject: Don't do jumpoff checks when the monster isn't on the ground X-Git-Tag: xonotic-v0.8.5~1428 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=73a39ac8e8e37c9c3a9c75ead479b599a9072a76;p=xonotic%2Fxonotic-data.pk3dir.git Don't do jumpoff checks when the monster isn't on the ground --- diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index 0619a5ded..c707f8c38 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -1095,7 +1095,7 @@ void Monster_Move_2D(entity this, float mspeed, bool allow_jumpoff) if(trace_ent && IS_MONSTER(trace_ent)) reverse = true; - if(!allow_jumpoff) + if(!allow_jumpoff && IS_ONGROUND(this)) { traceline(b, b - '0 0 32', MOVE_NORMAL, this); if(trace_fraction == 1.0)