]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/server/bot/havocbot/havocbot.qh
Initial checkout of Vore Tournament 0.1.alpha.
[voretournament/voretournament.git] / data / 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 nextaim;
17 .float havocbot_personal_waypoint_searchtime;
18 .float havocbot_personal_waypoint_failcounter;
19 .float havocbot_chooseenemy_finished;
20 .float havocbot_stickenemy;
21
22 .entity ignoregoal;
23 .entity bot_lastseengoal;
24 .entity havocbot_personal_waypoint;
25
26 .vector havocbot_keyboard;
27
28 /*
29  * Functions
30  */
31
32 void havocbot_ai();
33 void havocbot_aim();
34 void havocbot_setupbot();
35 void havocbot_movetogoal();
36 void havocbot_chooserole();
37 void havocbot_chooseenemy();
38 void havocbot_chooseweapon();
39 void havocbot_bunnyhop(vector dir);
40 void havocbot_keyboard_movement(vector destorg);
41
42 float havocbot_resetgoal();
43 float havocbot_moveto(vector pos);
44 float havocbot_moveto_refresh_route();
45
46 vector havocbot_dodge();
47
48 .void() havocbot_role;
49
50 /*
51  * Imports
52  */
53
54 .entity draggedby;
55 .float ladder_time;
56 .entity ladder_entity;
57