]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't drop mages from high spots when teleporting
authorMario <mario@smbclan.net>
Sat, 20 Oct 2018 20:54:01 +0000 (06:54 +1000)
committerMario <mario@smbclan.net>
Sat, 20 Oct 2018 20:54:01 +0000 (06:54 +1000)
qcsrc/common/monsters/monster/mage.qc

index 0ca1c18c0b3298abe0c1cd1741325bc5e73a35eb..f2de0602bc3481188cd45fb1bf4af5a090a6bcc9 100644 (file)
@@ -314,7 +314,7 @@ void M_Mage_Attack_Teleport(entity this, entity targ)
                vector extrasize = '1 1 1' * autocvar_g_monster_mage_attack_teleport_random_range;
                if(MoveToRandomLocationWithinBounds(this, this.absmin - extrasize, this.absmax + extrasize,
                                                                                        DPCONTENTS_SOLID | DPCONTENTS_CORPSE | DPCONTENTS_PLAYERCLIP, DPCONTENTS_SLIME | DPCONTENTS_LAVA | DPCONTENTS_SKY | DPCONTENTS_BODY | DPCONTENTS_DONOTENTER, 
-                                                                                       Q3SURFACEFLAG_SKY, 10, 1024, 256, true))
+                                                                                       Q3SURFACEFLAG_SKY, 10, 64, 256, true))
                {
                        vector a = vectoangles(targ.origin - this.origin);
                        this.angles = '0 1 0' * a.y;