Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
aim.qh
Go to the documentation of this file.
1#pragma once
2/*
3 * Globals and Fields
4 */
5
9
12
19
28
29
30/*
31 * Functions
32 */
33
34float bot_shouldattack(entity this, entity targ);
35void bot_aimdir(entity this, vector v, float maxfiredeviation);
36bool bot_aim(entity this, .entity weaponentity, float shotspeed, float shotspeedupward, float maxshottime, bool applygravity, bool shot_accurate);
37void bot_aim_reset(entity this);
38float findtrajectorywithleading(vector org, vector m1, vector m2, entity targ, float shotspeed, float shotspeedupward, float maxtime, float shotdelay, entity ignore);
39
40vector bot_shotlead(vector targorigin, vector targvelocity, float shotspeed, float shotdelay);
vector bot_4th_order_aimfilter
Definition aim.qh:25
vector bot_mouseaim
Definition aim.qh:20
float bot_prevaimtime
Definition aim.qh:16
vector bot_olddesiredang
Definition aim.qh:27
vector bot_3th_order_aimfilter
Definition aim.qh:24
entity tracetossent
Definition aim.qh:6
float bot_aimthinktime
Definition aim.qh:15
float bot_aimlatency
Definition aim.qh:18
vector bot_1st_order_aimfilter
Definition aim.qh:22
bool bot_aimdir_executed
Definition aim.qh:13
float bot_badaimtime
Definition aim.qh:14
vector bot_shotlead(vector targorigin, vector targvelocity, float shotspeed, float shotdelay)
Definition aim.qc:333
vector bot_badaimoffset
Definition aim.qh:21
float bot_shouldattack(entity this, entity targ)
Definition aim.qc:97
float findtrajectorywithleading(vector org, vector m1, vector m2, entity targ, float shotspeed, float shotspeedupward, float maxtime, float shotdelay, entity ignore)
Definition aim.qc:16
vector findtrajectory_velocity
Definition aim.qh:8
vector shotorg
Definition aim.qh:10
void bot_aim_reset(entity this)
Definition aim.qc:134
float bot_firetimer
Definition aim.qh:17
entity tracetossfaketarget
Definition aim.qh:7
vector bot_5th_order_aimfilter
Definition aim.qh:26
vector shotdir
Definition aim.qh:11
void bot_aimdir(entity this, vector v, float maxfiredeviation)
Definition aim.qc:150
vector bot_2nd_order_aimfilter
Definition aim.qh:23
bool bot_aim(entity this,.entity weaponentity, float shotspeed, float shotspeedupward, float maxshottime, bool applygravity, bool shot_accurate)
Definition aim.qc:339
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
vector
Definition self.qh:92
vector org
Definition self.qh:92