From: terencehill Date: Tue, 29 May 2018 20:13:49 +0000 (+0200) Subject: Bot AI: CTF attackers now get some items while attacking X-Git-Tag: xonotic-v0.8.5~1923^2~43 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=71902bc5e9acbc4cb5484cb58476631ebe85ba39;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: CTF attackers now get some items while attacking --- diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qc b/qcsrc/server/mutators/mutator/gamemode_ctf.qc index 6468bacb8..4598f581e 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qc @@ -1821,13 +1821,6 @@ void havocbot_role_ctf_offense(entity this) } } - // About to fail, switch to middlefield - if(this.health<50) - { - havocbot_role_ctf_setrole(this, HAVOCBOT_CTF_ROLE_MIDDLE); - return; - } - // Set the role timeout if necessary if (!this.havocbot_role_timeout) this.havocbot_role_timeout = time + 120; @@ -1842,10 +1835,10 @@ void havocbot_role_ctf_offense(entity this) { navigation_goalrating_start(this); - havocbot_goalrating_ctf_ourstolenflag(this, 50000); - havocbot_goalrating_ctf_enemybase(this, 20000); - havocbot_goalrating_items(this, 5000, this.origin, 1000); - havocbot_goalrating_items(this, 1000, this.origin, 10000); + // role: offense + havocbot_goalrating_ctf_ourstolenflag(this, 10000); + havocbot_goalrating_ctf_enemybase(this, 10000); + havocbot_goalrating_items(this, 22000, this.origin, 10000); navigation_goalrating_end(this);