Исходник Anti Aims

Начинающий
Статус
Оффлайн
Регистрация
16 Июл 2017
Сообщения
39
Реакции[?]
25
Поинты[?]
0
void FakeGayJitter(CUserCmd *pCmd, bool &bSendPacket)
{
int flip = (int)floorf(Interfaces::Globals->curtime / 0.5) % 2;
int flipserver = (int)floorf(Interfaces::Globals->curtime / 1.1) % 2;
pCmd->viewangles;
static int state = 1;
static int yaw = 0;
yaw = 135.f;
state++;


if (pCmd->command_number % 2 && yaw)
{
bSendPacket = false;
pCmd->viewangles.y += 180 + flipserver * 180;
}
else
{
bSendPacket = true;
pCmd->viewangles.y += yaw + flip * 179.8;
}
}

void Flip(CUserCmd *pCmd, bool &bSendPacket)
{
Vector origy = pCmd->viewangles;
int flip = (int)floorf(Interfaces::Globals->curtime / 0.5) % 2;
int flipfuck = (int)floorf(Interfaces::Globals->curtime / 0.12) % 2;
if (pCmd->command_number % 2)
{
bSendPacket = false;
pCmd->viewangles.y -= 145 + rand() % 20;
}
else
{
bSendPacket = true;
pCmd->viewangles.y += 180 + flip * hackManager.pLocal()->GetLowerBodyYaw() - 220 + rand() % 10;
}
}

void FakeHead(CUserCmd *pCmd, bool &bSendPacket)
{
float last_lby = 0.f;
float last_lby_time = 0.f;
static bool jitter_switch = false;
float outgoing_latency = 0.f; //inetchannel
float current_lby = hackManager.pLocal()->GetLowerBodyYaw();

if (current_lby != last_lby || fabs(hackManager.pLocal()->GetVelocity().Length2D()) > 0.1f)
{
last_lby_time = Interfaces::Globals->curtime;
last_lby = current_lby;
}

if (!bSendPacket)
{
if (fabs(last_lby_time - Interfaces::Globals->curtime) > 1.1f - outgoing_latency)
{
pCmd->viewangles.y += 90.f;
}
else
{
pCmd->viewangles.y += 180.f;
}
}
else
{
pCmd->viewangles.y -= 90.f;
}

bSendPacket = jitter_switch;
jitter_switch = !jitter_switch;
}
 
Сверху Снизу