-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Код:
bool SkipTick = false;
static bool canHit = false;
bool HitCheck = false;
bool Hitinit = false;
autowall* g_autowall;
if (!g_cfg.ragebot.lag_exploit)
{
for (int i = 1; i < m_globals()->m_maxclients; ++i)
{
player_t* pPlayerEntity;
if (!pPlayerEntity || !pPlayerEntity->is_alive() || pPlayerEntity->IsDormant() || pPlayerEntity == g_ctx.local() || pPlayerEntity->m_iTeamNum() == g_ctx.local()->m_iTeamNum()) continue;
Vector EnemyHead = (pPlayerEntity->GetAbsOrigin().x, pPlayerEntity->GetAbsOrigin().y, (pPlayerEntity->hitbox_position(HITBOX_HEAD)));
Vector Head = (g_ctx.local()->GetAbsOrigin().x, g_ctx.local()->GetAbsOrigin().y, (g_ctx.local()->hitbox_position(0)));
Vector HeadExtr = (Head + (g_ctx.local()->m_vecVelocity() * TICKS_TO_TIME(15)));
Vector OriginExtr = ((g_ctx.local()->GetAbsOrigin() + (g_ctx.local()->GetAbsOrigin() * TICKS_TO_TIME(15))) + Vector(0, 0, 8));
if (fabs(g_ctx.local()->m_vecVelocity().Length2D()) > .1f && (g_autowall->CanHitFloatingPoint(HeadExtr, EnemyHead) || g_autowall->CanHitFloatingPoint(OriginExtr, EnemyHead)))
{
if (!Hitinit)
{
canHit = true;
Hitinit = true;
}
HitCheck = true;
}
}
if (!HitCheck)
Hitinit = false;
if (canHit)
{
g_ctx.send_packet = true;
SkipTick = true;
g_cfg.ragebot.lag_exploit = true;
canHit = false;
}
if (!g_cfg.ragebot.lag_exploit && !SkipTick)
{
if (m_clientstate()->m_net_channel->m_nChokedPackets < 15)
g_ctx.send_packet = false;
else
g_cfg.ragebot.lag_exploit = false;
}
}
if (!g_cfg.ragebot.lag_exploit)
{
float shift_time = 15 * m_globals()->m_intervalpertick;
if ((cmd->m_buttons && IN_ATTACK || IN_ATTACK2) && g_ctx.globals.weapon->m_flNextPrimaryAttack() <= m_globals()->m_curtime - shift_time)
{
g_ctx.globals.tickbase_shift = 15;
g_cfg.antiaim.triggers_fakelag_amount = true;
}
}
if (g_cfg.ragebot.weapon->lag_exploit)
g_cfg.ragebot.slow_teleport = false;
for (auto i = 0; i < tickbase_shift; i++)
{
auto command = m_input()->GetUserCmd(cmd[i].m_command_number);
auto v8 = m_input()->GetVerifiedUserCmd(cmd[i].m_command_number);
memcpy(command, &cmd[i], sizeof(CUserCmd));
bool v6 = command->m_tickcount == 0x7F7FFFFF;
command->m_predicted = v6;
v8->m_cmd = *command;
v8->m_crc = command->GetChecksum();
++net_channel->m_nChokedPackets;
++net_channel->m_nOutSequenceNr;
++m_clientstate()->m_choked_commands;
}