Вопрос How does you use Mouse 1 button autofire

Начинающий
Статус
Оффлайн
Регистрация
15 Июл 2020
Сообщения
2
Реакции[?]
1
Поинты[?]
0
sorry i am not very good at english so i try to keep it short, i hook the createmove functionality at index 21 but if i do |= IN_ATTACK from c_user_cmd * -> buttons -> value it only fire once and i get logging error in the console about startt history attack 1/2/3 pls help sorry
 
Начинающий
Статус
Оффлайн
Регистрация
18 Авг 2020
Сообщения
47
Реакции[?]
8
Поинты[?]
0
CreateMove: 48 8B C4 4C 89 40 18 48 89 48 08 55 53 57

get result before using functions
Example CreateMove:
double __fastcall CreateMove(CCSGOInput *pCCSGOInput, int nSlot, CUserCmd *pUserCmd) {
    auto oCreateMove = hkCreateMove.GetOriginal();
    auto dlResult = oCreateMove(pCCSGOInput, nSlot, pUserCmd);

    if (!pCCSGOInput)
        return dlResult;

    if (!pUserCmd)
        return dlResult;

    //others check is possible fire
    //...
    //

    if (m_pWeapon->m_nNextPrimaryAttackTick() > pLastInputHistory->nRenderTickCount)
        return dlResult;
   
    pUserCmd->nButtons.nValue |= IN_ATTACK;
    pUserCmd->nButtons.nValueChanged |= IN_ATTACK;


    return dlResult;
}
if the problem still exists use nAttack1StartHistoryIndex and set it to 0
C++:
pUserCmd->csgoUserCmd.nAttack1StartHistoryIndex = 0;
pUserCmd->csgoUserCmd.CheckAndSetBits(ccsgousercmd_attack1start);

//shot func
 
Сверху Снизу