Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lse if (Menu::Window.RageBotTab.AimbotResolver.GetIndex() == 3)//level 3
- {
- 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;
- }
- }
- }
- LowerBodyYawFix(pEntity);
- PitchCorrection();
- }
- void ResolverSetup::StoreFGE(IClientEntity* pEntity)
- {
- ResolverSetup::storedanglesFGE = pEntity->GetEyeAnglesXY()->y;
- ResolverSetup::storedlbyFGE = pEntity->GetLowerBodyYaw();
- ResolverSetup::storedsimtimeFGE = pEntity->GetSimulationTime();
- }
- void ResolverSetup::StoreThings(IClientEntity* pEntity)
- {
- ResolverSetup::StoredAngles[pEntity->GetIndex()] = *pEntity->GetEyeAnglesXY();
- ResolverSetup::storedlby[pEntity->GetIndex()] = pEntity->GetLowerBodyYaw();
- ResolverSetup::storedsimtime = pEntity->GetSimulationTime();
- ResolverSetup::storeddelta[pEntity->GetIndex()] = pEntity->GetEyeAnglesXY()->y;
- ResolverSetup::storedlby[pEntity->GetIndex()] = pEntity->GetLowerBodyYaw();
- }
- void ResolverSetup::CM(IClientEntity* pEntity)
- {
- for (int x = 1; x < Interfaces::Engine->GetMaxClients(); x++)
- {
- pEntity = (IClientEntity*)Interfaces::EntList->GetClientEntity(x);
- if (!pEntity
- || pEntity == hackManager.pLocal()
- || pEntity->IsDormant()
- || !pEntity->IsAlive())
- continue;
- ResolverSetup::StoreThings(pEntity);
- }
- }
- void AngleCorrect(IClientEntity* pEntity)
- {
- if (Menu::Window.RageBotTab.AccuracyResolver2.GetState())
- {
- auto delta = pEntity->GetLowerBodyYaw();
- switch (Globals::Shots % 0)
- if (fabsf(pEntity->GetVelocity().Length2D() < 32)) // Fakewalk fix
- {
- pEntity->GetEyeAnglesPointer()->y = pEntity->GetLowerBodyYaw();
- }
- else
- {
- pEntity->GetEyeAnglesPointer()->y = Globals::Shots * 45;
- }
- }
- }
- void ResolverSetup::FSN(IClientEntity* pEntity, ClientFrameStage_t stage)
- {
- if (stage == ClientFrameStage_t::FRAME_NET_UPDATE_POSTDATAUPDATE_START)
- {
- for (int i = 1; i < Interfaces::Engine->GetMaxClients(); i++)
- {
- pEntity = (IClientEntity*)Interfaces::EntList->GetClientEntity(i);
- if (!pEntity
- || pEntity == hackManager.pLocal()
- || pEntity->IsDormant()
- || !pEntity->IsAlive())
- continue;
- ResolverSetup::Resolve(pEntity);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement