|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "aim.qh"#include <common/physics/player.qh>#include <common/state.qh>#include <common/stats.qh>#include <common/weapons/_all.qh>#include <server/bot/default/bot.qh>#include <server/bot/default/cvars.qh>#include <server/mutators/_mod.qh>#include <server/weapons/weaponsystem.qh>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) |
| bool | 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 134 of file aim.qc.
References bot_1st_order_aimfilter, bot_2nd_order_aimfilter, bot_3th_order_aimfilter, bot_4th_order_aimfilter, bot_5th_order_aimfilter, bot_aimdir_executed, bot_aimthinktime, bot_badaimtime, bot_firetimer, bot_mouseaim, bot_olddesiredang, bot_prevaimtime, entity(), time, and v_angle.
Referenced by MUTATOR_HOOKFUNCTION(), ons_Teleport(), PutPlayerInServer(), TeleportPlayer(), and WarpZone_TeleportPlayer().
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.
References autocvar_bot_ignore_bots, autocvar_bot_typefrag, entity(), FL_NOTARGET, IS_BOT_CLIENT, IS_DEAD, MUTATOR_CALLHOOK, PHYS_INPUT_BUTTON_CHAT, and teamplay.
Referenced by bot_aim(), havocbot_chooseenemy(), and havocbot_goalrating_enemyplayers().
| 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().