From: Mario Date: Sat, 20 Oct 2018 20:54:01 +0000 (+1000) Subject: Don't drop mages from high spots when teleporting X-Git-Tag: xonotic-v0.8.5~7^2~1^2~28 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=24dbcdb6845f17ad1f0509bc173caabee9e6f2bb;p=xonotic%2Fxonotic-data.pk3dir.git Don't drop mages from high spots when teleporting --- diff --git a/qcsrc/common/monsters/monster/mage.qc b/qcsrc/common/monsters/monster/mage.qc index 0ca1c18c0b..f2de0602bc 100644 --- a/qcsrc/common/monsters/monster/mage.qc +++ b/qcsrc/common/monsters/monster/mage.qc @@ -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;