-
Автор темы
- #1
Код:
void c_antiaim::logic(c_csplayer* local, c_usercmd* cmd, bool &sendpacket)
{
bool on_move = local->velocity().length2d() > 0.1;
if (!on_move)
cmd->sidemove += local->tick_count() % 2 ? 1 : -1;
static float calcspin = 0;
if (sendpacket)
{
calcspin = (i::globals->curtime * (Vars.Ragebot.Antiaim.spinspeed * 100));
calcspin += 1.f;
calcspin = math::normalize_yaw(calcspin);
cmd->viewangles.y += calcspin;
}
if (!sendpacket)
cmd->viewangles.y = calcspin + local->tick_count() % 5 ? local->get_max_delta() : local->get_min_delta();
}