]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: carrier role: don't lock CTF base as goal for too much time
authorterencehill <piuntn@gmail.com>
Sun, 29 Apr 2018 09:22:38 +0000 (11:22 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 29 Apr 2018 10:21:11 +0000 (12:21 +0200)
qcsrc/server/mutators/mutator/gamemode_ctf.qc

index 362e8cee76de70ac55e4c7fd7e7718255a9ab928..4175dabc19cf7dd8c63e847450843593ff0a1c73 100644 (file)
@@ -1696,7 +1696,7 @@ void havocbot_role_ctf_carrier(entity this)
 
                entity goal = this.goalentity;
                if (havocbot_ctf_is_basewaypoint(goal) && vdist(goal.origin - this.origin, <, 100))
-                       this.goalentity_lock_timeout = time + 5;
+                       this.goalentity_lock_timeout = time + ((this.bot_aimtarg) ? 2 : 3);
 
                if (goal)
                        this.havocbot_cantfindflag = time + 10;