From 71902bc5e9acbc4cb5484cb58476631ebe85ba39 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 29 May 2018 22:13:49 +0200 Subject: [PATCH] Bot AI: CTF attackers now get some items while attacking --- qcsrc/server/mutators/mutator/gamemode_ctf.qc | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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); -- 2.39.2