|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Functions | |
| bool | bot_aim (entity this,.entity weaponentity, float shotspeed, float shotspeedupward, float maxshottime, bool applygravity, bool shot_accurate) |
| void | bot_aim_reset (entity this) |
| void | bot_aimdir (entity this, vector v, float maxfiredeviation) |
| vector | bot_shotlead (vector targorigin, vector targvelocity, float shotspeed, float shotdelay) |
| float | bot_shouldattack (entity this, entity targ) |
| float | findtrajectorywithleading (vector org, vector m1, vector m2, entity targ, float shotspeed, float shotspeedupward, float maxtime, float shotdelay, entity ignore) |
| bool bot_aim | ( | entity | this, |
| .entity | weaponentity, | ||
| float | shotspeed, | ||
| float | shotspeedupward, | ||
| float | maxshottime, | ||
| bool | applygravity, | ||
| bool | shot_accurate ) |
Definition at line 339 of file aim.qc.
References bot_aimdir(), bot_aimskill, bot_firetimer, bot_shotlead(), bot_shouldattack(), bound(), DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_SOLID, dphitcontentsmask, enemy, entity(), findtrajectory_velocity, findtrajectorywithleading(), LOG_TRACE, m_weapon, makevectors, max(), min(), origin, shotdir, shotorg, skill, time, trace_ent, trace_fraction, v_angle, v_forward, vector, view_ofs, vlen(), and W_WeaponSpeedFactor().
Definition at line 150 of file aim.qc.
References autocvar_bot_ai_aimskill_blendrate, autocvar_bot_ai_aimskill_firetolerance, autocvar_bot_ai_aimskill_fixedrate, autocvar_bot_ai_aimskill_mouse, autocvar_bot_ai_aimskill_offset, autocvar_bot_ai_aimskill_order_filter_1st, autocvar_bot_ai_aimskill_order_filter_2nd, autocvar_bot_ai_aimskill_order_filter_3th, autocvar_bot_ai_aimskill_order_filter_4th, autocvar_bot_ai_aimskill_order_filter_5th, autocvar_bot_ai_aimskill_order_mix_1st, autocvar_bot_ai_aimskill_order_mix_2nd, autocvar_bot_ai_aimskill_order_mix_3th, autocvar_bot_ai_aimskill_order_mix_4th, autocvar_bot_ai_aimskill_order_mix_5th, autocvar_bot_ai_aimskill_think, bot_1st_order_aimfilter, bot_2nd_order_aimfilter, bot_3th_order_aimfilter, bot_4th_order_aimfilter, bot_5th_order_aimfilter, bot_aggresskill, bot_aimdir_executed, bot_aimskill, bot_aimthinktime, bot_badaimoffset, bot_badaimtime, bot_firetimer, bot_mouseaim, bot_mouseskill, bot_offsetskill, bot_olddesiredang, bot_prevaimtime, bot_thinkskill, bound(), enemy, entity(), fabs(), floor(), makevectors, max(), normalize(), NULL, origin, random(), randomvec(), shotdir, shotorg, skill, SUPERBOT, time, trace_endpos, v_angle, v_forward, vdist, vectoangles(), vector, view_ofs, and vlen().
Referenced by bot_aim(), havocbot_ai(), havocbot_moveto(), and havocbot_movetogoal().
Definition at line 97 of file aim.qc.
Referenced by bot_aim().
| float findtrajectorywithleading | ( | vector | org, |
| vector | m1, | ||
| vector | m2, | ||
| entity | targ, | ||
| float | shotspeed, | ||
| float | shotspeedupward, | ||
| float | maxtime, | ||
| float | shotdelay, | ||
| entity | ignore ) |
Definition at line 16 of file aim.qc.
References dir, entity(), findtrajectory_velocity, max(), MOVETYPE_NONE, normalize(), org, set_movetype(), SOLID_BBOX, SOLID_NOT, trace_endpos, trace_ent, tracetossent, tracetossfaketarget, vector, and vlen().
Referenced by bot_aim().
| vector bot_1st_order_aimfilter |
Definition at line 22 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| vector bot_2nd_order_aimfilter |
Definition at line 23 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| vector bot_3th_order_aimfilter |
Definition at line 24 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| vector bot_4th_order_aimfilter |
Definition at line 25 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| vector bot_5th_order_aimfilter |
Definition at line 26 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| bool bot_aimdir_executed |
Definition at line 13 of file aim.qh.
Referenced by bot_aim_reset(), bot_aimdir(), havocbot_ai(), havocbot_moveto(), and havocbot_movetogoal().
| float bot_aimthinktime |
Definition at line 15 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| vector bot_badaimoffset |
Definition at line 21 of file aim.qh.
Referenced by bot_aimdir().
| float bot_badaimtime |
Definition at line 14 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| float bot_firetimer |
Definition at line 17 of file aim.qh.
Referenced by bot_aim(), bot_aim_reset(), and bot_aimdir().
| vector bot_mouseaim |
Definition at line 20 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| vector bot_olddesiredang |
Definition at line 27 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| float bot_prevaimtime |
Definition at line 16 of file aim.qh.
Referenced by bot_aim_reset(), and bot_aimdir().
| vector findtrajectory_velocity |
Definition at line 8 of file aim.qh.
Referenced by bot_aim(), and findtrajectorywithleading().
| vector shotdir |
Definition at line 11 of file aim.qh.
Referenced by bot_aim(), bot_aimdir(), REPLICATE_INIT(), and W_MuzzleFlash().
| vector shotorg |
Definition at line 10 of file aim.qh.
Referenced by bot_aim(), bot_aimdir(), bot_shotlead(), REPLICATE_INIT(), and W_MuzzleFlash().
| entity tracetossent |
Definition at line 6 of file aim.qh.
Referenced by findtrajectorywithleading().
| entity tracetossfaketarget |
Definition at line 7 of file aim.qh.
Referenced by findtrajectorywithleading().