Find
Code:
uintptr_t* FPointer; __asm { MOV FPointer, EBP }
byte* SendPacket = (byte*)(*FPointer - 0x1C);
and replace with
Code:
PVOID pebp;
__asm mov pebp, ebp;
bool* pbSendPacket = (bool*)(*(DWORD*)pebp - 0x1C);
bool& bSendPacket = *pbSendPacket;
if (!pbSendPacket)
return false;
GLOBAL::should_send_packet = *pbSendPacket;
If u scroll down more u will find *SendPacket = GLOBAL::should_send_packet;
replace it with *pbSendPacket = GLOBAL::should_send_packet;
Now u need to change some stuff on antiaim.cpp
Real model for aa:
Code:
void CAntiAim::backjitter(SDK::CUserCmd* cmd)
{
if (!GLOBAL::should_send_packet)
cmd->viewangles.y += randnum(-180, 180);
else
cmd->viewangles.y += 180 + ((rand() % 15) - (15 * 0.5f));
}
Fake model for aa:
Code:
void CAntiAim::fakesideways(SDK::CUserCmd* cmd)
{
static int ChokedPackets = -1;
ChokedPackets++;
if (ChokedPackets < 1)
{
GLOBAL::should_send_packet = false;
cmd->viewangles.y += 90;
}
else
{
GLOBAL::should_send_packet = true;
cmd->viewangles.y -= 180;
ChokedPackets = -1;
}
}
Idk to explain too good, but it works. Hf.