Advertisement
Dixerr

lua aa aimware cs2

Dec 31st, 2024
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.85 KB | None | 0 0
  1. -- Configuration Advanced-AA
  2. local USER_NAME = cheat.GetUserName()
  3. local LOCAL_WATERMARK = draw.CreateFont("Verdana", 13, 900)
  4. local SIZE_X, SIZE_Y = draw.GetScreenSize()
  5. local VERTICAL, HORIZONTAL = 30, 70
  6. local FONT_INDICATOR = draw.CreateFont("Tahoma", 15, 1300)
  7.  
  8. -- Components
  9. local REFERENCE = gui.Window("aawindow", "Advanced AntiAim", 10, 10, 1280, 640)
  10. --local TAB = gui.Tab(REFERENCE, "Advanced-AA", "Pitch & Yaw Jitter")
  11. local WELCOME_BOX = gui.Groupbox(REFERENCE, "Welcome to Advanced-AntiAim, " .. USER_NAME .. "!", 10, 10, 1260, 640)
  12. local MASTER_CHECKBOX = gui.Checkbox(WELCOME_BOX, "master_enable", "Master Enable", false)
  13.  
  14. local PITCH_JITTER_CONTROL_BOX = gui.Groupbox(WELCOME_BOX, "Pitch Jitter Control", 10, 30, 400, 100)
  15. local PITCH_JITTER_ENABLE_CHECKBOX =
  16. gui.Checkbox(PITCH_JITTER_CONTROL_BOX, "pitch_jitter_enable", "Enable Pitch Jitter", false)
  17. local PITCH_JITTER_SPEED_SLIDER =
  18. gui.Slider(PITCH_JITTER_CONTROL_BOX, "pitch_jitter_speed", "Pitch Jitter Speed (Ticks)", 1, 1, 32)
  19. local pitchState = false
  20. local lastPitchChange = 0
  21.  
  22. local YAW_JITTER_CONTROL_BOX = gui.Groupbox(WELCOME_BOX, "Yaw Jitter Control", 10, 170, 400, 300)
  23. local YAW_JITTER_ENABLE_CHECKBOX = gui.Checkbox(YAW_JITTER_CONTROL_BOX, "yaw_jitter_enable", "Yaw Jitter Enable", false)
  24. local YAW_JITTER_LEFT_SLIDER = gui.Slider(YAW_JITTER_CONTROL_BOX, "yaw_jitter_left", "Yaw Jitter Left", 45, 0, 90)
  25. local YAW_JITTER_RIGHT_SLIDER = gui.Slider(YAW_JITTER_CONTROL_BOX, "yaw_jitter_right", "Yaw Jitter Right", 45, 0, 90)
  26. local YAW_JITTER_BACKWARD_CHECKBOX =
  27. gui.Checkbox(YAW_JITTER_CONTROL_BOX, "yaw_jitter_backward", "Yaw Jitter Backward", false)
  28. local YAW_JITTER_SPEED_SLIDER =
  29. gui.Slider(YAW_JITTER_CONTROL_BOX, "yaw_jitter_speed", "Yaw Jitter Speed (Ticks)", 1, 1, 32)
  30.  
  31. local RANDOM_YAW_CONTROL_BOX = gui.Groupbox(WELCOME_BOX, "Random Yaw Control", 420, 30, 400, 300)
  32. local RANDOM_YAW_ENABLE_CHECKBOX = gui.Checkbox(RANDOM_YAW_CONTROL_BOX, "random_yaw_enable", "Random Yaw Enable", false)
  33. local RANDOM_YAW_MIN_SLIDER = gui.Slider(RANDOM_YAW_CONTROL_BOX, "random_yaw_min", "Random Yaw Range", 90, 0, 180)
  34. local RANDOM_YAW_BACKWARD_CHECKBOX =
  35. gui.Checkbox(RANDOM_YAW_CONTROL_BOX, "random_yaw_backward", "Random Yaw Backward", false)
  36. local RANDOM_YAW_SPEED_SLIDER =
  37. gui.Slider(RANDOM_YAW_CONTROL_BOX, "random_yaw_speed", "Random Yaw Speed (Ticks)", 1, 1, 32)
  38. local jitterDirection = true
  39. local lastJitterChange = 0
  40.  
  41. local SPIN_CONTROL_BOX = gui.Groupbox(WELCOME_BOX, "Spin Control", 420, 255, 400, 100)
  42. local SPIN_ENABLE_CHECKBOX = gui.Checkbox(SPIN_CONTROL_BOX, "spin_enable", "Enable Spin Control", false)
  43. local SPIN_SPEED_SLIDER = gui.Slider(SPIN_CONTROL_BOX, "spin_speed", "Spin Speed", 16, 1, 64)
  44. local lastSpinChange = 0
  45. local currentYaw = 0
  46.  
  47. local ffpkeybind = gui.Groupbox(WELCOME_BOX, "FakeFlick Pitch", 830, 30, 400, 300)
  48. ffpkeybind:SetDescription("Toggle/hold key")
  49.  
  50. -- ##### FAKE FLICK PITCH CHECKBOXES #####
  51. local fake_flick_pitch = gui.Checkbox(ffpkeybind, "fake_flick_pitch", "Fake Flick Pitch", false)
  52. local flick_period_pitch = gui.Slider(ffpkeybind, "flick_period_pitch", "Flick Period Pitch", 2, 1, 128)
  53. local invert_pitch = gui.Checkbox(ffpkeybind, "invert_pitch", "Invert Pitch", false)
  54.  
  55. local ffykeybind = gui.Groupbox(WELCOME_BOX, "FakeFlick Yaw & Manual", 830, 210, 400, 300)
  56. ffykeybind:SetDescription("Toggle/hold key")
  57. local manual_right = gui.Checkbox(ffykeybind, "manual_right", "Manual Right AA", false)
  58. local manual_left = gui.Checkbox(ffykeybind, "manual_left", "Manual Left AA", false)
  59. local default_yaw = gui.Slider(ffykeybind, "default_yaw", "Default Yaw", 0, -180, 180)
  60.  
  61. -- ##### FAKE FLICK YAW CHECKBOXES #####
  62. local fake_flick_yaw = gui.Checkbox(ffykeybind, "fake_flick", "Fake Flick Yaw", false)
  63. local flick_period_yaw = gui.Slider(ffykeybind, "flick_period", "Flick Period Yaw", 64, 1, 128)
  64. local invert_yaw = gui.Checkbox(ffykeybind, "invert_flick", "Invert Flick Yaw", false)
  65. -- ##### MANUAL ANTI-AIM FUNCTIONALITY WITH USER-ADJUSTABLE FAKE FLICK PITCH #####
  66. local last_fake_flick_tick = 0
  67.  
  68. -- Functions
  69. local function HandlePitchJitter()
  70. if MASTER_CHECKBOX:GetValue() and PITCH_JITTER_ENABLE_CHECKBOX:GetValue() then
  71. local currentTime = globals.TickCount()
  72. if currentTime - lastPitchChange > PITCH_JITTER_SPEED_SLIDER:GetValue() then
  73. local pitchValue = pitchState and 1 or 2
  74. gui.SetValue("rbot.antiaim.advanced.pitch", pitchValue)
  75. pitchState = not pitchState
  76. lastPitchChange = currentTime
  77. end
  78. end
  79. end
  80.  
  81. local function HandleYawJitter()
  82. if MASTER_CHECKBOX:GetValue() and YAW_JITTER_ENABLE_CHECKBOX:GetValue() then
  83. local currentTime = globals.TickCount()
  84. if currentTime - lastJitterChange > YAW_JITTER_SPEED_SLIDER:GetValue() then
  85. local leftValue = YAW_JITTER_BACKWARD_CHECKBOX:GetValue() and -(180 - YAW_JITTER_LEFT_SLIDER:GetValue())
  86. or -YAW_JITTER_LEFT_SLIDER:GetValue()
  87. local rightValue = YAW_JITTER_BACKWARD_CHECKBOX:GetValue() and (180 - YAW_JITTER_RIGHT_SLIDER:GetValue())
  88. or YAW_JITTER_RIGHT_SLIDER:GetValue()
  89. local yawValue = jitterDirection and rightValue or leftValue
  90. gui.SetValue("rbot.antiaim.base", yawValue)
  91. jitterDirection = not jitterDirection
  92. lastJitterChange = currentTime
  93. end
  94. end
  95. end
  96.  
  97. local function HandleRandomYaw()
  98. if MASTER_CHECKBOX:GetValue() and RANDOM_YAW_ENABLE_CHECKBOX:GetValue() then
  99. local currentTime = globals.TickCount()
  100. if currentTime - lastJitterChange > RANDOM_YAW_SPEED_SLIDER:GetValue() then
  101. local yawRange = RANDOM_YAW_MIN_SLIDER:GetValue()
  102. local yawMin, yawMax
  103. if RANDOM_YAW_BACKWARD_CHECKBOX:GetValue() then
  104. yawMin = 180 - yawRange
  105. yawMax = 180 + yawRange
  106. else
  107. yawMin = -yawRange
  108. yawMax = yawRange
  109. end
  110. local randomYaw = math.random(yawMin, yawMax)
  111. if randomYaw > 180 then
  112. randomYaw = randomYaw - 360
  113. elseif randomYaw < -179 then
  114. randomYaw = randomYaw + 360
  115. end
  116. gui.SetValue("rbot.antiaim.base", randomYaw)
  117. lastJitterChange = currentTime
  118. end
  119. end
  120. end
  121.  
  122. local function HandleSpinControl()
  123. if MASTER_CHECKBOX:GetValue() and SPIN_ENABLE_CHECKBOX:GetValue() then
  124. local currentTime = globals.TickCount()
  125. if currentTime - lastSpinChange > SPIN_SPEED_SLIDER:GetValue() then
  126. currentYaw = (currentYaw + 10) % 360
  127. if currentYaw > 180 then
  128. currentYaw = currentYaw - 360
  129. end
  130. gui.SetValue("rbot.antiaim.base", currentYaw)
  131. lastSpinChange = currentTime
  132. end
  133. end
  134. end
  135.  
  136. -- ##### MANUAL ANTI-AIM FUNCTIONALITY WITH USER-ADJUSTABLE FAKE FLICK PITCH #####
  137. local function manual_aa_pitch_func()
  138. if MASTER_CHECKBOX:GetValue() then
  139. -- Pitch
  140. local pitch_value = 1
  141.  
  142. -- Fake Flick Pitch 로직
  143. local g_vars_tick = globals.TickCount()
  144. local period_pitch = flick_period_pitch:GetValue()
  145.  
  146. if fake_flick_pitch:GetValue() then
  147. if g_vars_tick % period_pitch < 1 then
  148. -- 주기일 때 피치를 1 또는 2로 설정
  149. local pitch = invert_pitch:GetValue() and 1 or 2
  150. if last_fake_flick_tick ~= g_vars_tick then
  151. gui.SetValue("rbot.antiaim.advanced.pitch", pitch)
  152. last_fake_flick_tick = g_vars_tick
  153. end
  154. else
  155. -- 주기가 아닐 때 피치를 1 또는 2로 설정 (invert 적용)
  156. local pitch = invert_pitch:GetValue() and 2 or 1
  157. if last_fake_flick_tick ~= g_vars_tick then
  158. gui.SetValue("rbot.antiaim.advanced.pitch", pitch)
  159. last_fake_flick_tick = g_vars_tick
  160. end
  161. end
  162. else
  163. -- Fake Flick
  164. last_fake_flick_tick = 0
  165. end
  166. end
  167. end
  168. local yaw_value
  169. --##### MANUAL ANTI-AIM FUNCTIONALITY WITH USER-ADJUSTABLE FAKE FLICK YAW #####
  170. local function manual_aa_yaw_func()
  171. if MASTER_CHECKBOX:GetValue() and fake_flick_yaw:GetValue() then
  172. local current_right_value = manual_right:GetValue()
  173. local current_left_value = manual_left:GetValue()
  174.  
  175. if current_right_value then
  176. manual_left:SetValue(false)
  177. local yaw_value = -90
  178. gui.SetValue("rbot.antiaim.base", yaw_value)
  179. elseif current_left_value then
  180. manual_right:SetValue(false)
  181. local yaw_value = 90
  182. gui.SetValue("rbot.antiaim.base", yaw_value)
  183. else
  184. local yaw_value = default_yaw:GetValue()
  185. gui.SetValue("rbot.antiaim.base", yaw_value)
  186. end
  187.  
  188. -- Fake Flick Yaw
  189. local g_vars_tick = globals.TickCount()
  190. local period = flick_period_yaw:GetValue()
  191. if invert_yaw:GetValue() and g_vars_tick % period < 1 then
  192. local flick_angle = yaw_value:GetValue() and -90 or 90
  193. gui.SetValue("rbot.antiaim.base", flick_angle)
  194. end
  195. end
  196. end
  197.  
  198. -- Watermark
  199. local function watermark()
  200. draw.SetFont(LOCAL_WATERMARK)
  201. draw.Color(255, 5, 5, 255)
  202. draw.Text(10, SIZE_Y - 60, "Advanced-AntiAim")
  203. end
  204.  
  205. -- Register callbacks
  206. callbacks.Register("Draw", HandlePitchJitter)
  207. callbacks.Register("Draw", HandleYawJitter)
  208. callbacks.Register("Draw", HandleRandomYaw)
  209. callbacks.Register("Draw", HandleSpinControl)
  210. callbacks.Register("Draw", manual_aa_pitch_func)
  211. callbacks.Register("Draw", manual_aa_yaw_func)
  212. callbacks.Register("Draw", watermark)
  213.  
Tags: lua aimware cs2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement