Weave fakeduck but works

Начинающий
Статус
Оффлайн
Регистрация
2 Май 2019
Сообщения
34
Реакции[?]
5
Поинты[?]
2K
Also, you need to disable double-tap to make it work of course

Код:
void FakeDuck()
{
    static int fakeduckChokeAmount = 0;
csgo->cmd->buttons |= IN_BULLRUSH; force IN_BULLRUSH
    if (vars.antiaim.fakeduck->active) {
        if (fakeduckChokeAmount > 14)
        {
            fakeduckChokeAmount = 0;
            csgo->send_packet = true;
        }
        else {
            csgo->send_packet = false;
        }
        fakeduckChokeAmount++;
        auto choke = interfaces.engine->GetNetChannel()->iChokedPackets;
        if (csgo->local->GetFlags() & FL_ONGROUND)
        {
            if (choke >= 7) {
                csgo->cmd->buttons |= IN_DUCK;
            }
            else {
                csgo->cmd->buttons &= ~IN_DUCK;
            }
        }
    }
    else {
        fakeduckChokeAmount = 0;
    }
}

The GetEyePosition [If you don't already have it then you are dumb :p]
Код:
Vector IBasePlayer::GetEyePosition()
{
    if (vars.antiaim.fakeduck->active && this->EntIndex() == interfaces.engine->GetLocalPlayer()) {
        auto origin = GetOrigin();

        auto vDuckHullMin = interfaces.game_movement->GetPlayerMins(true);
        auto vStandHullMin = interfaces.game_movement->GetPlayerMins(false);

        float fMore = (vDuckHullMin.z - vStandHullMin.z);

        auto vecDuckViewOffset = interfaces.game_movement->GetPlayerViewOffset(true);
        auto vecStandViewOffset = interfaces.game_movement->GetPlayerViewOffset(false);
        float duckFraction = GetDuckAmount();

        float tempz = ((vecDuckViewOffset.z - fMore) * duckFraction) +
            (vecStandViewOffset.z * (1 - duckFraction));

        origin.z += tempz;

        return origin;
    }

    return GetOrigin() + GetVecViewOffset();
}
You need to add a fakeduck visuals fix thing lel


( Demonstration )
 
Начинающий
Статус
Оффлайн
Регистрация
2 Май 2019
Сообщения
34
Реакции[?]
5
Поинты[?]
2K
Последнее редактирование:
Сверху Снизу