]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/bot/havocbot/havocbot.qh
Merge remote-tracking branch 'origin/terencehill/cmd_fixes'
[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 .float havocbot_role_timeout;
23
24 .entity ignoregoal;
25 .entity bot_lastseengoal;
26 .entity havocbot_personal_waypoint;
27
28 .vector havocbot_keyboard;
29
30 /*
31  * Functions
32  */
33
34 void havocbot_ai();
35 void havocbot_aim();
36 void havocbot_setupbot();
37 void havocbot_movetogoal();
38 void havocbot_chooserole();
39 void havocbot_chooseenemy();
40 void havocbot_chooseweapon();
41 void havocbot_bunnyhop(vector dir);
42 void havocbot_keyboard_movement(vector destorg);
43
44 float havocbot_resetgoal();
45 float havocbot_moveto(vector pos);
46 float havocbot_moveto_refresh_route();
47
48 vector havocbot_dodge();
49
50 .void() havocbot_role;
51 .void() havocbot_previous_role;
52
53 void(float ratingscale, vector org, float sradius) havocbot_goalrating_items;
54 void(float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
55
56 /*
57  * Imports
58  */
59
60 .entity draggedby;
61 .float ladder_time;
62 .entity ladder_entity;
63