]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: don't try to rocket-jump when using a jumppad or following a hardwired link
authorterencehill <piuntn@gmail.com>
Tue, 17 Jul 2018 14:00:22 +0000 (16:00 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 17 Jul 2018 14:00:22 +0000 (16:00 +0200)
qcsrc/server/bot/default/havocbot/havocbot.qc

index e9d5905b843b80b0667729050335bf782700f863..f5ba20c8a41b1acbe04a1368748eb8cbede98d30 100644 (file)
@@ -669,7 +669,8 @@ void havocbot_movetogoal(entity this)
 
                        return;
                }
-               else if(GetResourceAmount(this, RESOURCE_HEALTH) + GetResourceAmount(this, RESOURCE_ARMOR) > ROCKETJUMP_DAMAGE())
+               else if(!this.jumppadcount && !this.goalcurrent.wphardwired
+                       && GetResourceAmount(this, RESOURCE_HEALTH) + GetResourceAmount(this, RESOURCE_ARMOR) > ROCKETJUMP_DAMAGE())
                {
                        if(this.velocity.z < 0)
                        {