fix more stuff with backtrack
This commit is contained in:
parent
3de69d9346
commit
c033949743
@ -91,23 +91,21 @@ AimbotCalculatedData_s calculated_data_array[2048]{};
|
|||||||
#define IsMelee GetWeaponMode() == weapon_melee
|
#define IsMelee GetWeaponMode() == weapon_melee
|
||||||
bool BacktrackAimbot()
|
bool BacktrackAimbot()
|
||||||
{
|
{
|
||||||
if (!hacks::shared::backtrack::isBacktrackEnabled() || !backtrackAimbot)
|
if (!hacks::shared::backtrack::isBacktrackEnabled() || !*backtrackAimbot)
|
||||||
return false;
|
return false;
|
||||||
if (aimkey && !aimkey.isKeyDown())
|
if (aimkey && !aimkey.isKeyDown())
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer() || !CanShoot())
|
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer() || !CanShoot())
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (zoomed_only && !g_pLocalPlayer->bZoomed &&
|
if (*zoomed_only && !g_pLocalPlayer->bZoomed &&
|
||||||
!(current_user_cmd->buttons & IN_ATTACK))
|
!(current_user_cmd->buttons & IN_ATTACK))
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
int iBestTarget = hacks::shared::backtrack::iBestTarget;
|
int iBestTarget = hacks::shared::backtrack::iBestTarget;
|
||||||
if (iBestTarget == -1)
|
if (iBestTarget == -1)
|
||||||
return true;
|
return true;
|
||||||
CachedEntity *tar = ENTITY(iBestTarget);
|
|
||||||
if (CE_BAD(tar))
|
|
||||||
return false;
|
|
||||||
int tickcnt = 0;
|
int tickcnt = 0;
|
||||||
for (auto i : hacks::shared::backtrack::headPositions[iBestTarget])
|
for (auto i : hacks::shared::backtrack::headPositions[iBestTarget])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user