]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't do jumpoff checks when the monster isn't on the ground
authorMario <mario@smbclan.net>
Mon, 5 Aug 2019 05:42:22 +0000 (15:42 +1000)
committerMario <mario@smbclan.net>
Mon, 5 Aug 2019 05:42:22 +0000 (15:42 +1000)
qcsrc/common/monsters/sv_monsters.qc

index 0619a5dedce225ceab9294cc3786072d9eeb7207..c707f8c38e5ede6509fd6620456bbbd7288468e7 100644 (file)
@@ -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)