]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/bot/default/aim.qh
Merge branch 'terencehill/minigame_flood_control' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / aim.qh
1 #pragma once
2 /*
3  * Globals and Fields
4  */
5
6 entity tracetossent;
7 entity tracetossfaketarget;
8 vector findtrajectory_velocity;
9
10 vector shotorg;
11 vector shotdir;
12
13 .bool bot_aimdir_executed;
14 .float bot_badaimtime;
15 .float bot_aimthinktime;
16 .float bot_prevaimtime;
17 .float bot_firetimer;
18 .float bot_aimlatency;
19
20 .vector bot_mouseaim;
21 .vector bot_badaimoffset;
22 .vector bot_1st_order_aimfilter;
23 .vector bot_2nd_order_aimfilter;
24 .vector bot_3th_order_aimfilter;
25 .vector bot_4th_order_aimfilter;
26 .vector bot_5th_order_aimfilter;
27 .vector bot_olddesiredang;
28
29
30 /*
31  * Functions
32  */
33
34 float bot_shouldattack(entity this, entity targ);
35 void bot_aimdir(entity this, vector v, float maxfiredeviation);
36 bool bot_aim(entity this, .entity weaponentity, float shotspeed, float shotspeedupward, float maxshottime, bool applygravity, bool shot_accurate);
37 void bot_aim_reset(entity this);
38 float findtrajectorywithleading(vector org, vector m1, vector m2, entity targ, float shotspeed, float shotspeedupward, float maxtime, float shotdelay, entity ignore);
39
40 vector bot_shotlead(vector targorigin, vector targvelocity, float shotspeed, float shotdelay);