eeli

Untitled

Oct 16th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. #include "BackTracking.h"
  2. // perfect resolver skeet tapping
  3. bool backtrackthis;
  4. int velocity;
  5. #define lerpticks rand() / 420 / velocity - 420 * 0
  6.  
  7. class pEntity
  8. {
  9. public:
  10. int ViewAngles;
  11. int Velocity;
  12. int LBY;
  13. int EyeAngles;
  14. bool InAir;
  15. bool Forceatek;
  16. int tickcount;
  17. };
  18.  
  19. void BackTrack()
  20. {
  21. pEntity* pLocal;
  22. pEntity* player;
  23. player->tickcount = player->Velocity / lerpticks * 0 + 420 - player->ViewAngles;
  24. }
  25.  
  26. bool Baim;
  27. bool HsOnly;
  28. int BruteForce;
  29. bool lbyexposed;
  30. bool abouttoland;
  31. int OldAngles;
  32.  
  33. namespace Menu
  34. {
  35. namespace Vars
  36. {
  37. bool BruteForce;
  38. }
  39. }
  40. bool onground;
  41. bool lbybroken;
  42.  
  43. void dab()
  44. {
  45. pEntity* pLocal;
  46. pEntity* player;
  47. BackTrack();
  48. //
  49. if (player->InAir && !HsOnly) // if the ent is in air and its not hs only
  50. {
  51. Baim = true;
  52. }
  53. else if (player->InAir && HsOnly)
  54. {
  55. if (Menu::Vars::BruteForce)
  56. {
  57. BruteForce = true;
  58. }
  59. else
  60. {
  61. if (abouttoland) // about to land reached peak of jump
  62. {
  63. Sleep(2); // wait 2 seconds so they hit the ground and lby updates
  64. pLocal->Forceatek = true; // fire
  65. }
  66. }
  67. }
  68. else
  69. {
  70. onground = true;
  71. }
  72.  
  73. if (onground)
  74. {
  75. if (player->Velocity > 0)
  76. {
  77. player->EyeAngles = player->LBY;
  78. }
  79. else
  80. {
  81. lbybroken = true;
  82. }
  83.  
  84. if (lbybroken)
  85. {
  86. if (Menu::Vars::BruteForce)
  87. {
  88. BruteForce = true;
  89. }
  90. else
  91. {
  92. Sleep(1.1);
  93. lbyexposed = true;
  94. player->EyeAngles = OldAngles;
  95. }
  96. }
  97.  
  98. if (lbyexposed)
  99. {
  100. pLocal->Forceatek = true;
  101. }
  102. else
  103. {
  104. int delta = player->ViewAngles - player->LBY;
  105. if (delta > 29)
  106. {
  107. bool lbybroken;
  108. lbybroken = true;
  109. }
  110.  
  111. if (lbybroken)
  112. player->ViewAngles = player->ViewAngles + delta;
  113. }
  114. }
  115. }
Add Comment
Please, Sign In to add comment