[SOURCE] Fake Duck

callie

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Apr 20, 2020
Messages
1
Reaction score
2
A very simple and easy to do feature but posting here incase anyone else may want it. (Use with infinite duck)

Code:
    if (config->antiAim.fakeDuck && config->antiAim.fakeDuckKey && GetAsyncKeyState(config->antiAim.fakeDuckKey) && localPlayer->isAlive())
        if (localPlayer && localPlayer->isAlive())
            if (interfaces->engine->getNetworkChannel()->chokedPackets > (config->misc.chokedPackets / 2))
                cmd->buttons |= UserCmd::IN_DUCK;
            else
                cmd->buttons &= ~UserCmd::IN_DUCK;
 

Mr House

Moderator
Experienced
Moderator
Experienced
Status
Offline
Joined
Mar 27, 2019
Messages
382
Reaction score
1,016
Good enough for a first person. Nice Sharing!
 

Yaxe

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Dec 6, 2020
Messages
4
Reaction score
0
A very simple and easy to do feature but posting here incase anyone else may want it. (Use with infinite duck)

Code:
    if (config->antiAim.fakeDuck && config->antiAim.fakeDuckKey && GetAsyncKeyState(config->antiAim.fakeDuckKey) && localPlayer->isAlive())
        if (localPlayer && localPlayer->isAlive())
            if (interfaces->engine->getNetworkChannel()->chokedPackets > (config->misc.chokedPackets / 2))
                cmd->buttons |= UserCmd::IN_DUCK;
            else
                cmd->buttons &= ~UserCmd::IN_DUCK;
thanks man
 
Top