Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. lse if (Menu::Window.RageBotTab.AimbotResolver.GetIndex() == 3)//level 3
  2. {
  3. if (Globals::missedshots > 3 && Globals::missedshots < 21)
  4. {
  5. if (MeetsLBYReq && lbyupdated)
  6. {
  7. pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw();
  8. }
  9. else if (!MeetsLBYReq && lbyupdated)
  10. {
  11. switch (Globals::Shots % 4)
  12. {
  13. case 1:
  14. pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() - 15;
  15. break;
  16. case 2:
  17. pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() + 40;
  18. break;
  19. case 3:
  20. pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() + 15;
  21. break;
  22. case 4:
  23. pEntity->GetEyeAnglesXY()->y = pEntity->GetLowerBodyYaw() - 40;
  24. break;
  25. }
  26. }
  27. else
  28. pEntity->GetEyeAnglesXY()->y = rand() % 180 - rand() % 35;
  29. }
  30.  
  31. else if (Globals::missedshots >= 2 && Globals::missedshots <= 3)
  32. {
  33. if (MeetsLBYReq && lbyupdated)
  34. {
  35. pEntity->GetEyeAnglesXY()->y = ResolverSetup::finallbydelta[pEntity->GetIndex()];
  36. }
  37. else
  38. pEntity->GetEyeAnglesXY()->y = ResolverSetup::finaldelta[pEntity->GetIndex()];
  39. }
  40. else
  41. {
  42. if (MeetsLBYReq && lbyupdated)
  43. {
  44. bool timer;
  45. if (timer)
  46. pEntity->GetEyeAnglesXY()->y = ResolverSetup::finallbydelta[pEntity->GetIndex()] + rand() % 35;
  47. else
  48. pEntity->GetEyeAnglesXY()->y = ResolverSetup::finallbydelta[pEntity->GetIndex()] - rand() % 35;
  49. timer = !timer;
  50. }
  51. else
  52. {
  53. bool timer;
  54. if (timer)
  55. pEntity->GetEyeAnglesXY()->y = ResolverSetup::finaldelta[pEntity->GetIndex()] + rand() % 35;
  56. else
  57. pEntity->GetEyeAnglesXY()->y = ResolverSetup::finaldelta[pEntity->GetIndex()] - rand() % 35;
  58. timer = !timer;
  59. }
  60. }
  61. }
  62. LowerBodyYawFix(pEntity);
  63. PitchCorrection();
  64. }
  65.  
  66. void ResolverSetup::StoreFGE(IClientEntity* pEntity)
  67. {
  68. ResolverSetup::storedanglesFGE = pEntity->GetEyeAnglesXY()->y;
  69. ResolverSetup::storedlbyFGE = pEntity->GetLowerBodyYaw();
  70. ResolverSetup::storedsimtimeFGE = pEntity->GetSimulationTime();
  71. }
  72.  
  73. void ResolverSetup::StoreThings(IClientEntity* pEntity)
  74. {
  75. ResolverSetup::StoredAngles[pEntity->GetIndex()] = *pEntity->GetEyeAnglesXY();
  76. ResolverSetup::storedlby[pEntity->GetIndex()] = pEntity->GetLowerBodyYaw();
  77. ResolverSetup::storedsimtime = pEntity->GetSimulationTime();
  78. ResolverSetup::storeddelta[pEntity->GetIndex()] = pEntity->GetEyeAnglesXY()->y;
  79. ResolverSetup::storedlby[pEntity->GetIndex()] = pEntity->GetLowerBodyYaw();
  80. }
  81.  
  82. void ResolverSetup::CM(IClientEntity* pEntity)
  83. {
  84. for (int x = 1; x < Interfaces::Engine->GetMaxClients(); x++)
  85. {
  86.  
  87. pEntity = (IClientEntity*)Interfaces::EntList->GetClientEntity(x);
  88.  
  89. if (!pEntity
  90. || pEntity == hackManager.pLocal()
  91. || pEntity->IsDormant()
  92. || !pEntity->IsAlive())
  93. continue;
  94.  
  95. ResolverSetup::StoreThings(pEntity);
  96. }
  97. }
  98.  
  99.  
  100. void AngleCorrect(IClientEntity* pEntity)
  101. {
  102. if (Menu::Window.RageBotTab.AccuracyResolver2.GetState())
  103. {
  104. auto delta = pEntity->GetLowerBodyYaw();
  105. switch (Globals::Shots % 0)
  106.  
  107. if (fabsf(pEntity->GetVelocity().Length2D() < 32)) // Fakewalk fix
  108. {
  109. pEntity->GetEyeAnglesPointer()->y = pEntity->GetLowerBodyYaw();
  110. }
  111. else
  112. {
  113. pEntity->GetEyeAnglesPointer()->y = Globals::Shots * 45;
  114. }
  115. }
  116. }
  117.  
  118. void ResolverSetup::FSN(IClientEntity* pEntity, ClientFrameStage_t stage)
  119. {
  120. if (stage == ClientFrameStage_t::FRAME_NET_UPDATE_POSTDATAUPDATE_START)
  121. {
  122. for (int i = 1; i < Interfaces::Engine->GetMaxClients(); i++)
  123. {
  124.  
  125. pEntity = (IClientEntity*)Interfaces::EntList->GetClientEntity(i);
  126.  
  127. if (!pEntity
  128. || pEntity == hackManager.pLocal()
  129. || pEntity->IsDormant()
  130. || !pEntity->IsAlive())
  131. continue;
  132.  
  133. ResolverSetup::Resolve(pEntity);
  134. }
  135. }
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement