X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Faim.qh;h=2a3145176258a6aa523efd3c95a252c8251ba897;hp=e7c60758aec2eca3c46fe3c588a8cce4e635551e;hb=76dd66af43f0f01131d019c3a8dacfe35a6f6a18;hpb=d365412f17cdfe9f8cc49fbeb54f9a636352fab5 diff --git a/qcsrc/server/bot/default/aim.qh b/qcsrc/server/bot/default/aim.qh index e7c60758ae..2a31451762 100644 --- a/qcsrc/server/bot/default/aim.qh +++ b/qcsrc/server/bot/default/aim.qh @@ -59,6 +59,7 @@ vector shotdir; .vector lag5_vec3; .vector lag5_vec4; +.bool bot_aimdir_executed; .float bot_badaimtime; .float bot_aimthinktime; .float bot_prevaimtime; @@ -90,8 +91,9 @@ void lag_update(entity this); void bot_lagfunc(entity this, float t, float f1, float f2, entity e1, vector v1, vector v2, vector v3, vector v4); float bot_shouldattack(entity this, entity targ); -float bot_aimdir(entity this, vector v, float maxfiredeviation); +void bot_aimdir(entity this, vector v, float maxfiredeviation); bool bot_aim(entity this, .entity weaponentity, float shotspeed, float shotspeedupward, float maxshottime, bool applygravity); +void bot_aim_reset(entity this); float findtrajectorywithleading(vector org, vector m1, vector m2, entity targ, float shotspeed, float shotspeedupward, float maxtime, float shotdelay, entity ignore); vector bot_shotlead(vector targorigin, vector targvelocity, float shotspeed, float shotdelay);