Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Menu::Window.RageBotTab.AimbotResolver.GetIndex() == 0)
- {
- int i = Interfaces::EntList->GetMaxEntities();
- static float backtrack = g_BacktrackHelper->PlayerRecord[pEntity->GetIndex()].EyeAngles.y;
- static float lowerDelta[64];
- static float lastYaw[64];
- float curLower = pEntity->GetLowerBodyYaw();
- float curYaw = pEntity->GetEyeAnglesXY()->y;
- lowerDelta[i] = curYaw - curLower;
- if (fabs(lowerDelta[i]) > 15.f) {
- if (IsMoving) {
- pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw();
- backtrack;
- }
- else {
- if (curYaw != lastYaw[i]) {
- pEntity->GetEyeAnglesXY()->y += lowerDelta[i];
- lastYaw[i] = curYaw;
- }
- }
- }
- }
- LowerBodyYawFix(pEntity);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement