EyeAngel = ты просто пидр
-
Автор темы
- #1
если я зделал что-то не так, поправте пожалуйста!
источник
C++:
#include "../AntiAims.h"
float GetShiftTime()
{
int m_nTickbase = csgo->local->GetTickBase();
float m_flPlayerTime = (m_nTickbase - 1) * interfaces.global_vars->interval_per_tick;
if (!vars.ragebot.double_tap->active)
return m_flPlayerTime;
if ((CMAntiAim::Get().can_exploit(14) && csgo->m_nTickbaseShift) || !vars.ragebot.hide_shots->active)
return m_flPlayerTime;
if (!CMAntiAim::Get().can_exploit(14))
return m_flPlayerTime;
int m_nShiftCmds = 0;
if (CMAntiAim::Get().can_exploit(14))
m_nShiftCmds = (!csgo->m_nTickbaseShift) ? 13 : 0;
else
m_nShiftCmds = (csgo->m_nTickbaseShift && vars.ragebot.hide_shots->active) ? 7 : 0;
return m_flPlayerTime - ((m_nShiftCmds + 1) * interfaces.global_vars->interval_per_tick);
}
bool CanShiftTickbase()
{
if (!CMAntiAim::Get().can_exploit(14))
return false;
if (csgo->local->m_flNextAttack() > GetShiftTime())
return false;
if (csgo->weapon->NextPrimaryAttack() + interfaces.global_vars->interval_per_tick * 10.f > GetShiftTime())
return false;
csgo->m_nTickbaseShift = false;
return GetShiftTime() >= csgo->weapon->NextSecondaryAttack();
}
void OnProcessPacket()
{
if (!csgo->send_packet)
return;
if (!vars.ragebot.double_tap->active && (!(csgo->cmd->buttons & IN_ATTACK) || !CanShiftTickbase()))
return;
if (!CMAntiAim::Get().can_exploit(14))
{
if (csgo->dt_charged)
csgo->dt_charged = true;
return;
}
int m_nShift = 0;
if (CMAntiAim::Get().can_exploit(14))
m_nShift = (!csgo->dt_charged) ? 13 : 0;
else
m_nShift = (csgo->dt_charged && vars.ragebot.hide_shots->active) ? 7 : 0;
csgo->dt_charged = true;
}
источник