Revert "Merge branch 'TimePath/bot_api' into 'master'\r"
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / havocbot / havocbot.qh
1 #ifndef HAVOCBOT_H
2 #define HAVOCBOT_H
3
4 /*
5  * Globals and Fields
6  */
7
8 .float havocbot_keyboardskill;
9 .float facingwalltime, ignoregoaltime;
10 .float lastfiredweapon;
11 .float lastcombotime;
12 .float havocbot_blockhead;
13
14 .float havocbot_keyboardtime;
15 .float havocbot_ducktime;
16 .float bot_timelastseengoal;
17 .float bot_canruntogoal;
18 .float bot_chooseweapontime;
19 .float rocketjumptime;
20 .float nextaim;
21 .float havocbot_personal_waypoint_searchtime;
22 .float havocbot_personal_waypoint_failcounter;
23 .float havocbot_chooseenemy_finished;
24 .float havocbot_stickenemy;
25 .float havocbot_role_timeout;
26
27 .entity ignoregoal;
28 .entity bot_lastseengoal;
29 .entity havocbot_personal_waypoint;
30
31 .vector havocbot_keyboard;
32
33 /*
34  * Functions
35  */
36
37 void havocbot_ai();
38 void havocbot_aim();
39 void havocbot_setupbot();
40 void havocbot_movetogoal();
41 void havocbot_chooserole();
42 void havocbot_chooseenemy();
43 void havocbot_chooseweapon();
44 void havocbot_bunnyhop(vector dir);
45 void havocbot_keyboard_movement(vector destorg);
46
47 float havocbot_resetgoal();
48 float havocbot_moveto(vector pos);
49 float havocbot_moveto_refresh_route();
50
51 vector havocbot_dodge();
52
53 .void() havocbot_role;
54 .void() havocbot_previous_role;
55
56 void(float ratingscale, vector org, float sradius) havocbot_goalrating_items;
57 void(float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
58
59 /*
60  * Imports
61  */
62
63 .entity draggedby;
64 .float ladder_time;
65 .entity ladder_entity;
66 #endif