Advertisement
Guest User

xniiga

a guest
Feb 19th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. ;----Aim Assist v4.00 v1----
  2. #Persistent
  3. #KeyHistory, 0
  4. #NoEnv
  5. #HotKeyInterval 1
  6. #MaxHotkeysPerInterval 127
  7. #InstallKeybdHook
  8. #UseHook
  9. #SingleInstance, Force
  10. SetKeyDelay,-0 8
  11. SetControlDelay, -1
  12. SetMouseDelay, -1
  13. SetWinDelay,-1
  14. SendMode, InputThenPlay
  15. SetBatchLines,-1
  16. ListLines, Off
  17. CoordMode, Pixel, Screen, RGB
  18. CoordMode, Mouse, Screen
  19. PID := DllCall("GetCurrentProcessId")
  20. Process, Priority, %PID%, Normal
  21.  
  22. ColVn := 0
  23. ZeroX := 960
  24. ZeroY := 540
  25. CFovX := 155 ; square research in width
  26. CFovY := 155 ;square research in height
  27. ScanL := ZeroX - CFovX
  28. ScanT := ZeroY - CFovY
  29. ScanR := ZeroX + CFovX
  30. ScanB := ZeroY + CFovY
  31.  
  32. ;Counter-Terrorists
  33. F4::
  34. Loop {
  35. GetKeyState, Mouse2, LButton, P
  36. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x5B563B, ColVn, Fast RGB ; searching color of ennemy
  37. if errorlevel = 0
  38.  
  39. {
  40.  
  41. GoSub GetAimOffset
  42. GoSub GetAimMoves2
  43.  
  44. GoSub MouseMoves
  45. GoSub AntiShake
  46. }
  47. }
  48.  
  49. GetAimMoves2:
  50. RootX := Floor(( AimPixelX - A_ScreenWidth/2 + 95)* 0.015) ; 95 editable = aim lock speed / 0.015 = offset where the mouse will be lock left right
  51. x := RootX * DirX
  52. Return
  53.  
  54. ;Terrorist
  55. F3::
  56. Loop {
  57. GetKeyState, Mouse2, LButton, P
  58. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x644325, ColVn, Fast RGB
  59. if errorlevel != 0
  60. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3B2614, ColVn, Fast RGB
  61. if errorlevel != 0
  62. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3E2113, ColVn, Fast RGB
  63. if errorlevel != 0
  64. PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x5C4B2C, ColVn, Fast RGB
  65. if errorlevel = 0
  66.  
  67. {
  68.  
  69. GoSub GetAimOffset
  70. GoSub GetAimMoves
  71.  
  72. GoSub MouseMoves
  73. GoSub AntiShake
  74.  
  75. }
  76.  
  77. }
  78.  
  79.  
  80. GetAimOffset:
  81. AimX := AimPixelX - ZeroX
  82. If ( AimX > 0 ) {
  83. DirX := 1
  84. }
  85. If ( AimX < 0 ) {
  86. DirX := -1
  87. }
  88. If ( AimY > 0 ) {
  89. DirY := 0
  90. }
  91. If ( AimY < 0 ) {
  92. DirY := 0
  93. }
  94. AimOffsetX := AimX * DirX
  95. Return
  96.  
  97. GetAimMoves:
  98. RootX := Floor(( AimPixelX - A_ScreenWidth/2 + 95)* 0.015) ; same as up
  99. x := RootX * DirX
  100. Return
  101.  
  102. AntiShake:
  103. Abs(AimPixelX - A_ScreenWidth/2 + 11)> 60 ; abcisse on research point with offset
  104.  
  105.  
  106. MouseMoves:
  107. If ( Mouse2 == "D" ) {
  108. DllCall("mouse_event", "UInt", 0x01, "Int", x, "Int", 0)
  109. }
  110. return
  111.  
  112. INS:: Reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement