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

  • Автор темы Автор темы buba96
  • Дата начала Дата начала
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
29 Мар 2021
Сообщения
18
Реакции
7
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++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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
 
Пожалуйста, авторизуйтесь для просмотра ссылки.
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?
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
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++:
Expand Collapse Copy
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++:
Expand Collapse Copy
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

Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.

 
you need to do something like this in your createmove beforce calling orig
C++:
Expand Collapse Copy
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

может хватит пытаться ответить на тематику в которой не разбираешься?
 
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
 
As I said in uc, wait for chokedcommands decrease while recharging
 
Назад
Сверху Снизу