C++ DoubleTap, Cl_Move for legendware

Забаненный
Статус
Оффлайн
Регистрация
30 Июн 2021
Сообщения
17
Реакции[?]
2
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сам дт
Код:
bool misc::double_tap(CUserCmd* m_pcmd)
{
    double_tap_enabled = true;

    static auto recharge_rapid_fire = false;
    static bool firing_dt = false;
    static int last_double_tap = 0;

    if (recharge_rapid_fire)
    {
        recharge_rapid_fire = false;
        recharging_double_tap = true;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    auto max_tickbase_shift = g_ctx.globals.weapon->get_max_tickbase_shift();

    if (recharging_double_tap)
    {
        bool in_attack = m_pcmd->m_buttons & IN_ATTACK;

        bool can_recharge = g_ctx.globals.weapon->is_sniper() ? g_ctx.globals.weapon->can_fires(true, max_tickbase_shift) : fabs(g_ctx.globals.fixed_tickbase - last_double_tap) > TIME_TO_TICKS(0.75f);

        if (!in_attack && !aim::get().should_stop && can_recharge)
        {
            recharging_double_tap = false;
            double_tap_key = true;
            firing_dt = false;
        }
        else if (in_attack)
        {
            firing_dt = true;
            last_double_tap = g_ctx.globals.fixed_tickbase;
        }
    }

    if (!g_cfg.ragebot.enable)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (!g_cfg.ragebot.double_tap)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    static bool was_in_dt = false;

    if (g_cfg.ragebot.double_tap_key.key <= KEY_NONE || g_cfg.ragebot.double_tap_key.key >= KEY_MAX)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (double_tap_key && g_cfg.ragebot.double_tap_key.key != g_cfg.antiaim.hide_shots_key.key)
        hide_shots_key = false;

    if (!double_tap_key || g_ctx.local()->m_bGunGameImmunity() || g_ctx.local()->m_fFlags() & FL_FROZEN || g_ctx.globals.fakeducking)
    {
        double_tap_enabled = false;

        if (!firing_dt && was_in_dt)
        {
            g_ctx.globals.trigger_teleport = true;
            g_ctx.globals.teleport_amount = 14;

            was_in_dt = false;
        }

        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;

        return false;
    }

    if (m_gamerules()->m_bIsValveDS())
    {
        double_tap_enabled = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (antiaim::get().freeze_check)
        return true;

    was_in_dt = true;

    bool can_peek = !g_ctx.globals.weapon->is_non_aim() && key_binds::get().get_key_bind_state(18);

    if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER
        && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER
        && (m_pcmd->m_buttons & IN_ATTACK || m_pcmd->m_buttons & IN_ATTACK2 && g_ctx.globals.weapon->is_knife())) //-V648
    {
        auto next_command_number = m_pcmd->m_command_number + 1;
        auto user_cmd = m_input()->GetUserCmd(next_command_number);

        memcpy(user_cmd, m_pcmd, sizeof(CUserCmd));
        user_cmd->m_command_number = next_command_number;

        util::copy_command(user_cmd, max_tickbase_shift);

        g_ctx.send_packet = true;

        if (g_ctx.globals.aimbot_working)
        {
            g_ctx.globals.double_tap_aim = true;
            g_ctx.globals.double_tap_aim_check = true;
        }

        recharge_rapid_fire = true;
        double_tap_enabled = false;
        double_tap_key = false;

        last_double_tap = g_ctx.globals.fixed_tickbase;
        firing_dt = true;
    }
    else if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER)
        g_ctx.globals.tickbase_shift = max_tickbase_shift;

    return true;
}
сам кл мове
Код:
using CLMove_t = void(__vectorcall*)(float, bool);

void __vectorcall hooks::hooked_clmove(float accumulated_extra_samples, bool bFinalTick)
{
    ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

    if (g_ctx.available() && g_ctx.local()->is_alive())
    {
        if (g_ctx.globals.trigger_teleport)
        {
            for (int i = 0; i < g_ctx.globals.teleport_amount; i++)
                ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

            g_ctx.globals.teleport_amount = 0;
            g_ctx.globals.trigger_teleport = false;
        }
    }
}
чего не будет хватать пишите
 
Пользователь
Статус
Оффлайн
Регистрация
22 Июн 2020
Сообщения
183
Реакции[?]
69
Поинты[?]
41K
чего не будет хватать пишите
а речардж где?

C++:
void __cdecl H::hkCL_Move(float flExtraSamples, bool bFinalTick) {
    if (!ragebot_doubletap.GetState() && !ragebot_hideshots.GetState())
        return oCL_Move(flExtraSamples, bFinalTick);

    if (ShouldCharge && DoubletapCharge < TicksToCharge) {
        DoubletapCharge++;
        return;
    }

    oCL_Move(flExtraSamples, bFinalTick);

    IsShifting = true;
    {
        for (TicksToShift = min(DoubletapCharge, TicksToShift); TicksToShift > 0; TicksToShift--, DoubletapCharge--)
            oCL_Move(flExtraSamples, bFinalTick);
    }
    IsShifting = false;
}
вот мой хук
 
главный бравл старсер
Эксперт
Статус
Оффлайн
Регистрация
10 Мар 2018
Сообщения
990
Реакции[?]
406
Поинты[?]
0
Сам дт
Код:
bool misc::double_tap(CUserCmd* m_pcmd)
{
    double_tap_enabled = true;

    static auto recharge_rapid_fire = false;
    static bool firing_dt = false;
    static int last_double_tap = 0;

    if (recharge_rapid_fire)
    {
        recharge_rapid_fire = false;
        recharging_double_tap = true;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    auto max_tickbase_shift = g_ctx.globals.weapon->get_max_tickbase_shift();

    if (recharging_double_tap)
    {
        bool in_attack = m_pcmd->m_buttons & IN_ATTACK;

        bool can_recharge = g_ctx.globals.weapon->is_sniper() ? g_ctx.globals.weapon->can_fires(true, max_tickbase_shift) : fabs(g_ctx.globals.fixed_tickbase - last_double_tap) > TIME_TO_TICKS(0.75f);

        if (!in_attack && !aim::get().should_stop && can_recharge)
        {
            recharging_double_tap = false;
            double_tap_key = true;
            firing_dt = false;
        }
        else if (in_attack)
        {
            firing_dt = true;
            last_double_tap = g_ctx.globals.fixed_tickbase;
        }
    }

    if (!g_cfg.ragebot.enable)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (!g_cfg.ragebot.double_tap)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    static bool was_in_dt = false;

    if (g_cfg.ragebot.double_tap_key.key <= KEY_NONE || g_cfg.ragebot.double_tap_key.key >= KEY_MAX)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (double_tap_key && g_cfg.ragebot.double_tap_key.key != g_cfg.antiaim.hide_shots_key.key)
        hide_shots_key = false;

    if (!double_tap_key || g_ctx.local()->m_bGunGameImmunity() || g_ctx.local()->m_fFlags() & FL_FROZEN || g_ctx.globals.fakeducking)
    {
        double_tap_enabled = false;

        if (!firing_dt && was_in_dt)
        {
            g_ctx.globals.trigger_teleport = true;
            g_ctx.globals.teleport_amount = 14;

            was_in_dt = false;
        }

        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;

        return false;
    }

    if (m_gamerules()->m_bIsValveDS())
    {
        double_tap_enabled = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (antiaim::get().freeze_check)
        return true;

    was_in_dt = true;

    bool can_peek = !g_ctx.globals.weapon->is_non_aim() && key_binds::get().get_key_bind_state(18);

    if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER
        && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER
        && (m_pcmd->m_buttons & IN_ATTACK || m_pcmd->m_buttons & IN_ATTACK2 && g_ctx.globals.weapon->is_knife())) //-V648
    {
        auto next_command_number = m_pcmd->m_command_number + 1;
        auto user_cmd = m_input()->GetUserCmd(next_command_number);

        memcpy(user_cmd, m_pcmd, sizeof(CUserCmd));
        user_cmd->m_command_number = next_command_number;

        util::copy_command(user_cmd, max_tickbase_shift);

        g_ctx.send_packet = true;

        if (g_ctx.globals.aimbot_working)
        {
            g_ctx.globals.double_tap_aim = true;
            g_ctx.globals.double_tap_aim_check = true;
        }

        recharge_rapid_fire = true;
        double_tap_enabled = false;
        double_tap_key = false;

        last_double_tap = g_ctx.globals.fixed_tickbase;
        firing_dt = true;
    }
    else if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER)
        g_ctx.globals.tickbase_shift = max_tickbase_shift;

    return true;
}
сам кл мове
Код:
using CLMove_t = void(__vectorcall*)(float, bool);

void __vectorcall hooks::hooked_clmove(float accumulated_extra_samples, bool bFinalTick)
{
    ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

    if (g_ctx.available() && g_ctx.local()->is_alive())
    {
        if (g_ctx.globals.trigger_teleport)
        {
            for (int i = 0; i < g_ctx.globals.teleport_amount; i++)
                ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

            g_ctx.globals.teleport_amount = 0;
            g_ctx.globals.trigger_teleport = false;
        }
    }
}
чего не будет хватать пишите
Genius запостил с енслейвера(ноу реклама), где опай не доделал дтшку
 
Забаненный
Статус
Оффлайн
Регистрация
29 Июл 2021
Сообщения
1
Реакции[?]
0
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
what is the defenition of original_clmove?
 
Участник
Статус
Оффлайн
Регистрация
30 Авг 2020
Сообщения
660
Реакции[?]
396
Поинты[?]
16K
Сам дт
Код:
bool misc::double_tap(CUserCmd* m_pcmd)
{
    double_tap_enabled = true;

    static auto recharge_rapid_fire = false;
    static bool firing_dt = false;
    static int last_double_tap = 0;

    if (recharge_rapid_fire)
    {
        recharge_rapid_fire = false;
        recharging_double_tap = true;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    auto max_tickbase_shift = g_ctx.globals.weapon->get_max_tickbase_shift();

    if (recharging_double_tap)
    {
        bool in_attack = m_pcmd->m_buttons & IN_ATTACK;

        bool can_recharge = g_ctx.globals.weapon->is_sniper() ? g_ctx.globals.weapon->can_fires(true, max_tickbase_shift) : fabs(g_ctx.globals.fixed_tickbase - last_double_tap) > TIME_TO_TICKS(0.75f);

        if (!in_attack && !aim::get().should_stop && can_recharge)
        {
            recharging_double_tap = false;
            double_tap_key = true;
            firing_dt = false;
        }
        else if (in_attack)
        {
            firing_dt = true;
            last_double_tap = g_ctx.globals.fixed_tickbase;
        }
    }

    if (!g_cfg.ragebot.enable)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (!g_cfg.ragebot.double_tap)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    static bool was_in_dt = false;

    if (g_cfg.ragebot.double_tap_key.key <= KEY_NONE || g_cfg.ragebot.double_tap_key.key >= KEY_MAX)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (double_tap_key && g_cfg.ragebot.double_tap_key.key != g_cfg.antiaim.hide_shots_key.key)
        hide_shots_key = false;

    if (!double_tap_key || g_ctx.local()->m_bGunGameImmunity() || g_ctx.local()->m_fFlags() & FL_FROZEN || g_ctx.globals.fakeducking)
    {
        double_tap_enabled = false;

        if (!firing_dt && was_in_dt)
        {
            g_ctx.globals.trigger_teleport = true;
            g_ctx.globals.teleport_amount = 14;

            was_in_dt = false;
        }

        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;

        return false;
    }

    if (m_gamerules()->m_bIsValveDS())
    {
        double_tap_enabled = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (antiaim::get().freeze_check)
        return true;

    was_in_dt = true;

    bool can_peek = !g_ctx.globals.weapon->is_non_aim() && key_binds::get().get_key_bind_state(18);

    if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER
        && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER
        && (m_pcmd->m_buttons & IN_ATTACK || m_pcmd->m_buttons & IN_ATTACK2 && g_ctx.globals.weapon->is_knife())) //-V648
    {
        auto next_command_number = m_pcmd->m_command_number + 1;
        auto user_cmd = m_input()->GetUserCmd(next_command_number);

        memcpy(user_cmd, m_pcmd, sizeof(CUserCmd));
        user_cmd->m_command_number = next_command_number;

        util::copy_command(user_cmd, max_tickbase_shift);

        g_ctx.send_packet = true;

        if (g_ctx.globals.aimbot_working)
        {
            g_ctx.globals.double_tap_aim = true;
            g_ctx.globals.double_tap_aim_check = true;
        }

        recharge_rapid_fire = true;
        double_tap_enabled = false;
        double_tap_key = false;

        last_double_tap = g_ctx.globals.fixed_tickbase;
        firing_dt = true;
    }
    else if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER)
        g_ctx.globals.tickbase_shift = max_tickbase_shift;

    return true;
}
сам кл мове
Код:
using CLMove_t = void(__vectorcall*)(float, bool);

void __vectorcall hooks::hooked_clmove(float accumulated_extra_samples, bool bFinalTick)
{
    ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

    if (g_ctx.available() && g_ctx.local()->is_alive())
    {
        if (g_ctx.globals.trigger_teleport)
        {
            for (int i = 0; i < g_ctx.globals.teleport_amount; i++)
                ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

            g_ctx.globals.teleport_amount = 0;
            g_ctx.globals.trigger_teleport = false;
        }
    }
}
чего не будет хватать пишите
Ахахахахахах почему настолько вронг.
 
Пользователь
Статус
Оффлайн
Регистрация
19 Ноя 2019
Сообщения
263
Реакции[?]
50
Поинты[?]
2K
/del trash post, incomplete + everything wrong

why? heres why:
1. you're calling original dt therefore not using cl move
2. cl move is not called anywhere so its not even working
3. not even cl move hook in hooks.cpp or hooks.hpp (reffering to 2.)
 
