From: terencehill Date: Sun, 10 Jun 2018 17:27:20 +0000 (+0200) Subject: Bot AI: attempt to improve CTF middle and defense roles X-Git-Tag: xonotic-v0.8.5~1923^2~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25a5e1fefa6e0241296f58e2c7257ce9b3bab569;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: attempt to improve CTF middle and defense roles --- 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);