improvements
This commit is contained in:
parent
5108a9f587
commit
ed9c32c2a4
@ -10,6 +10,7 @@
|
||||
#include <hacks/ac/bhop.hpp>
|
||||
#include <settings/Bool.hpp>
|
||||
#include "common.hpp"
|
||||
#include "PlayerTools.hpp"
|
||||
#include "hack.hpp"
|
||||
|
||||
static settings::Bool enable{ "find-cheaters.enable", "0" };
|
||||
@ -65,6 +66,11 @@ void CreateMove()
|
||||
if (CE_GOOD(ent))
|
||||
{
|
||||
if ((CE_BYTE(ent, netvar.iLifeState) == 0))
|
||||
{
|
||||
if (player_tools::shouldTarget(ent) ==
|
||||
player_tools::IgnoreReason::DO_NOT_IGNORE ||
|
||||
player_tools::shouldTarget(ent) ==
|
||||
player_tools::IgnoreReason::LOCAL_PLAYER_LIST)
|
||||
{
|
||||
ac::aimbot::Update(ent);
|
||||
ac::antiaim::Update(ent);
|
||||
@ -73,6 +79,7 @@ void CreateMove()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ResetPlayer(int index)
|
||||
{
|
||||
|
@ -12,7 +12,8 @@ static settings::Int aimkey_mode{ "sandwichaim.aimkey-mode", "0" };
|
||||
|
||||
float sandwich_speed = 350.0f;
|
||||
float grav = 0.25f;
|
||||
std::pair<CachedEntity *, Vector> FindBestEnt(bool teammate, bool Predict, bool zcheck)
|
||||
std::pair<CachedEntity *, Vector> FindBestEnt(bool teammate, bool Predict,
|
||||
bool zcheck)
|
||||
{
|
||||
CachedEntity *bestent = nullptr;
|
||||
float bestscr = FLT_MAX;
|
||||
@ -21,7 +22,8 @@ std::pair<CachedEntity *, Vector> FindBestEnt(bool teammate, bool Predict, bool
|
||||
{
|
||||
CachedEntity *ent = ENTITY(i);
|
||||
if (CE_BAD(ent) || !(ent->m_bAlivePlayer()) ||
|
||||
(teammate && ent->m_iTeam() != LOCAL_E->m_iTeam()) || ent == LOCAL_E)
|
||||
(teammate && ent->m_iTeam() != LOCAL_E->m_iTeam()) ||
|
||||
ent == LOCAL_E)
|
||||
continue;
|
||||
if (!teammate && ent->m_iTeam() == LOCAL_E->m_iTeam())
|
||||
continue;
|
||||
@ -92,7 +94,8 @@ static HookedFunction
|
||||
}
|
||||
});
|
||||
static settings::Bool charge_aim{ "chargeaim.enable", "false" };
|
||||
static HookedFunction ChargeAimbot(HookedFunctions_types::HF_CreateMove, "ChargeAim", 1, [](){
|
||||
static HookedFunction
|
||||
ChargeAimbot(HookedFunctions_types::HF_CreateMove, "ChargeAim", 1, []() {
|
||||
if (!*charge_aim)
|
||||
return;
|
||||
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer())
|
||||
|
@ -361,8 +361,15 @@ bool NavToEnemy()
|
||||
{
|
||||
int nearestvalid{};
|
||||
if (!*heavy_mode)
|
||||
{
|
||||
int range = 0;
|
||||
while (nearestvalid == -1 && range < 5000)
|
||||
{
|
||||
nearestvalid =
|
||||
nav::FindNearestValidbyDist(ent->m_vecOrigin(), 1000, 4000);
|
||||
nav::FindNearestValidbyDist(ent->m_vecOrigin(), 2000 - range/4 , 6000 - range);
|
||||
range += 300.0f;
|
||||
}
|
||||
}
|
||||
else
|
||||
nearestvalid =
|
||||
nav::FindNearestValidbyDist(ent->m_vecOrigin(), 200, 1000);
|
||||
|
Reference in New Issue
Block a user