C++ Cl_move doubletap is not registering first "double tap shot?"

Начинающий
Статус
Оффлайн
Регистрация
29 Мар 2021
Сообщения
18
Реакции[?]
7
Поинты[?]
0
i dont know how to name it, just watch video.

everything is fine except the first shot..
how to fix it please help...

VIDEO:
Пожалуйста, авторизуйтесь для просмотра ссылки.


my cl_move dt code:

C++:
bool misc::double_tap(CUserCmd* m_pcmd) {
    static auto lastdoubletaptime = 0;

    if (!vars.ragebot.double_tap_key.key) {
        csgo.globals.shift_ticks = 0;
        return false;
    }

    if (!vars.ragebot.double_tap)
        return false;;

    if (key_binds::get().get_key_bind_state(12))
    {
        csgo.globals.shift_ticks = 0;
        return false;
    }

    csgo.globals.tickbase_shift = 0;

    auto weapon = csgo.local()->m_hActiveWeapon();

    if (!(m_pcmd->m_buttons & IN_ATTACK) && csgo.globals.tocharge < csgo.globals.weapon->get_max_tickbase_shift() + 2 && csgo.globals.fixed_tickbase - lastdoubletaptime > TIME_TO_TICKS(0.75f)) {
        csgo.globals.startcharge = true;
        csgo.globals.tochargeamount = csgo.globals.weapon->get_max_tickbase_shift() + 2;
    }
    else {
        csgo.globals.startcharge = false;
    }

    if (csgo.globals.tocharge > csgo.globals.weapon->get_max_tickbase_shift() + 2)
        csgo.globals.shift_ticks = csgo.globals.tocharge - csgo.globals.weapon->get_max_tickbase_shift() + 2;


    if (weapon && (m_pcmd->m_buttons & IN_ATTACK || (m_pcmd->m_buttons & IN_ATTACK2 && weapon->is_knife())) && csgo.globals.tocharge == csgo.globals.weapon->get_max_tickbase_shift() + 2) {
        if ((m_pcmd->m_buttons & IN_ATTACK2 && weapon->is_knife()) || weapon->is_grenade() || weapon->m_iItemDefinitionIndex() == WEAPON_TASER)
        {
            lastdoubletaptime = csgo.globals.fixed_tickbase;
            csgo.globals.shift_ticks = 0;
        }
        else {
            lastdoubletaptime = csgo.globals.fixed_tickbase;
            csgo.globals.shift_ticks = csgo.globals.weapon->get_max_tickbase_shift() + 2;
        }
    }


}

C++:
void __cdecl hooks::Hooked_CLMove(float flAccumulatedExtraSamples, bool bFinalTick)
{
    if (csgo.globals.fakeducking)
        return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));

    /*
    if (!vars.ragebot.double_tap_key.key) {
        csgo.globals.shift_ticks = 0;
        return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
    }
    */

    if (csgo.globals.startcharge && csgo.globals.tocharge < csgo.globals.tochargeamount)
    {
        csgo.globals.tocharge++;
        csgo.globals.ticks_allowed = csgo.globals.tocharge;
        m_globals()->m_interpolation_amount = 0.f;
        return;
    }

    (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));

    while (csgo.globals.shift_ticks)
    {
        csgo.globals.isshifting = true;
        csgo.globals.shift_ticks--;
        csgo.globals.tocharge--;
        (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
    }
    csgo.globals.isshifting = false;

    //return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
}
hooking this function with sig: 55 8B EC 81 EC ? ? ? ? 53 56 8A
 
Thigh destr0yer
Пользователь
Статус
Оффлайн
Регистрация
25 Ноя 2019
Сообщения
272
Реакции[?]
68
Поинты[?]
0
Пожалуйста, авторизуйтесь для просмотра ссылки.
go read your original thread and stop pasting, lol.
You were already told how to fix it, you need to make sure you are even charged in the first place.
p.s shouldnt this: `csgo.globals.isshifting = true;` go outside the while loop?
 
paster
Забаненный
Статус
Оффлайн
Регистрация
18 Ноя 2020
Сообщения
229
Реакции[?]
56
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
i dont know how to name it, just watch video.

everything is fine except the first shot..
how to fix it please help...

VIDEO:
Пожалуйста, авторизуйтесь для просмотра ссылки.


my cl_move dt code:

