]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bots in one flag mode
authorMario <zacjardine@y7mail.com>
Thu, 9 Jul 2015 06:40:56 +0000 (16:40 +1000)
committerMario <zacjardine@y7mail.com>
Thu, 9 Jul 2015 06:40:56 +0000 (16:40 +1000)
qcsrc/server/mutators/gamemode_ctf.qc
qcsrc/server/mutators/gamemode_ctf.qh

index c870adc849026e3d0bee13a9819faf68872bfd19..10b17719a737a8076331187ba52794b416711559 100644 (file)
 #include "../../warpzonelib/common.qh"
 #include "../../warpzonelib/mathlib.qh"
 
-// ================================================================
-//  Official capture the flag game mode coding, reworked by Samual
-//  Last updated: September, 2012
-// ================================================================
-
 void ctf_FakeTimeLimit(entity e, float t)
 {
        msg_entity = e;
@@ -1512,7 +1507,10 @@ void havocbot_role_ctf_carrier()
                self.bot_strategytime = time + autocvar_bot_ai_strategyinterval;
 
                navigation_goalrating_start();
-               havocbot_goalrating_ctf_ourbase(50000);
+               if(ctf_oneflag)
+                       havocbot_goalrating_ctf_enemybase(50000);
+               else
+                       havocbot_goalrating_ctf_ourbase(50000);
 
                if(self.health<100)
                        havocbot_goalrating_ctf_carrieritems(1000, self.origin, 1000);
index 3cac4bd41fa9e5daef74663370fe55cc33138951..c95225e59cb4cbec7657461cb9283ddc51929f74 100644 (file)
@@ -32,10 +32,7 @@ const vector FLAG_WAYPOINT_OFFSET = ('0 0 64');
 const vector FLAG_FLOAT_OFFSET = ('0 0 32');
 const vector FLAG_PASS_ARC_OFFSET = ('0 0 -10');
 
-const vector VEHICLE_FLAG_OFFSET = ('0 0 90');
-
-
-
+const vector VEHICLE_FLAG_OFFSET = ('0 0 96');
 const float VEHICLE_FLAG_SCALE = 1.0;
 
 // waypoint colors