Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

[SOURCE] fix landing inaccuracy

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
29 Сен 2020
Сообщения
43
Реакции
15
client got extra code, skip it by settings "m_bShouldAdjustExtra" to zero (CCSGOPlayerAnimState :: ModifyEyePosition)

Код:
Expand Collapse Copy
CAnimState * pAnimState = pLocal-> GetAnimState ();

    if (pAnimState! = nullptr)
    {
        bool m_bShouldAdjustExtra = * (bool *) ((DWORD) pAnimState + 0x328);

        * (bool *) ((DWORD) pAnimState + 0x328) = false;

        vPos = pLocal-> GetWeaponShootPosition ();

        * (bool *) ((DWORD) pAnimState + 0x328) = m_bShouldAdjustExtra;
    }

    return vPos;
 
client got extra code, skip it by settings "m_bShouldAdjustExtra" to zero (CCSGOPlayerAnimState :: ModifyEyePosition)

Код:
Expand Collapse Copy
CAnimState * pAnimState = pLocal-> GetAnimState ();

    if (pAnimState! = nullptr)
    {
        bool m_bShouldAdjustExtra = * (bool *) ((DWORD) pAnimState + 0x328);

        * (bool *) ((DWORD) pAnimState + 0x328) = false;

        vPos = pLocal-> GetWeaponShootPosition ();

        * (bool *) ((DWORD) pAnimState + 0x328) = m_bShouldAdjustExtra;
    }

    return vPos;
just rebuild weapon_shootposition lol
 
Назад
Сверху Снизу