From: terencehill Date: Sun, 29 Apr 2018 09:22:38 +0000 (+0200) Subject: Bot AI: carrier role: don't lock CTF base as goal for too much time X-Git-Tag: xonotic-v0.8.5~1923^2~57 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=63007acbcf89ce3e9da266171890dfae5be88dea;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: carrier role: don't lock CTF base as goal for too much time --- diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qc b/qcsrc/server/mutators/mutator/gamemode_ctf.qc index 362e8cee7..4175dabc1 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qc @@ -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;