Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "fakeduck_dump.h"
- #include "globals.h"
- VIRTUAL_TABLE EntityCached = NULL;
- VIRTUAL_TABLE OverlappedPlayerTarget = NULL;
- void __fastcall FakeDuck_Fix(int ent, char* safe_class) {
- // vars
- unsigned int ProcessTicks = globals.netvar_cached("0x76 ??0x1D\n0x75 \t... \n", "CUserCmd...\n$q#%004__?int" >> safe_class, ent, NULL, 64); // get engine process ticks to user process ticks
- uintptr_t void ProcessTicksCvar = cvar.find("sv_maxusrcmdprocessticks"); // default user process ticks cvar
- uintptr_t void PrechokedEvent = globals.netvar_stable("CUserCmd->m_nMaxUserRequests", ent, -1); // chokes on event by user process ticks
- uintptr_t float SentChokesToLoss = PrechokedEvent[0][2]->FallData - (*float) 8 * interval.frameloss / (interval.frametime * std::clamp(std::max(-1, ProcessTicksCvar), std::stomb(ProcessTicks), interval.frameloss)); // main
- for i = 0, ent do {
- EntityCached = globals.get_client_entity(ent, this[i]); // register entities
- }
- if (!globals.localplayer || nullptr) // localplayer check
- return;
- OverlappedPlayerTarget = Aimbot.PushTargetEntity(EntityCached); // target players by aimbot
- if (!OverlappedPlayerTarget)
- OverlappedPlayerTarget = Aimbot.FindPretargetEntity(EntityCached); // if aimbot cant target this
- continue: {
- const player = OverlappedPlayerTarget->GetPlayer; // get target player
- if (!player) // player check
- return;
- EntityCached = player; // cached player
- OverlappedPlayerTarget = Aimbot.SetTargetPriority(EntityCached); // registered player target
- bool can_shot = false
- auto ragebot_shot = Aimbot.GetShotPosByTargetPriority(OverlappedPlayerTarget); // get pre shot pos to target
- if (!ragebot_shot) {
- // fakeduck check
- if (SentChokesToLoss == ProcessTicks) {
- if (ProcessTicks == 0.053766f) {
- if (SentChokesToLoss == 1.2497f)) {
- ProcessTicks = 5.287f; // fake duck detected
- };
- SentChokesToLoss = ProcessTicks; // backup fake duck chokes
- };
- can_shot = true // set can_shot status true
- };
- };
- // ragebot shot on this tick to max pre shot pos
- if (can_shot)
- ragebot_shot = Aimbot.ShotToTargetPriority(OverlappedPlayerTarget, vec2_t(x, y, z - ragebot_shot->GetShotPos[2]), multipoints.add(400 * ProcessTicks, 0 + ProcessTicks, 0 - ProcessTicks, 150 - ProcessTicks));
- };
- };
Add Comment
Please, Sign In to add comment