- Status
- Offline
- Joined
- Nov 9, 2020
- Messages
- 28
- Reaction score
- 16
Today i will give u a Opposite/Sway AA for Weave stolen from yg.
negate defition.
Might be shit but i would appreciate some likes.
C++:
void CMAntiAim::Sidemove() {
if (!g_csgo->should_sidemove)
return;
float sideAmount = 2 * ((g_csgo->cmd->buttons & IN_DUCK || g_csgo->cmd->buttons & IN_WALK) ? 3.f : 0.505f);
if (g_csgo->local->GetVelocity().Length2D() <= 0.f || std::fabs(g_csgo->local->GetVelocity().z) <= 100.f)
g_csgo->cmd->sidemove += g_csgo->cmd->command_number % 2 ? sideAmount : -sideAmount;
}
float CMAntiAim::CorrectedTickbase()
{
CUserCmd* last_ucmd = nullptr;
int corrected_tickbase = 0;
corrected_tickbase = (!last_ucmd || last_ucmd->hasbeenpredicted) ? (float)g_csgo->local->GetTickBase() : corrected_tickbase++;
last_ucmd = g_csgo->cmd;
float corrected_curtime = corrected_tickbase * interfaces.global_vars->interval_per_tick;
return corrected_curtime;
};
bool lby_update()
{
static float next_lby_update = 0.f;
auto state = g_csgo->local->GetPlayerAnimState();
float curtime = interfaces.global_vars->curtime;
if (!state)
return false;
if (g_csgo->local->GetAbsVelocity().Length2D() > 0.1f || fabs(g_csgo->local->GetAbsVelocity().z) > 100.f)
{
next_lby_update = curtime + 0.22f;
}
if (next_lby_update < curtime)
{
next_lby_update = curtime + 1.1f;
return true;
}
return false;
}
void CMAntiAim::PredictLbyUpdate()
{
g_csgo->InLbyUpdate = false;
static float next_lby_update_time = 0;
auto local = g_csgo->local;
if (!(local->GetFlags() & 1))
return;
if (local->GetVelocity().Length2D() > 0.1f)
next_lby_update_time = CorrectedTickbase() + 0.22f;
else if (next_lby_update_time - CorrectedTickbase() <= 0.0f) {
next_lby_update_time = CorrectedTickbase() + 1.1f;
g_csgo->InLbyUpdate = true;
g_csgo->send_packet = false;
}
else if (next_lby_update_time - CorrectedTickbase() <= 1 * interfaces.global_vars->interval_per_tick)
g_csgo->send_packet = true;
}
negate defition.
static bool negate = false;
Might be shit but i would appreciate some likes.