Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Почему помойка лбу не брикается?

main public enemy
Эксперт
Эксперт
Статус
Оффлайн
Регистрация
30 Ноя 2019
Сообщения
1,531
Реакции
647
Не пойму какого хуйа он не брикается

Вызваю примерно вот так :
Код:
Expand Collapse Copy
if (!sendpacket)
{
if (breaklby)
{
sendpacket = true;
cmd->viewangles.y += 112;
}

}
// ps сам лбу апдейт лайк gladiatorz cheats
 
В Antiaim.cpp
C++:
Expand Collapse Copy
bool next_lby_update(const float yaw_to_break, sdk::CUserCmd* cmd)
{
auto local_player = ctx::client_ent_list->GetClientEntity(ctx::engine->GetLocalPlayer());
if (!local_player)
return false;
static float next_lby_update_time = 0;
// yo the immigrant retard, we have to get predicted curtime for the lby breaker to work
// yo the alipine retard, you already predict it in EngPred.cpp so why do it again.
float curtime = ctx::globals->curtime;
local_update = next_lby_update_time;
auto animstate = local_player->GetAnimState();
if (!animstate)
return false;
if (!(local_player->GetFlags() & FL_ONGROUND))
return false;
//in the sdk they dont use doubles. so im just gonna make this speed a float :)
//ik the breaker works but its more proper
if (animstate->speed_2d > 0.1f && !fake_walk)
{
next_lby_update_time = curtime + 0.22f;
}
if (next_lby_update_time < curtime)
{
next_lby_update_time = curtime + 1.1f;
return true;
}
return false;
}

if (Vars::options.lby_breaker_bool)
    {
        static float last_real;
        float lbydelta = Vars::options.delta_val;

        if (!GLOBAL::should_send_packet)
        {
            if (next_lby_update(cmd->viewangles.y - lbydelta, cmd)) {
                cmd->viewangles.y = last_real - lbydelta;
            }

            last_real = cmd->viewangles.y;
        }
    }

В variables.h
C++:
Expand Collapse Copy
bool lby_breaker_bool;
float delta_val;

В menu.cpp После АА
C++:
Expand Collapse Copy
ImGui::Checkbox("LBY Breaker", &Vars::options.lby_breaker_bool);
        if (Vars::options.lby_breaker_bool)
        {
            ImGui::SliderFloat("##lbydelta", &Vars::options.delta_val, 0.f, 180.f, "LBY Delta: %.f");
        }
 
Назад
Сверху Снизу