]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't chase players while using a jump pad
authormand1nga <mand1nga@xonotic.org>
Thu, 9 Dec 2010 23:33:08 +0000 (20:33 -0300)
committermand1nga <mand1nga@xonotic.org>
Thu, 9 Dec 2010 23:33:08 +0000 (20:33 -0300)
qcsrc/server/bot/havocbot/havocbot.qc

index 28352cd89492ef2233d878565ae404ec1aa4262d..d8287df1696934aa3481f4cfccf2c4240e697c4e 100644 (file)
@@ -507,6 +507,10 @@ void havocbot_movetogoal()
                                }
                                return;
                        }
+
+                       // Don't chase players while using a jump pad
+                       if(self.goalcurrent.classname=="player" || self.goalstack01.classname=="player")
+                               return;
                }
        }
        else if(self.aistatus & AI_STATUS_OUT_JUMPPAD)