+#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)
}
havocbot_goalrating_items(1, self.origin, 10000);
-};
+}
void havocbot_role_kh_carrier()
{
navigation_goalrating_end();
}
-};
+}
void havocbot_role_kh_offense()
{
navigation_goalrating_end();
}
-};
+}
void havocbot_role_kh_freelancer()
{
navigation_goalrating_end();
}
-};
+}
void havocbot_chooserole_kh()
{
- local float r;
+ float r;
if(self.deadflag != DEAD_NO)
return;
self.havocbot_role = havocbot_role_kh_defense;
else
self.havocbot_role = havocbot_role_kh_freelancer;
-};
+}