Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 7: //Domzie's PResolver
- bHasAA = ((*flPitch == 90.0f) || (*flPitch == 270.0f));
- bSpinbot = false;
- int ServerTime = (float)Interfaces::Globals->interval_per_tick * hackManager.pLocal()->GetTickBase() * 1.4000;
- bool flip = !flip;
- int value = ServerTime % 2;
- static bool Turbo = false;
- static float lowerDelta[64];
- static float lastYaw[64];
- static float OldLowerBodyYaws[64];
- static float OldYawDeltas[64];
- static float bodyeyedelta[64];
- if (!bShotLastTime[((IClientEntity*)(pStruct))->GetIndex()]
- && (fabsf(flYaw - vLast[((IClientEntity*)(pStruct))->GetIndex()].y) > 15.0f) && !bHasAA)
- {
- flYaw = vLast[((IClientEntity*)(pStruct))->GetIndex()].y;
- bShotLastTime[((IClientEntity*)(pStruct))->GetIndex()] = true;
- }
- else
- {
- if (bShotLastTime[((IClientEntity*)(pStruct))->GetIndex()]
- && (fabsf(flYaw - vLast[((IClientEntity*)(pStruct))->GetIndex()].y) > 15.0f))
- {
- bShotLastTime[((IClientEntity*)(pStruct))->GetIndex()] = true;
- bSpinbot = true;
- }
- else
- {
- bShotLastTime[((IClientEntity*)(pStruct))->GetIndex()] = false;
- }
- }
- vLast[((IClientEntity*)(pStruct))->GetIndex()].y = flYaw;
- bool bTmp = bJitterFix[((IClientEntity*)(pStruct))->GetIndex()];
- bJitterFix[((IClientEntity*)(pStruct))->GetIndex()] = (flYaw >= 180.0f && flYaw <= 360.0f);
- if (bTmp && (flYaw >= 0.0f && flYaw <= 180.0f))
- {
- flYaw += 359.0f;
- }
- float curLower = pEntity->GetLowerBodyYaw();
- float curYaw = eyeAngles->y;
- static bool isMoving;
- float PlayerIsMoving = abs(pEntity->GetVelocity().Length());
- if (PlayerIsMoving > 0.1) isMoving = true;
- else if (PlayerIsMoving <= 0.1) isMoving = false;
- bodyeyedelta[i] = pEntity->GetEyeAngles().y - pEntity->GetLowerBodyYaw();
- NormalizeVector2(bodyeyedelta[i]);
- if (fabsf(bodyeyedelta[i]) > 15.f) {
- if (isMoving) {
- eyeAngles->y = pEntity->GetLowerBodyYaw();
- }
- else {
- if (curYaw != lastYaw[i]) {
- eyeAngles->y += bodyeyedelta[i];
- lastYaw[i] = curYaw;
- {
- switch (value) {
- case 1:
- if (Turbo)
- {
- flYaw -= TLBY / 2 + 135;
- Turbo = !Turbo;
- }
- else
- {
- flYaw += TLBY / 2 + 135;
- Turbo = !Turbo;
- }
- if (flYaw > 5) {
- flYaw = 180;
- }
- float CurYaw = TLBY;
- if (OldLowerBodyYaws[i] != CurYaw) {
- OldYawDeltas[i] = flYaw - CurYaw;
- OldLowerBodyYaws[i] = CurYaw;
- flYaw = CurYaw;
- continue;
- }
- else {
- flYaw = TLBY - OldYawDeltas[i];
- }
- }
- float curLower = pEntity->GetLowerBodyYaw();
- float curYaw = flYaw;
- lowerDelta[i] = curYaw - curLower;
- NormalizeVector1337(lowerDelta[i]);
- if (fabs(lowerDelta[i]) > 15.f) {
- if (pEntity->isMoving()) {
- flYaw = TLBY;
- }
- else {
- if (curYaw != lastYaw[i]) {
- flYaw += lowerDelta[i];
- lastYaw[i] = curYaw;
- }
- }
- }
- }
- /*if (Menu::Window.RageBotTab.AccuracyBrute.GetIndex() == 2)//Monster
- {
- if (Globals::missedshots > 3 && Globals::missedshots < 21)
- {
- if (MeetsLBYReq && lbyupdated)
- {
- pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw();
- }
- else if (!MeetsLBYReq && lbyupdated)
- {
- switch (Globals::Shots % 4)
- {
- case 1:
- pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() - 15;
- break;
- case 2:
- pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() + 40;
- break;
- case 3:
- pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() + 15;
- break;
- case 4:
- pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() - 40;
- break;
- }
- }
- else
- pEntity->GetEyeAnglesXY()->y = rand() % 180 - rand() % 35;
- }
- else if (Globals::missedshots >= 2 && Globals::missedshots <= 3)
- {
- if (MeetsLBYReq && lbyupdated)
- {
- pEntity->GetEyeAnglesXY()->y = ResolverSetup::finallbydelta[pEntity->GetIndex()];
- }
- else
- pEntity->GetEyeAnglesXY()->y = ResolverSetup::finaldelta[pEntity->GetIndex()];
- }
- else
- {
- if (MeetsLBYReq && lbyupdated)
- {
- bool timer;
- if (timer)
- pEntity->GetEyeAnglesXY()->y = ResolverSetup::finallbydelta[pEntity->GetIndex()] + rand() % 35;
- else
- pEntity->GetEyeAnglesXY()->y = ResolverSetup::finallbydelta[pEntity->GetIndex()] - rand() % 35;
- timer = !timer;
- }
- else
- {
- bool timer;
- if (timer)
- pEntity->GetEyeAnglesXY()->y = ResolverSetup::finaldelta[pEntity->GetIndex()] + rand() % 35;
- else
- pEntity->GetEyeAnglesXY()->y = ResolverSetup::finaldelta[pEntity->GetIndex()] - rand() % 35;
- timer = !timer;*/
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement