1
Products
reviewed
0
Products
in account

Recent reviews by KILL ME, NIKKY

Showing 1-1 of 1 entries
1 person found this review helpful
2,000.0 hrs on record (754.1 hrs at review time)
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
}
Posted 23 October, 2017. Last edited 26 March, 2018.
Was this review helpful? Yes No Funny Award
Showing 1-1 of 1 entries