more stuff
This commit is contained in:
parent
0bc32750b4
commit
4f8b046830
@ -110,8 +110,8 @@ bool BacktrackAimbot()
|
|||||||
int iBestTarget = hacks::shared::backtrack::iBestTarget;
|
int iBestTarget = hacks::shared::backtrack::iBestTarget;
|
||||||
if (iBestTarget == -1)
|
if (iBestTarget == -1)
|
||||||
return true;
|
return true;
|
||||||
int iBestTick = hacks::shared::backtrack::BestTick;
|
int iBestTick = hacks::shared::backtrack::BestTick;
|
||||||
int tickcnt = 0;
|
int tickcnt = 0;
|
||||||
CachedEntity *tar = ENTITY(iBestTarget);
|
CachedEntity *tar = ENTITY(iBestTarget);
|
||||||
if (CE_BAD(tar))
|
if (CE_BAD(tar))
|
||||||
return true;
|
return true;
|
||||||
@ -123,9 +123,7 @@ bool BacktrackAimbot()
|
|||||||
if (!IsVectorVisible(g_pLocalPlayer->v_Eye, i.hitboxes.at(head).center,
|
if (!IsVectorVisible(g_pLocalPlayer->v_Eye, i.hitboxes.at(head).center,
|
||||||
true))
|
true))
|
||||||
return true;
|
return true;
|
||||||
Vector &angles = NET_VECTOR(RAW_ENT(tar), netvar.m_angEyeAngles);
|
|
||||||
float &simtime = NET_FLOAT(RAW_ENT(tar), netvar.m_flSimulationTime);
|
float &simtime = NET_FLOAT(RAW_ENT(tar), netvar.m_flSimulationTime);
|
||||||
angles.y = i.viewangles;
|
|
||||||
simtime = i.simtime;
|
simtime = i.simtime;
|
||||||
current_user_cmd->tick_count = i.tickcount;
|
current_user_cmd->tick_count = i.tickcount;
|
||||||
Vector tr = (i.hitboxes.at(head).center - g_pLocalPlayer->v_Eye);
|
Vector tr = (i.hitboxes.at(head).center - g_pLocalPlayer->v_Eye);
|
||||||
@ -134,13 +132,13 @@ bool BacktrackAimbot()
|
|||||||
// Clamping is important
|
// Clamping is important
|
||||||
fClampAngle(angles2);
|
fClampAngle(angles2);
|
||||||
// Slow aim
|
// Slow aim
|
||||||
if (slow_aim)
|
if (*slow_aim)
|
||||||
DoSlowAim(angles2);
|
DoSlowAim(angles2);
|
||||||
else if (silent)
|
else if (silent)
|
||||||
g_pLocalPlayer->bUseSilentAngles = true;
|
g_pLocalPlayer->bUseSilentAngles = true;
|
||||||
// Set angles
|
// Set angles
|
||||||
current_user_cmd->viewangles = angles2;
|
current_user_cmd->viewangles = angles2;
|
||||||
if (autoshoot && !slow_aim)
|
if (autoshoot && !*slow_aim)
|
||||||
current_user_cmd->buttons |= IN_ATTACK;
|
current_user_cmd->buttons |= IN_ATTACK;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,9 @@
|
|||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
static settings::Bool enable{ "antiaim.enable", "0" };
|
static settings::Bool enable{ "antiaim.enable", "0" };
|
||||||
|
static settings::Bool crouch{ "antiaim.crouch", "0" };
|
||||||
|
static settings::Int dur{ "antiaim.crouch.dur", "15" };
|
||||||
|
static settings::Int dursneak{ "antiaim.crouch.dursneak", "15" };
|
||||||
static settings::Float yaw{ "antiaim.yaw.static", "0" };
|
static settings::Float yaw{ "antiaim.yaw.static", "0" };
|
||||||
static settings::Int yaw_mode{ "antiaim.yaw.mode", "0" };
|
static settings::Int yaw_mode{ "antiaim.yaw.mode", "0" };
|
||||||
|
|
||||||
@ -369,38 +371,37 @@ float useEdge(float edgeViewAngle)
|
|||||||
Timer delay{};
|
Timer delay{};
|
||||||
int val = 0;
|
int val = 0;
|
||||||
int value[32] = { 0 };
|
int value[32] = { 0 };
|
||||||
/*void FakeCrouch(CUserCmd *cmd)
|
void FakeCrouch(CUserCmd *cmd)
|
||||||
{
|
{
|
||||||
if (!crouch)
|
if (!crouch || !(cmd->buttons & IN_DUCK))
|
||||||
return;
|
return;
|
||||||
if (cmd->buttons & IN_ATTACK)
|
static bool bDoCrouch = false;
|
||||||
{
|
static int iCrouchCount = 0;
|
||||||
*bSendPackets = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
static bool bDuck = false;
|
|
||||||
|
|
||||||
static int waittime = 0;
|
if (iCrouchCount == *dur)
|
||||||
|
|
||||||
if (waittime)
|
|
||||||
{
|
{
|
||||||
waittime--;
|
iCrouchCount = 0;
|
||||||
return;
|
bDoCrouch = !bDoCrouch;
|
||||||
}
|
|
||||||
bDuck = !bDuck;
|
|
||||||
|
|
||||||
if (bDuck)
|
|
||||||
{
|
|
||||||
cmd->buttons |= IN_DUCK;
|
|
||||||
*bSendPackets = false;
|
|
||||||
waittime = 15;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cmd->buttons &= ~IN_DUCK;
|
iCrouchCount++;
|
||||||
|
}
|
||||||
|
if (bDoCrouch)
|
||||||
|
{
|
||||||
|
cmd->buttons |= IN_DUCK;
|
||||||
*bSendPackets = true;
|
*bSendPackets = true;
|
||||||
}
|
}
|
||||||
}*/
|
else
|
||||||
|
{
|
||||||
|
if (iCrouchCount + *dursneak < *dur)
|
||||||
|
cmd->buttons &= ~IN_DUCK;
|
||||||
|
*bSendPackets = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((cmd->buttons & IN_ATTACK))
|
||||||
|
*bSendPackets = true;
|
||||||
|
}
|
||||||
void ProcessUserCmd(CUserCmd *cmd)
|
void ProcessUserCmd(CUserCmd *cmd)
|
||||||
{
|
{
|
||||||
if (!enable)
|
if (!enable)
|
||||||
@ -605,7 +606,7 @@ void ProcessUserCmd(CUserCmd *cmd)
|
|||||||
p = GetAAAAPitch();
|
p = GetAAAAPitch();
|
||||||
}
|
}
|
||||||
g_pLocalPlayer->bUseSilentAngles = true;
|
g_pLocalPlayer->bUseSilentAngles = true;
|
||||||
// FakeCrouch(cmd);
|
FakeCrouch(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isEnabled()
|
bool isEnabled()
|
||||||
|
@ -293,7 +293,7 @@ std::pair<int, int> getBestEntBestTick()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float bestFov = 100.0f;
|
float bestFov = 180.0f;
|
||||||
for (int i = 0; i < g_IEngine->GetMaxClients(); i++)
|
for (int i = 0; i < g_IEngine->GetMaxClients(); i++)
|
||||||
{
|
{
|
||||||
CachedEntity *tar = ENTITY(i);
|
CachedEntity *tar = ENTITY(i);
|
||||||
|
@ -169,7 +169,7 @@ Vector EnginePrediction(CachedEntity *entity, float time)
|
|||||||
NET_VECTOR(ent, 0x354) = entity->m_vecOrigin();
|
NET_VECTOR(ent, 0x354) = entity->m_vecOrigin();
|
||||||
|
|
||||||
//*g_PredictionRandomSeed =
|
//*g_PredictionRandomSeed =
|
||||||
//MD5_PseudoRandom(current_user_cmd->command_number) &
|
// MD5_PseudoRandom(current_user_cmd->command_number) &
|
||||||
// 0x7FFFFFFF;
|
// 0x7FFFFFFF;
|
||||||
g_IGameMovement->StartTrackPredictionErrors(
|
g_IGameMovement->StartTrackPredictionErrors(
|
||||||
reinterpret_cast<CBasePlayer *>(ent));
|
reinterpret_cast<CBasePlayer *>(ent));
|
||||||
|
@ -374,7 +374,7 @@ int CUtlString::Format(const char *pFormat, ...)
|
|||||||
int CUtlString::FormatV(const char *pFormat, va_list marker)
|
int CUtlString::FormatV(const char *pFormat, va_list marker)
|
||||||
{
|
{
|
||||||
char tmpBuf[4096]; //< Nice big 4k buffer, as much memory as my first
|
char tmpBuf[4096]; //< Nice big 4k buffer, as much memory as my first
|
||||||
//computer had, a Radio Shack Color Computer
|
// computer had, a Radio Shack Color Computer
|
||||||
|
|
||||||
// va_start( marker, pFormat );
|
// va_start( marker, pFormat );
|
||||||
int len = V_vsprintf_safe(tmpBuf, pFormat, marker);
|
int len = V_vsprintf_safe(tmpBuf, pFormat, marker);
|
||||||
|
@ -69,7 +69,7 @@ static inline int TIXML_VSNPRINTF(char *buffer, size_t size, const char *format,
|
|||||||
// Microsoft Visual Studio 2003 and not WinCE.
|
// Microsoft Visual Studio 2003 and not WinCE.
|
||||||
#define TIXML_VSCPRINTF \
|
#define TIXML_VSCPRINTF \
|
||||||
_vscprintf // VS2003's C runtime has this, but VC6 C runtime or WinCE SDK
|
_vscprintf // VS2003's C runtime has this, but VC6 C runtime or WinCE SDK
|
||||||
// doesn't have.
|
// doesn't have.
|
||||||
#else
|
#else
|
||||||
// Microsoft Visual Studio 2003 and earlier or WinCE.
|
// Microsoft Visual Studio 2003 and earlier or WinCE.
|
||||||
static inline int TIXML_VSCPRINTF(const char *format, va_list va)
|
static inline int TIXML_VSCPRINTF(const char *format, va_list va)
|
||||||
|
Reference in New Issue
Block a user