UwUHax/aimbot.h
2021-08-27 18:58:23 +07:00

44 lines
872 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Aimbot
{
public:
void Main(CUserCmd* pUserCmd, CBaseEntity* pLocal);
int GetAimBone(CBaseEntity* e);
bool GetHitboxpos(CBaseEntity* pLocal, CBaseEntity* Entitiy, Vector &vPos, int iHitBox, matrix3x4_t matrix[128]);
void ApplySpread(int sequence_number, CBaseEntity *plocal, Vector &angles, float factor);
void FixMovement(CUserCmd* c, Vector &qOld);
void ApplyRecoil(CBaseEntity *plocal, Vector &angles, float factor);
bool IsVisible(Vector& vecStart, Vector& vecEnd, CBaseEntity* pLocal, CBaseEntity* target);
void triggerbot(CUserCmd *cmd, CBaseEntity* local);
void Reset()
{
iTarget = -1;
fBestTarget = 99999.9f;
vTarget.Zero();
vFinal.Zero();
}
bool HasTarget()
{
return (iTarget != -1);
}
int iTarget;
float fBestTarget;
Vector vTarget;
Vector vFinal;
Vector vEyePos;
};
extern Aimbot g_Aimbot;