Advertisement
Mister_Stefan

Meme AA

Aug 24th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UI.AddDropdown("Preset", ["Custom", "Treehouse"])
  2. UI.AddCheckbox("Only on move")
  3. UI.AddCheckbox("Weird jitter")
  4. UI.AddCheckbox("Random yaw")
  5. UI.AddCheckbox("Random pitch")
  6. UI.AddSliderInt("Min Jitter", -180, 180)
  7. UI.AddSliderInt("Max Jitter", -180, 180)
  8. var local_player = Entity.GetLocalPlayer()
  9. function treehouseAApreset()
  10. {
  11.     if(UI.GetValue("Preset") == 1)
  12.     {
  13.         UI.SetValue("Random yaw", 1)
  14.         UI.SetValue("Random pitch", 1)
  15.         UI.SetValue("Min Jitter", -180)
  16.         UI.SetValue("Max Jitter", 180)
  17.         UI.SetValue("Only on move", 0)
  18.         UI.SetValue("Weird jitter", 0)
  19.     }
  20. }
  21. function getVel(index) {
  22.     local_velocity = Entity.GetProp(local_player, "CBasePlayer", "m_vecVelocity[0]");
  23.     return Math.sqrt(local_velocity[0] * local_velocity[0] + local_velocity[1] * local_velocity[1]);
  24. }
  25. function randomJitter() {
  26.     if (!UI.GetValue("Weird jitter")) {
  27.         local_velocity = getVel(Entity.GetLocalPlayer())
  28.         velocity_int = parseInt(local_velocity).toString()
  29.         min_jitter_value = UI.GetValue("Min Jitter")
  30.         max_jitter_value = UI.GetValue("Max Jitter")
  31.         if (UI.GetValue("Only on move")) {
  32.             if (velocity_int == 0) {
  33.                 UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 0)
  34.             } else {
  35.                 jitter_offset = Math.ceil(Math.random() * (min_jitter_value - max_jitter_value) + max_jitter_value)
  36.                 UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset)
  37.             }
  38.         } else {
  39.             jitter_offset = Math.ceil(Math.random() * (min_jitter_value - max_jitter_value) + max_jitter_value)
  40.             UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset)
  41.         }
  42.     }
  43. }
  44. function weirdJitter() {
  45.     if (UI.GetValue("Weird jitter")) {
  46.         min_jitter_value = UI.GetValue("Min Jitter")
  47.         max_jitter_value = UI.GetValue("Max Jitter")
  48.         jitter_value = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset")
  49.         if (UI.GetValue("Only on move")) {
  50.             local_velocity = getVel(Entity.GetLocalPlayer())
  51.             velocity_int = parseInt(local_velocity).toString()
  52.             if (velocity_int == 0) {
  53.                 UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 0)
  54.             } else {
  55.                 if (jitter_value >= min_jitter_value) {
  56.                     UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_value - 1)
  57.                 }
  58.                 if (jitter_value <= min_jitter_value || jitter_value > max_jitter_value) {
  59.                     UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", max_jitter_value)
  60.                 }
  61.             }
  62.         } else {
  63.             if (jitter_value >= min_jitter_value) {
  64.                 UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_value - 1)
  65.             }
  66.             if (jitter_value <= min_jitter_value || jitter_value > max_jitter_value) {
  67.                 UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", max_jitter_value)
  68.             }
  69.         }
  70.     }
  71. }
  72. function randomYaw() {
  73.     if (UI.GetValue("Random yaw")) {
  74.         if (UI.GetValue("Only on move")) {
  75.             local_velocity = getVel(Entity.GetLocalPlayer())
  76.             velocity_int = parseInt(local_velocity).toString()
  77.             if (velocity_int == 0) {
  78.                 UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 0)
  79.             } else {
  80.                 random_yaw = Math.round(Math.random() * (-180 - 180) + 180)
  81.                 UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", random_yaw)
  82.             }
  83.         } else {
  84.             random_yaw = Math.round(Math.random() * (-180 - 180) + 180)
  85.             UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", random_yaw)
  86.         }
  87.     }
  88. }
  89. function randomPitch() {
  90.     if (UI.GetValue("Random pitch")) {
  91.         if (UI.GetValue("Only on move")) {
  92.             local_velocity = getVel(Entity.GetLocalPlayer())
  93.             velocity_int = parseInt(local_velocity).toString()
  94.             random_pitch = Math.round(Math.random() * 4)
  95.             if (velocity_int == 0) {
  96.                 UI.SetValue("Anti-Aim", "Extra", "Pitch", 1)
  97.             } else if (random_pitch == 1 || random_pitch == 4) {
  98.                 UI.SetValue("Anti-Aim", "Extra", "Pitch", random_pitch)
  99.             }
  100.         }
  101.         random_pitch = Math.round(Math.random() * 4)
  102.         if (random_pitch == 1 || random_pitch == 4) {
  103.             UI.SetValue("Anti-Aim", "Extra", "Pitch", random_pitch)
  104.         }
  105.     }
  106. }
  107. Cheat.RegisterCallback("CreateMove", "randomJitter")
  108. Cheat.RegisterCallback("CreateMove", "weirdJitter")
  109. Cheat.RegisterCallback("CreateMove", "randomYaw")
  110. Cheat.RegisterCallback("CreateMove", "randomPitch")
  111. Cheat.RegisterCallback("CreateMove", "treehouseAApreset")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement