Вопрос Subtick bhop

Пользователь
Статус
Оффлайн
Регистрация
25 Мар 2021
Сообщения
186
Реакции[?]
73
Поинты[?]
31K
В чем проблема сделать quantize_safe_move точнее противоположность sv_quantize_movement_input
Хоть Валв и добавили округление чисел так в чем проблема сделать обратное действие мы же internal а не external.
давай, обойди roundf
 
Начинающий
Статус
Оффлайн
Регистрация
9 Дек 2024
Сообщения
8
Реакции[?]
0
Поинты[?]
0
what's wrong with my code? I get usercmd because it prints the correct values. Is it only being read now?
C++:
bool CS_FASTCALL H::CreateMove(CCSGOInput* pInput, int nSlot, bool bActive)
{
    const auto oCreateMove = hkCreateMove.GetOriginal();
    const bool bResult = oCreateMove(pInput, nSlot, bActive);

    //Get local controller from local player
    SDK::LocalController = CCSPlayerController::GetLocalPlayerController();
    //Checks
    if (SDK::LocalController == nullptr)
    {
        std::cout << "Failed to get CMD from controller" << std::endl;
        return bResult;
    }

    //Get local player pawn from local controller
    SDK::LocalPawn = I::GameResourceService->pGameEntitySystem->Get<C_CSPlayerPawn>(SDK::LocalController->GetPawnHandle());
    //Checks
    if (SDK::LocalPawn == nullptr)
    {
        std::cout << "Failed to get pawn from controller" << std::endl;
        return bResult;
    }

    //Health
    int32_t health = SDK::LocalController->GetPawnHealth();
    //Checks
    if (!health)
    {
        std::cout << "Failed to get health from controller" << std::endl;
        return bResult;
    }

    //Getting cmd from local controller
    SDK::Cmd = CUserCmd::Get();
    //Checks
    if (SDK::Cmd == nullptr)
    {
        std::cout << "Failed to get CMD from controller" << std::endl;
        return bResult;
    }

    //Get Base User Cmd from Cmd
    CBaseUserCmdPB* pUserBaseCmd = nullptr;
    pUserBaseCmd = SDK::Cmd->csgoUserCmd.pBaseCmd;
    //Checks
    if (pUserBaseCmd == nullptr)
    {
        std::cout << "Failed to get BASE CMD from cmd" << std::endl;
        return bResult;
    }

    if (SDK::Cmd->nButtons.nValue & IN_JUMP && SDK::LocalPawn->GetFlags() & FL_ONGROUND)
    {
        std::cout << "Before: " << pUserBaseCmd->pInButtonState->nValue << std::endl;
        SDK::Cmd->nButtons.nValue &= ~IN_JUMP;
    }
    

    return bResult;
}
 
Сверху Снизу