]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot logic: while shooting at breakable objects, don't focus on them, be ready to...
authorterencehill <piuntn@gmail.com>
Fri, 21 Aug 2015 00:05:33 +0000 (02:05 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 21 Aug 2015 00:05:33 +0000 (02:05 +0200)
qcsrc/server/bot/havocbot/havocbot.qc

index 0d5f04c9092b4249c5f8f8d90e874124923d0c8b..4b690c6eae6b6ab1d1d08a0c1b6b52663f45ca67 100644 (file)
@@ -967,6 +967,8 @@ void havocbot_chooseenemy()
 
        self.enemy = best;
        self.havocbot_stickenemy = true;
+       if(best && best.classname == "misc_breakablemodel")
+               self.havocbot_stickenemy = false;
 }
 
 float havocbot_chooseweapon_checkreload(int new_weapon)