C++:
bool misc::double_tap(CUserCmd* m_pcmd) {
    static auto lastdoubletaptime = 0;

    if (!vars.ragebot.double_tap_key.key) {
        csgo.globals.shift_ticks = 0;
        return false;
    }

    if (!vars.ragebot.double_tap)
        return false;;

    if (key_binds::get().get_key_bind_state(12))
    {
        csgo.globals.shift_ticks = 0;
        return false;
    }

    csgo.globals.tickbase_shift = 0;

    auto weapon = csgo.local()->m_hActiveWeapon();

    if (!(m_pcmd->m_buttons & IN_ATTACK) && csgo.globals.tocharge < csgo.globals.weapon->get_max_tickbase_shift() + 2 && csgo.globals.fixed_tickbase - lastdoubletaptime > TIME_TO_TICKS(0.75f)) {
        csgo.globals.startcharge = true;
        csgo.globals.tochargeamount = csgo.globals.weapon->get_max_tickbase_shift() + 2;
    }
    else {
        csgo.globals.startcharge = false;
    }

    if (csgo.globals.tocharge > csgo.globals.weapon->get_max_tickbase_shift() + 2)
        csgo.globals.shift_ticks = csgo.globals.tocharge - csgo.globals.weapon->get_max_tickbase_shift() + 2;


    if (weapon && (m_pcmd->m_buttons & IN_ATTACK || (m_pcmd->m_buttons & IN_ATTACK2 && weapon->is_knife())) && csgo.globals.tocharge == csgo.globals.weapon->get_max_tickbase_shift() + 2) {
        if ((m_pcmd->m_buttons & IN_ATTACK2 && weapon->is_knife()) || weapon->is_grenade() || weapon->m_iItemDefinitionIndex() == WEAPON_TASER)
        {
            lastdoubletaptime = csgo.globals.fixed_tickbase;
            csgo.globals.shift_ticks = 0;
        }
        else {
            lastdoubletaptime = csgo.globals.fixed_tickbase;
            csgo.globals.shift_ticks = csgo.globals.weapon->get_max_tickbase_shift() + 2;
        }
    }


}

C++:
void __cdecl hooks::Hooked_CLMove(float flAccumulatedExtraSamples, bool bFinalTick)
{
    if (csgo.globals.fakeducking)
        return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));

    /*
    if (!vars.ragebot.double_tap_key.key) {
        csgo.globals.shift_ticks = 0;
        return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
    }
    */

    if (csgo.globals.startcharge && csgo.globals.tocharge < csgo.globals.tochargeamount)
    {
        csgo.globals.tocharge++;
        csgo.globals.ticks_allowed = csgo.globals.tocharge;
        m_globals()->m_interpolation_amount = 0.f;
        return;
    }

    (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));

    while (csgo.globals.shift_ticks)
    {
        csgo.globals.isshifting = true;
        csgo.globals.shift_ticks--;
        csgo.globals.tocharge--;
        (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
    }
    csgo.globals.isshifting = false;

    //return (clMove_fn(hooks::original_clmove)(flAccumulatedExtraSamples, bFinalTick));
}
hooking this function with sig: 55 8B EC 81 EC ? ? ? ? 53 56 8A
Для просмотра содержимого вам необходимо авторизоваться.
 
Участник
Статус
Оффлайн
Регистрация
2 Фев 2020
Сообщения
818
Реакции[?]
378
Поинты[?]
0
you need to do something like this in your createmove beforce calling orig
C++:
if (vars.ragebot.double_tap && key_binds::get().get_key_bind_state(12)) {
    if (csgo.globals.tocharge <= 0 ) {
        csgo.globals.startcharge = true;

        csgo.globals.tochargeamount = csgo.globals.weapon->get_max_tickbase_shift() + 2;
        return;
    }
}
else
    csgo.globals.tocharge = 0;
а че ориг высер удалил???
1642075778048.png
может хватит пытаться ответить на тематику в которой не разбираешься?
 
Thigh destr0yer
Пользователь
Статус
Оффлайн
Регистрация
25 Ноя 2019
Сообщения
272
Реакции[?]
68
Поинты[?]
0
you need to do something like this in your createmove beforce calling orig
all you need to do is check if current recharge < allowed ticks, if it is recharge it THEN call original THEN run your actual pasted doubletap
stop spreading nonsense
dont forget to fix tickbase in that shitty legendware paste bubba
 
Пользователь
Статус
Оффлайн
Регистрация
21 Окт 2017
Сообщения
738
Реакции[?]
147
Поинты[?]
0
Сверху Снизу