рукожоп
Пользователь
Статус
Оффлайн
Регистрация
8 Авг 2019
Сообщения
347
Реакции[?]
37
Поинты[?]
0
Сам дт
Код:
bool misc::double_tap(CUserCmd* m_pcmd)
{
    double_tap_enabled = true;

    static auto recharge_rapid_fire = false;
    static bool firing_dt = false;
    static int last_double_tap = 0;

    if (recharge_rapid_fire)
    {
        recharge_rapid_fire = false;
        recharging_double_tap = true;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    auto max_tickbase_shift = g_ctx.globals.weapon->get_max_tickbase_shift();

    if (recharging_double_tap)
    {
        bool in_attack = m_pcmd->m_buttons & IN_ATTACK;

        bool can_recharge = g_ctx.globals.weapon->is_sniper() ? g_ctx.globals.weapon->can_fires(true, max_tickbase_shift) : fabs(g_ctx.globals.fixed_tickbase - last_double_tap) > TIME_TO_TICKS(0.75f);

        if (!in_attack && !aim::get().should_stop && can_recharge)
        {
            recharging_double_tap = false;
            double_tap_key = true;
            firing_dt = false;
        }
        else if (in_attack)
        {
            firing_dt = true;
            last_double_tap = g_ctx.globals.fixed_tickbase;
        }
    }

    if (!g_cfg.ragebot.enable)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (!g_cfg.ragebot.double_tap)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    static bool was_in_dt = false;

    if (g_cfg.ragebot.double_tap_key.key <= KEY_NONE || g_cfg.ragebot.double_tap_key.key >= KEY_MAX)
    {
        double_tap_enabled = false;
        double_tap_key = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (double_tap_key && g_cfg.ragebot.double_tap_key.key != g_cfg.antiaim.hide_shots_key.key)
        hide_shots_key = false;

    if (!double_tap_key || g_ctx.local()->m_bGunGameImmunity() || g_ctx.local()->m_fFlags() & FL_FROZEN || g_ctx.globals.fakeducking)
    {
        double_tap_enabled = false;

        if (!firing_dt && was_in_dt)
        {
            g_ctx.globals.trigger_teleport = true;
            g_ctx.globals.teleport_amount = 14;

            was_in_dt = false;
        }

        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;

        return false;
    }

    if (m_gamerules()->m_bIsValveDS())
    {
        double_tap_enabled = false;
        g_ctx.globals.ticks_allowed = 0;
        g_ctx.globals.next_tickbase_shift = 0;
        return false;
    }

    if (antiaim::get().freeze_check)
        return true;

    was_in_dt = true;

    bool can_peek = !g_ctx.globals.weapon->is_non_aim() && key_binds::get().get_key_bind_state(18);

    if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER
        && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER
        && (m_pcmd->m_buttons & IN_ATTACK || m_pcmd->m_buttons & IN_ATTACK2 && g_ctx.globals.weapon->is_knife())) //-V648
    {
        auto next_command_number = m_pcmd->m_command_number + 1;
        auto user_cmd = m_input()->GetUserCmd(next_command_number);

        memcpy(user_cmd, m_pcmd, sizeof(CUserCmd));
        user_cmd->m_command_number = next_command_number;

        util::copy_command(user_cmd, max_tickbase_shift);

        g_ctx.send_packet = true;

        if (g_ctx.globals.aimbot_working)
        {
            g_ctx.globals.double_tap_aim = true;
            g_ctx.globals.double_tap_aim_check = true;
        }

        recharge_rapid_fire = true;
        double_tap_enabled = false;
        double_tap_key = false;

        last_double_tap = g_ctx.globals.fixed_tickbase;
        firing_dt = true;
    }
    else if (!g_ctx.globals.weapon->is_grenade() && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_TASER && g_ctx.globals.weapon->m_iItemDefinitionIndex() != WEAPON_REVOLVER)
        g_ctx.globals.tickbase_shift = max_tickbase_shift;

    return true;
}
сам кл мове
Код:
using CLMove_t = void(__vectorcall*)(float, bool);

void __vectorcall hooks::hooked_clmove(float accumulated_extra_samples, bool bFinalTick)
{
    ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

    if (g_ctx.available() && g_ctx.local()->is_alive())
    {
        if (g_ctx.globals.trigger_teleport)
        {
            for (int i = 0; i < g_ctx.globals.teleport_amount; i++)
                ((CLMove_t)original_clmove)(accumulated_extra_samples, bFinalTick);

            g_ctx.globals.teleport_amount = 0;
            g_ctx.globals.trigger_teleport = false;
        }
    }
}
чего не будет хватать пишите
Код:
        util::copy_command(user_cmd, max_tickbase_shift);
чел ты... ебать конечно у тебя cl move dt
 
Начинающий
Статус
Оффлайн
Регистрация
21 Май 2019
Сообщения
26
Реакции[?]
2
Поинты[?]
0
There is complete guide on that stop pasting also what's the point using copy_command while doing cl_move dt
 
Сверху Снизу