From 25a5e1fefa6e0241296f58e2c7257ce9b3bab569 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 10 Jun 2018 19:27:20 +0200 Subject: [PATCH] Bot AI: attempt to improve CTF middle and defense roles --- qcsrc/server/mutators/mutator/gamemode_ctf.qc | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qc b/qcsrc/server/mutators/mutator/gamemode_ctf.qc index df9b68c7d..0db265101 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qc @@ -1973,12 +1973,13 @@ void havocbot_role_ctf_middle(entity this) navigation_goalrating_start(this); - havocbot_goalrating_ctf_ourstolenflag(this, 50000); - havocbot_goalrating_ctf_droppedflags(this, 30000, this.origin, 10000); - havocbot_goalrating_enemyplayers(this, 5000, org, havocbot_middlepoint_radius * 0.5); - havocbot_goalrating_items(this, 5000, org, havocbot_middlepoint_radius * 0.5); - havocbot_goalrating_items(this, 2500, this.origin, 10000); - havocbot_goalrating_ctf_enemybase(this, 2500); + // role: middle + havocbot_goalrating_ctf_ourstolenflag(this, 8000); + havocbot_goalrating_ctf_droppedflags(this, 9000, this.origin, 10000); + havocbot_goalrating_enemyplayers(this, 25000, org, havocbot_middlepoint_radius * 0.5); + havocbot_goalrating_items(this, 25000, org, havocbot_middlepoint_radius * 0.5); + havocbot_goalrating_items(this, 18000, this.origin, 10000); + havocbot_goalrating_ctf_enemybase(this, 3000); navigation_goalrating_end(this); @@ -2040,17 +2041,18 @@ void havocbot_role_ctf_defense(entity this) } }); + // role: defense if(closestplayer) if(DIFF_TEAM(closestplayer, this)) if(vdist(org - this.origin, >, 1000)) if(checkpvs(this.origin,closestplayer)||random()<0.5) - havocbot_goalrating_ctf_ourbase(this, 30000); + havocbot_goalrating_ctf_ourbase(this, 10000); - havocbot_goalrating_ctf_ourstolenflag(this, 20000); - havocbot_goalrating_ctf_droppedflags(this, 20000, org, havocbot_middlepoint_radius); - havocbot_goalrating_enemyplayers(this, 7500, org, havocbot_middlepoint_radius); - havocbot_goalrating_items(this, 10000, org, havocbot_middlepoint_radius); - havocbot_goalrating_items(this, 5000, this.origin, 10000); + havocbot_goalrating_ctf_ourstolenflag(this, 5000); + havocbot_goalrating_ctf_droppedflags(this, 6000, org, havocbot_middlepoint_radius); + havocbot_goalrating_enemyplayers(this, 25000, org, havocbot_middlepoint_radius); + havocbot_goalrating_items(this, 25000, org, havocbot_middlepoint_radius); + havocbot_goalrating_items(this, 18000, this.origin, 10000); navigation_goalrating_end(this); -- 2.39.2