]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/bot/havocbot/havocbot.qh
initial checkin from nexuiz svn r8756
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / havocbot / havocbot.qh
1 /*
2  * Globals and Fields
3  */
4
5 .float havocbot_keyboardskill;
6 .float facingwalltime, ignoregoaltime;
7 .float lastfiredweapon;
8 .float lastcombotime;
9 .float havocbot_blockhead;
10
11 .float havocbot_keyboardtime;
12 .float havocbot_ducktime;
13 .float bot_timelastseengoal;
14 .float bot_canruntogoal;
15 .float bot_chooseweapontime;
16 .float rocketjumptime;
17 .float nextaim;
18 .float havocbot_personal_waypoint_searchtime;
19 .float havocbot_personal_waypoint_failcounter;
20 .float havocbot_chooseenemy_finished;
21 .float havocbot_stickenemy;
22
23 .entity ignoregoal;
24 .entity bot_lastseengoal;
25 .entity havocbot_personal_waypoint;
26
27 .vector havocbot_keyboard;
28
29 /*
30  * Functions
31  */
32
33 void havocbot_ai();
34 void havocbot_aim();
35 void havocbot_setupbot();
36 void havocbot_movetogoal();
37 void havocbot_chooserole();
38 void havocbot_chooseenemy();
39 void havocbot_chooseweapon();
40 void havocbot_bunnyhop(vector dir);
41 void havocbot_keyboard_movement(vector destorg);
42
43 float havocbot_resetgoal();
44 float havocbot_moveto(vector pos);
45 float havocbot_moveto_refresh_route();
46
47 vector havocbot_dodge();
48
49 .void() havocbot_role;
50
51 /*
52  * Imports
53  */
54
55 .entity draggedby;
56 .float ladder_time;
57 .entity ladder_entity;
58