Начинающий
-
Автор темы
- #1
zeze's little exploit has some antipaste that i was too lazy to remove
Credit:[REDACTED]
Origin: ripped from a discord dm after the person who had it in their dm was token logged
Code:
Credit:[REDACTED]
Origin: ripped from a discord dm after the person who had it in their dm was token logged
Code:
C++:
// Crazy Desync Walk Magic Not NIGGAR
static int MoveCounter = 0;
static int FlickCounter = 0;
CUserCmd* cmd = g_cl.m_cmd;
cmd->m_view_angles.y = m_view - 180;
MoveCounter = MoveCounter + 1;
cmd->m_side_move = MoveCounter < g_menu.main.movement.desync_ticks.get() ? cmd->m_side_move : 0.f;
cmd->m_forward_move = MoveCounter < g_menu.main.movement.desync_ticks.get() ? cmd->m_forward_move : 0.f;
if (MoveCounter >= g_menu.main.movement.desync_ticks.get()+10) {
ang_t angle;
math::VectorAngles(g_cl.m_local->m_vecVelocity(), angle);
angle.y = g_cl.m_view_angles.y - angle.y;
vec3_t direction;
math::AngleVectors(angle, &direction);
vec3_t stop = direction * -1;
g_cl.m_cmd->m_forward_move = stop.x;
g_cl.m_cmd->m_side_move = stop.y;
}
if (MoveCounter >= 6 && MoveCounter <= 9 && !*g_cl.m_packet && !g_menu.main.movement.safe_desync.get()) {
static bool LastFlip = false;
g_cl.m_cmd->m_view_angles.y -= ((LastFlip != m_desync_invert || OffShit || (wtfwtfwtf && LastFlip == g_hvh.m_desync_invert)) ? 120 : 160) * (m_desync_invert ? -1 : 1);
LastFlip = m_desync_invert;
OffShit = false;
}
if (MoveCounter >= g_menu.main.movement.desync_ticks.get()+20 && !*g_cl.m_packet) {
MoveCounter = 0;
if (std::abs(math::NormalizedAngle((g_cl.m_local->m_PlayerAnimState()->m_goal_feet_yaw - Fake_STATE->m_goal_feet_yaw))) < 20) {
wtfwtfwtf = !wtfwtfwtf;
}
g_cl.m_cmd->m_view_angles.y += 110 * (m_desync_invert ? -1 : 1);
}
return;
}
is_flicking = false;
if (m_desync) {
if ((g_cl.m_cmd->m_forward_move == 0 && g_cl.m_cmd->m_side_move == 0)) {
if (g_cl.m_local->m_vecVelocity().length_2d() > 35)
return;
*g_cl.m_packet = !(g_cl.m_cmd->m_tick % 2 == 0);
CUserCmd* cmd = g_cl.m_cmd;
static int tick_counter = 0;
static bool flick_flip = false;
static bool after_flick = false;
if (cmd->m_tick % 2 == 0)
{
DoRealAntiAim();
tick_counter ++;
if (tick_counter == 7 || tick_counter == 1)
{
flick_flip = !flick_flip;
g_cl.m_cmd->m_view_angles.y += (flick_flip ? -120 : 110);
g_cl.m_cmd->m_forward_move += (flick_flip ? 21 : -21);
tick_counter = tick_counter == 7 ? 0 : tick_counter;
after_flick = true;
is_flicking = true;
return;
}
if (after_flick)
{
after_flick = false;
is_flicking = true;
g_cl.m_cmd->m_view_angles.y += 90;
}
return;
}
else
{
DoFakeAntiAim();
}
}
if (m_mode == AntiAimMode::STAND)
return;
}
if (g_cl.isShifting)
*g_cl.m_packet = true;
if (g_menu.main.antiaim.fake_yaw.get() && !g_cl.isShifting) {
// do not allow 2 consecutive sendpacket true if faking angles.
if (*g_cl.m_packet && g_cl.m_old_packet)
*g_cl.m_packet = false;
// run the real on sendpacket false.
if (!*g_cl.m_packet || !*g_cl.m_final_packet) {
DoRealAntiAim();
//real_viewangles = g_cl.m_cmd->m_view_angles;
}
// run the fake on sendpacket true.
else DoFakeAntiAim();
}
// no fake, just run real.
else {
DoRealAntiAim();
//real_viewangles = g_cl.m_cmd->m_view_angles;
}
}
Последнее редактирование: