X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Faim.qh;h=5a1cb16c4d05a8a56d9f8cc1b2747cf8770db70e;hb=37cf62041a76248472ef6a78feaaed33e35a2260;hp=fb191a91cce7e61f9f0c930d78c85a988bfd979b;hpb=15a18e8ca7c55ac8187b9ea266d15c2d6e0cb869;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/aim.qh b/qcsrc/server/bot/aim.qh index fb191a91c..5a1cb16c4 100644 --- a/qcsrc/server/bot/aim.qh +++ b/qcsrc/server/bot/aim.qh @@ -1,5 +1,4 @@ -#ifndef AIM_H -#define AIM_H +#pragma once /* * Globals and Fields */ @@ -86,15 +85,15 @@ vector shotdir; * Functions */ -void lag_update(); -void bot_lagfunc(float t, float f1, float f2, entity e1, vector v1, vector v2, vector v3, vector v4); +float lag_additem(entity this, float t, float f1, float f2, entity e1, vector v1, vector v2, vector v3, vector v4); +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 e); -float bot_aimdir(vector v, float maxfiredeviation); -float bot_aim(float shotspeed, float shotspeedupward, float maxshottime, float applygravity); +float bot_shouldattack(entity this, entity targ); +float bot_aimdir(entity this, vector v, float maxfiredeviation); +bool bot_aim(entity this, float shotspeed, float shotspeedupward, float maxshottime, bool applygravity); 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); -.void(float t, float f1, float f2, entity e1, vector v1, vector v2, vector v3, vector v4) lag_func; -#endif +.void(entity this, float t, float f1, float f2, entity e1, vector v1, vector v2, vector v3, vector v4) lag_func;