]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: improve Domination bot roles
authorterencehill <piuntn@gmail.com>
Thu, 28 Jun 2018 16:13:19 +0000 (18:13 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 28 Jun 2018 16:13:19 +0000 (18:13 +0200)
qcsrc/common/gamemodes/gamemode/domination/domination.qc

index 7575f946470a024630c1e8dd9fc5e8dfc68cfe6e..e27a701c1591820393ac11e5efbb6829be271867 100644 (file)
@@ -393,9 +393,9 @@ void havocbot_goalrating_controlpoints(entity this, float ratingscale, vector or
                if(it.cnt > -1) // this is just being fought
                        navigation_routerating(this, it, ratingscale, 5000);
                else if(it.goalentity.cnt == 0) // unclaimed
-                       navigation_routerating(this, it, ratingscale * 0.5, 5000);
+                       navigation_routerating(this, it, ratingscale, 5000);
                else if(it.goalentity.team != this.team) // other team's point
-                       navigation_routerating(this, it, ratingscale * 0.2, 5000);
+                       navigation_routerating(this, it, ratingscale, 5000);
        });
 }
 
@@ -408,7 +408,7 @@ void havocbot_role_dom(entity this)
        {
                navigation_goalrating_start(this);
                havocbot_goalrating_controlpoints(this, 10000, this.origin, 15000);
-               havocbot_goalrating_items(this, 8000, this.origin, 8000);
+               havocbot_goalrating_items(this, 20000, this.origin, 8000);
                //havocbot_goalrating_enemyplayers(this, 1500, this.origin, 2000);
                havocbot_goalrating_waypoints(this, 1, this.origin, 3000);
                navigation_goalrating_end(this);