7 const int AI_STATUS_ROAMING = BIT(0); // Bot is just crawling the map. No enemies at sight
8 const int AI_STATUS_ATTACKING = BIT(1); // There are enemies at sight
9 const int AI_STATUS_RUNNING = BIT(2); // Bot is bunny hopping
10 const int AI_STATUS_DANGER_AHEAD = BIT(3); // There is lava/slime/trigger_hurt ahead
11 const int AI_STATUS_OUT_JUMPPAD = BIT(4); // Trying to get out of a "vertical" jump pad
12 const int AI_STATUS_OUT_WATER = BIT(5); // Trying to get out of water
13 const int AI_STATUS_WAYPOINT_PERSONAL_LINKING = BIT(6); // Waiting for the personal waypoint to be linked
14 const int AI_STATUS_WAYPOINT_PERSONAL_GOING = BIT(7); // Going to a personal waypoint
15 const int AI_STATUS_WAYPOINT_PERSONAL_REACHED = BIT(8); // Personal waypoint reached
16 const int AI_STATUS_JETPACK_FLYING = BIT(9);
17 const int AI_STATUS_JETPACK_LANDING = BIT(10);
18 const int AI_STATUS_STUCK = BIT(11); // Cannot reach any goal
20 .float isbot; // true if this client is actually a bot
25 float autoskill_nextthink;
27 // havocbot_keyboardskill // keyboard movement
28 .float bot_moveskill; // moving technique
29 .float bot_dodgeskill; // dodging
31 .float bot_pingskill; // ping offset
33 .float bot_weaponskill; // weapon usage skill (combos, e.g.)
34 .float bot_aggresskill; // aggressivity, controls "think before fire" behaviour
35 .float bot_rangepreference; // weapon choice offset for range (>0 = prefer long range earlier "sniper", <0 = prefer short range "spammer")
37 .float bot_aimskill; // aim accuracy
38 .float bot_offsetskill; // aim breakage
39 .float bot_mouseskill; // mouse "speed"
41 .float bot_thinkskill; // target choice
42 .float bot_aiskill; // strategy choice
44 .float totalfrags_lastcheck;
46 // Custom weapon priorities
47 float bot_custom_weapon;
48 float bot_distance_far;
49 float bot_distance_close;
51 float bot_weapons_far[Weapons_MAX];
52 float bot_weapons_mid[Weapons_MAX];
53 float bot_weapons_close[Weapons_MAX];
60 .string netname_freeme;
61 .string playermodel_freeme;
62 .string playerskin_freeme;
67 .float bot_preferredcolors;
70 .float bot_dodgerating;
73 .float bot_pickupbasevalue;
75 .float bot_strategytime;
77 .float bot_forced_team;
78 .float bot_config_loaded;
80 float bot_strategytoken_taken;
81 entity bot_strategytoken;
83 float botframe_spawnedwaypoints;
84 float botframe_nextthink;
85 float botframe_nextdangertime;
86 float bot_cvar_nextthink;
87 float bot_ignore_bots; // let bots not attack other bots (only works in non-teamplay)
97 void bot_setnameandstuff();
98 void bot_custom_weapon_priority_setup();
100 void bot_relinkplayerlist();
101 void bot_clientdisconnect();
102 void bot_clientconnect();
103 void bot_removefromlargestteam();
104 void bot_removenewest();
105 void autoskill(float factor);
106 void bot_serverframe();
109 .float(entity player, entity item) bot_pickupevalfunc;
115 void() havocbot_setupbot;
117 void bot_calculate_stepheightvec();