]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/havocbot/role_keyhunt.qc
Make most server includes order insensitive
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / havocbot / role_keyhunt.qc
index 8e30b37b5c569ce3f900f9b3e95934a0cef3acd3..6b4b1012ac70eefd4328192df9b9cfdc9f91cf02 100644 (file)
@@ -1,14 +1,22 @@
+#include "role_keyhunt.qh"
+#include "../../_.qh"
+
+#include "havocbot.qh"
+
+#include "../bot.qh"
+#include "../navigation.qh"
+
+#include "../../mutators/mutators_include.qh"
+
 void() havocbot_role_kh_carrier;
 void() havocbot_role_kh_defense;
 void() havocbot_role_kh_offense;
 void() havocbot_role_kh_freelancer;
 
-entity kh_worldkeylist;
-.entity kh_worldkeynext;
 
 void havocbot_goalrating_kh(float ratingscale_team, float ratingscale_dropped, float ratingscale_enemy)
 {
-       local entity head;
+       entity head;
        for (head = kh_worldkeylist; head; head = head.kh_worldkeynext)
        {
                if(head.owner == self)
@@ -33,7 +41,7 @@ void havocbot_goalrating_kh(float ratingscale_team, float ratingscale_dropped, f
        }
 
        havocbot_goalrating_items(1, self.origin, 10000);
-};
+}
 
 void havocbot_role_kh_carrier()
 {
@@ -101,7 +109,7 @@ void havocbot_role_kh_defense()
 
                navigation_goalrating_end();
        }
-};
+}
 
 void havocbot_role_kh_offense()
 {
@@ -143,7 +151,7 @@ void havocbot_role_kh_offense()
 
                navigation_goalrating_end();
        }
-};
+}
 
 void havocbot_role_kh_freelancer()
 {
@@ -193,11 +201,11 @@ void havocbot_role_kh_freelancer()
 
                navigation_goalrating_end();
        }
-};
+}
 
 void havocbot_chooserole_kh()
 {
-       local float r;
+       float r;
 
        if(self.deadflag != DEAD_NO)
                return;
@@ -209,4 +217,4 @@ void havocbot_chooserole_kh()
                self.havocbot_role = havocbot_role_kh_defense;
        else
                self.havocbot_role = havocbot_role_kh_freelancer;
-};
+}