No one has rated this review as helpful yet
Recommended
0.0 hrs last two weeks / 537.1 hrs on record (359.4 hrs at review time)
Posted: 26 Feb, 2017 @ 10:16am
Updated: 17 Dec, 2017 @ 3:26pm

CS:GO Review
LBY-Breaker from ayyware(p Quality)

static float lastLowerBodyYawTarget = 0.0f;
static bool flip = false;
static float nextLowerBodyYawTargetUpdate = 0;
static float lastLowerBodyYawTargetUpdate = 0;
static int lastLowerbodyChangedCount = 0;
static int lastLowerBodyUpdate = 0;

int changedTimes = globals.lowerbodyChangedCount - lastLowerbodyChangedCount;

bool lowerbodyChanged = changedTimes > 0;
bool lowerbodyChangedPredict = I::Globals->curtime > nextLowerBodyYawTargetUpdate;

lastLowerbodyChangedCount = globals.lowerbodyChangedCount;

bool moving = fabsf(hackManager.pLocal()->GetVelocity().Length2D()) > 0.1f;
bool inGround = fabsf(hackManager.pLocal()->GetVelocity().z) == 0.0f; //(pLocal->GetFlags() & FL_ONGROUND);

globals.LBYUpdate = (globals.LBYUpdate
|| (I::Globals->curtime - lastLowerBodyUpdate) >= 1.1f + I::Engine->GetNetChannelInfo()->GetAvgLatency(FLOW_OUTGOING)
/*|| (moving || inGround)*/); // looks for next update, cant tell if it's realiable though

if (globals.LBYUpdate)
{
lastLowerBodyUpdate = I::Globals->curtime;
flip = flip + 1 == 2 ? 0 : flip + 1;
}

if (!bSendPacket) {

if (globals.LBYUpdate && hackManager.pLocal()->GetLowerBodyYaw() /*this fixes a crash i had*/) {
FakeYawOverride(pCmd, bSendPacket); // for this tick set your real angle to your fake angle
}
//lowerbodyChanged = false; /* DEBUG */
if (lowerbodyChanged || lowerbodyChangedPredict)
{
static float error = 0;

//error = 0; /* DEBUG */

auto net = I::Engine->GetNetChannelInfo();
float latency = net->GetAvgLatency(FLOW_OUTGOING);

if (lowerbodyChanged && !lowerbodyChangedPredict)
{
error = nextLowerBodyYawTargetUpdate - I::Globals->curtime;
}

if (lowerbodyChangedPredict)
{
nextLowerBodyYawTargetUpdate = I::Globals->curtime + 1.1f + latency - error;
}

//printf("%d %f %f\n", changedTimes, latency, error);

lastLowerBodyYawTargetUpdate = I::Globals->curtime;
}

/*bool fakeAck = fabs(lastLowerBodyYawTarget - fakeAngles) <= 35.0f;
if (!fakeAck)
views.y = fakeAngles + 45.f;
*/

lastLowerBodyYawTarget = hackManager.pLocal()->GetLowerBodyYaw();
}
else {
if (globals.LBYUpdate)
pCmd->viewangles.y += 180.f; //when your real angle is set to your fake angle, flip the fake angle
}
Was this review helpful? Yes No Funny Award