Advertisement
Guest User

Untitled

a guest
May 28th, 2020
1,519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.63 KB | None | 0 0
  1. #NoEnv
  2. SetWorkingDir %A_ScriptDir%
  3. #SingleInstance force
  4. #MaxThreadsBuffer on
  5. SetTitleMatchMode, 2
  6. ;#IfWinActive r5apex.exe
  7. SetBatchLines -1 ;removes default 10ms delay between lines
  8. #MaxHotkeysPerInterval 99000000
  9. #HotkeyInterval 99000000
  10. #KeyHistory 0
  11. ListLines Off
  12. SetKeyDelay, -1, -1
  13. SetMouseDelay, -1
  14. SetDefaultMouseSpeed, 0
  15. SetWinDelay, -1
  16. ;if not A_IsAdmin {
  17. ; Run *RunAs "%A_ScriptFullPath%"
  18. ; ExitApp
  19. ;}
  20.  
  21. ;-----editplz-----
  22. sens:=7 ; x2 from your sens in game
  23. bind_bhop= ;This button should be binded sub-crouch[hold] key in Game setting
  24. subjumpkey=9 ;This button should be binded sub-Jump key in Game setting
  25. subshootkey=0 ;This button should be binded sub-Attack key in Game setting
  26.  
  27. bind_1=1
  28. bind_2=2
  29. bind_run=3 ;Run key
  30. bind_reset=5 ;Reset button
  31. bind_granade=g ;Granade key
  32. bind_box=f ;open box key
  33. bind_r31=Numpad5
  34. bind_r9=Numpad1
  35. bind_alt=Numpad4
  36. bind_re=Numpad7
  37. bind_spit=Numpad6
  38. bind_pros=NumpadAdd
  39. bind_pro=f7
  40. bind_lstar=Numpad9
  41. bind_hav=Numpad3
  42. bind_flat=Numpad2
  43. bind_devo=f11
  44. bind_tdevo=Numpad8
  45. ;----hotkey registor-----
  46. Hotkey, ~$*%bind_1%, key_1
  47. Hotkey, ~$*%bind_2%, key_2
  48. Hotkey, ~$*%bind_run%, key_3
  49. Hotkey, ~$*%bind_r31%, r301
  50. Hotkey, ~$*%bind_r9%, r99
  51. Hotkey, ~$*%bind_alt%, alternator
  52. Hotkey, ~$*%bind_re%, re45
  53. Hotkey, ~$*%bind_spit%, spitfire
  54. Hotkey, ~$*%bind_pros%, prowlerselect
  55. Hotkey, ~$*%bind_pro%, prowler
  56. Hotkey, ~$*%bind_lstar%, lstar
  57. Hotkey, ~$*%bind_hav%, havoc
  58. Hotkey, ~$*%bind_flat%, flatline
  59. Hotkey, ~$*%bind_devo%, devotion
  60. Hotkey, ~$*%bind_tdevo%, taabodevotion
  61. Hotkey, ~$*%bind_reset%, key_reset
  62. Hotkey, ~$*%bind_granade%, key_granade
  63. Hotkey, ~$*%bind_bhop%, key_bhop
  64.  
  65. ; ~~~~~~~~~~~~~~~~~Pattern~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  66. no_pattern := {}
  67. r301_pattern := {1: "-3.5,10.4,80", 2: "4.4,10.6,80", 3: "-6.4,9.5,80"
  68. ,4: "-1.2,10.0,80", 5: "-5.3,7.6,80", 6: "-0.4,4.1,80"
  69. ,7: "-1.8,3.3,80", 8: "-4.1,1.9,80", 9: "-2.4,3.3,80"
  70. ,10: "-3.2,1.0,80", 11: "0.0,3.3,80", 12: "2.0,2.2,80"
  71. ,13: "5.0,2.8,80", 14: "4.7,2.3,80", 15: "5.0,1.9,80"
  72. ,16: "5.2,0.9,80", 17: "3.2,0.9,80", 18: "0.0,2.2,80"
  73. ,19: "-1.1,4.2,80", 20: "-3.1,2.8,80", 21: "-3.6,1.3,80"
  74. ,22: "-3.6,0.0,80", 23: "-2.6,1.4,80", 24: "-2.4,1.4,80"
  75. ,25: "-3.0,0.0,80", 26: "0.0,0.0,80", 27: "0.0,0.0,80"
  76. ,28: "0.0,0.0,80", 29: "0.0,0.0,80", 30: "0.0,0.0,80"}
  77.  
  78. r99_pattern := {1: "-1.6,7,53", 2: "0.1,7,53", 3: "2.3,5.9,53"
  79. ,4: "-1.8,10.2,53", 5: "-3.3,14.9,53", 6: "-6.3,13,53"
  80. ,7: "-5.5,9.7,53", 8: "-2.5,8.8,53", 9: "0.2,9,52"
  81. ,10: "2.3,7.8,52", 11: "4.5,7.3,52", 12: "0.9,6.1,52"
  82. ,13: "1.6,8.5,52", 14: "-1.1,4,52", 15: "-4.9,1,52"
  83. ,16: "-2.3,2.8,52", 17: "-4.5,1.5,52", 18: "4,2.3,52"
  84. ,19: "0,2,52", 20: "2.5,1.7,52", 21: "3.5,1.7,52"
  85. ,22: "4,2.6,52", 23: "3.5,2,52", 24: "4.6,2,52"
  86. ,25: "2,1.5,52", 26: "2,2,52", 27: "-5,3,52"
  87. ,28: "-5,0,52", 29: "-5,1,52", 30: "0,0,52"}
  88.  
  89. alternator_pattern := {1: "0.0,14.4,109", 2: "0.0,13.0,109", 3: "0.0,15.8,109"
  90. ,4: "0.0,13.9,109", 5: "0.0,15.6,109", 6: "0.0,15.6,109"
  91. ,7: "-2.0,12.7,109", 8: "-2.0,7.3,109", 9: "-3.0,13.2,109"
  92. ,10: "-3.0,6.6,109", 11: "-3.0,9.8,109", 12: "-2.0,1.2,109"
  93. ,13: "-2.0,6.8,109", 14: "-2.0,4.6,109", 15: "-1.0,10.0,109"
  94. ,16: "0.0,9.3,109", 17: "5.0,3.2,109", 18: "5.0,9.8,109"
  95. ,19: "5.0,0.7,109", 20: "5.0,8.3,109", 21: "5.0,-0.2,109"
  96. ,22: "5.0,7.1,109", 23: "5.0,1.7,109", 24: "5.0,7.6,109"
  97. ,25: "5.0,-0.7,109", 26: "5.0,6.8,109", 27: "5.0,0.0,109"}
  98.  
  99.  
  100. re45_pattern := {1: "-0.7,12.6,112", 2: "-1.4,10.9,112", 3: "-6.1,11.2,112"
  101. ,4: "-3.0,11.6,112", 5: "-4.1,9.9,112", 6: "-5.7,8.0,112"
  102. ,7: "-5.9,7.1,112", 8: "-7.7,6.9,112", 9: "-7.2,6.2,112"
  103. ,10: "-6.7,5.0,112", 11: "-4.7,5.1,112", 12: "1.0,6.4,112"
  104. ,13: "-5.7,5.7,112", 14: "-3.4,5.1,112", 15: "-2.4,6.4,112"
  105. ,16: "2.4,5.7,112", 17: "-3.1,4.7,142", 18: "-5.1,1.3,142"
  106. ,19: "-4.7,3.4,147", 20: "-3.7,4.1,147", 21: "-5.1,2.4,147"
  107. ,22: "-5.1,4.1,147", 23: "-5.0,0.0,147"}
  108.  
  109. spitfire_pattern := {1: "3.0,15.2,110", 2: "1.5,4.8,110", 3: "9.6,9.6,110", 4: "6.3,7.0,110"
  110. ,5: "3.3,9.2,110", 6: "-0.3,9.2,110", 7: "-4.5,2.6,110", 8: "-9.6,-2.0,110"
  111. ,9: "-2.7,-1.6,110", 10: "-3.9,3.2,110", 11: "-2.7,6.6,110", 12: "4.5,2.0,110"
  112. ,13: "9.9,4.4,110", 14: "5.1,1.4,110", 15: "9.6,-1.6,110", 16: "4.2,1.4,110"
  113. ,17: "1.8,7.8,110", 18: "3.3,7.6,110", 19: "6.9,4.4,110", 20: "9.0,1.8,110"
  114. ,21: "3.9,0.6,113", 22: "-1.2,5,113", 23: "-6.9,2.5,113", 24: "-4.5,2,113"
  115. ,25: "-7.8,2.2,113", 26: "-8.1,1,113", 27: "-7.8,-1,113", 28: "-3.3,3.6,113"
  116. ,29: "-4.5,4.2,113", 30: "-0.3,4.2,113", 31: "-9.6,-2.0,113", 32: "-2.7,-1.6,113"
  117. ,33: "-3.9,2.2,113", 34: "-2.6,3,113", 35: "4.5,1.5,113", 36: "9.9,3.4,113"
  118. ,37: "5.1,1.4,113", 38: "9.6,-1.6,113", 39: "4.2,1.4,113", 40: "1.8,7.8,113"
  119. ,41: "3.3,7.6,113", 42: "6.9,4.4,113", 43: "9.0,1.8,113", 44: "3.9,0.6,113"
  120. ,45: "-1.2,5.6,113", 46: "-6.9,3.2,113", 47: "-4.5,2.6,113", 48: "-7.8,3.2,113"
  121. ,49: "-8.1,2.0,113", 50: "-7.8,-2.0,113", 51: "-3.3,4.6,113", 52: "-4.5,6.2,113"
  122. ,53: "-0.3,6.2,113", 54: "-9.6,-2.0,113", 55: "-2.7,-1.6,113", 56: "-3.9,3.2,113"
  123. ,57: "-2.7,6.6,113", 58: "4.5,2.0,113", 59: "9.9,4.4,113", 60: "5.1,1.4,113"
  124. ,61: "9.6,-1.6,113"}
  125.  
  126. prowlerselect_pattern := {1: "2,15.2,120", 2: "2,11.7,120", 3: "2,12.9,120"
  127. ,4: "2,12.4,120", 5: "3,9.4,120", 6: "3,10.6,120"
  128. ,7: "3,9.0,120", 8: "3,8.5,120", 9: "-2,3.9,120"
  129. ,10: "-3,6.0,120", 11: "-3,6.0,120", 12: "-3,6.4,120"
  130. ,13: "-3,6.9,120", 14: "-3,3.9,120", 15: "3,7.8,120"
  131. ,16: "3,4.8,120", 17: "3,3.7,120", 18: "0,3.9,120"
  132. ,19: "0,6.0,120", 20: "0.0,5.3,120", 21: "0.0,0.0,120"}
  133.  
  134. prowler_pattern := {1: "0.7,17.3,36", 2: "0.3,15.0,36", 3: "0.3,14.3,36"}
  135.  
  136.  
  137.  
  138. lstar_pattern := {1: "0,5,37", 2: "0,5,37", 3: "0,5,37"
  139. ,4: "2,5,37", 5: "2,5,37", 6: "2,5,37"
  140. ,7: "2,5,37", 8: "2,5,37", 9: "2,5,37"
  141. ,10: "0,5,32", 11: "0,5,32", 12: "0,5,37"
  142. ,13: "0,5,32", 14: "0,5,32", 15: "0,5,32"
  143. ,16: "0,5,42", 17: "0,5,42", 18: "0,5,42"
  144. ,19: "0,5,42", 20: "0,5,42", 21: "0,5,42"
  145. ,22: "0,5,42", 23: "0,5,55", 24: "0,5,55"
  146. ,25: "0,5,55", 26: "0,5,55", 27: "0,5,55"
  147. ,28: "0,5,55", 29: "0,5,55", 30: "0,5,55"
  148. ,31: "0,5,55", 32: "0,5,55", 33: "0,5,55"
  149. ,34: "0,5,55", 35: "0,5,55", 36: "0,5,55"
  150. ,37: "0,5,55", 38: "0,5,55", 39: "0,5,55"
  151. ,40: "0,5,55", 41: "0,5,55", 42: "0,5,55"
  152. ,43: "0,5,55", 44: "0,5,55", 45: "0,5,55"}
  153.  
  154. havoc_pattern := {1: "0.0,0.0,460", 2: "0,15.5,84", 3: "0,15.5,84"
  155. ,4: "-1.5,14.4,84", 5: "-1.9,14.2,84", 6: "-1.6,14.0,84"
  156. ,7: "-2.5,14.1,84", 8: "-3.2,14.1,84", 9: "-2.9,14.1,84"
  157. ,10: "-2.8,14.1,84", 11: "-1.5,14.3,84", 12: "-1.9,14.1,84"
  158. ,13: "-1.5,14.1,84", 14: "-1.5,14.1,84", 15: "1.4,14.1,84"
  159. ,16: "1.3,14,84", 17: "1.4,14,84", 18: "1.0,14,84"
  160. ,19: "-1.9,5,84", 20: "-1.2,5,84", 21: "-1.0,10,84"
  161. ,22: "1.1,5,84", 23: "-1.2,5,84", 24: "-1.1,5,84"
  162. ,25: "1.0,5,84", 26: "-1.2,5,84", 27: "1.0,5,84"
  163. ,28: "-1.1,5,84", 29: "-1.0,3.0,84", 30: "-0.9,5,84"
  164. ,31: "-1.0,5,84", 32: "-0.5,3,84", 33: "-1.5,5,84"}
  165.  
  166. flatline_pattern := {1: "3.0,15.2,110", 2: "1.5,5.3,110", 3: "9.6,10.1,110", 4: "6.3,7.5,110"
  167. ,5: "3.3,9.7,110", 6: "-1.3,9.7,110", 7: "-4.5,2.6,110", 8: "-10.6,-2.0,110"
  168. ,9: "-2.7,-1.3,110", 10: "-3.9,3.5,110", 11: "-1.7,6.6,110", 12: "4.5,2.0,110"
  169. ,13: "9.9,4.4,110", 14: "5.1,1.9,110", 15: "9.6,-1.6,110", 16: "4.2,2.1,110"
  170. ,17: "1.8,8.3,110", 18: "3.3,8.1,110", 19: "6.9,4.9,110", 20: "9.0,2.3,110"
  171. ,21: "3.9,0.6,113", 22: "-1.2,5,113", 23: "-7.9,2.5,113", 24: "-5.5,2,113"
  172. ,25: "-8.8,2.2,113", 26: "-9.1,1.5,113", 27: "-8.8,1,113"}
  173.  
  174.  
  175.  
  176. devotion_pattern := {1: "0.0,0.0,40", 2: "0.8,24.5,180", 3: "0.3,20.0,170"
  177. ,4: "0.3,23.5,140", 5: "2.0,23.2,120", 6: "3.1,19.5,100"
  178. ,7: "2.8,12.6,85", 8: "2.8,10.6,85", 9: "6.2,4.8,85"
  179. ,10: "2.8,6.4,85", 11: "3.1,5.8,68", 12: "4.8,7.1,68"
  180. ,13: "5.0,4.4,68", 14: "6.2,2.3,68", 15: "7.6,1.8,68"
  181. ,16: "7.0,0.5,68", 17: "4.2,-1.6,68", 18: "6.2,1.6,68"
  182. ,19: "-1.4,4.6,68", 20: "0.0,5.3,66", 21: "-3.9,3.9,66"
  183. ,22: "-4.5,2.3,66", 23: "-4.5,2.5,66", 24: "-6.7,3.0,66"
  184. ,25: "-7.0,3.0,66", 26: "-3.1,3.2,66", 27: "1.7,3.7,66"
  185. ,28: "-1.4,4.8,66", 29: "-3.6,4.4,66", 30: "-5.0,3.5,70"
  186. ,31: "-6.2,2.1,70", 32: "-5.6,-0.5,70", 33: "-5.6,-0.5,70"
  187. ,34: "-4.8,3.7,70", 35: "-4.8,3.7,67", 36: "-0.8,4.1,67"
  188. ,37: "-2.8,3.5,67", 38: "2.0,3.5,67", 39: "2.0,3.5,66"
  189. ,40: "-1.4,3.7,67", 41: "-1.4,2.8,67", 42: "-3.6,1.6,67"
  190. ,43: "-1.4,2.3,67", 44: "0.0,3.0,67", 45: "3.6,1.8,67"}
  191.  
  192. taabodevotion_pattern := {1: "0.0,0.0,40", 2: "0.8,24.5,140", 3: "0.3,20.0,140"
  193. ,4: "0.3,23.5,140", 5: "2.0,23.2,100", 6: "3.1,19.5,100"
  194. ,7: "2.8,12.6,100", 8: "2.8,10.6,100", 9: "6.2,4.8,100"
  195. ,10: "2.8,6.4,88", 11: "3.1,5.8,88", 12: "4.8,7.1,88"
  196. ,13: "5.0,4.4,88", 14: "6.2,2.3,88", 15: "7.6,10.8,86"
  197. ,16: "7.0,0.5,86", 17: "4.2,-1.6,86", 18: "6.2,1.6,86"
  198. ,19: "-1.4,4.6,86", 20: "0.0,5.3,86", 21: "-3.9,3.9,86"
  199. ,22: "-4.5,2.3,86", 23: "-4.5,2.5,86", 24: "-6.7,3.0,86"
  200. ,25: "-7.0,3.0,86", 26: "-3.1,3.2,86", 27: "1.7,3.7,86"
  201. ,28: "-1.4,4.8,86", 29: "-3.6,4.4,86", 30: "-5.0,3.5,88"
  202. ,31: "-6.2,2.1,88", 32: "-5.6,-0.5,88", 33: "-5.6,-0.5,88"
  203. ,34: "-4.8,3.7,88", 35: "-4.8,3.7,87", 36: "-0.8,4.1,87"
  204. ,37: "-2.8,3.5,87", 38: "2.0,3.5,87", 39: "2.0,3.5,86"
  205. ,40: "-1.4,3.7,86", 41: "-1.4,2.8,86", 42: "-3.6,1.6,86"
  206. ,43: "-1.4,2.3,86", 44: "0.0,3.0,87", 45: "0.0,0.0,120"}
  207.  
  208. ;~~~~~~~~~~~~~~~~~~~~~~~Base state~~~~~~~~~~~~~~~~~~~~~~~~~~
  209. slotA:=1 ;Slot1 activate memory Var
  210. slotB:=0 ;Slot2 activate memory Var
  211. memA:=non ,memB:=non ;Weapon pattern memory Var
  212. memR1:=0 memR2:=0 ;Fire-mode memory Var
  213. active_pattern:=no_pattern
  214. modifier:= 3.4/sens
  215. rate=10
  216. volume=80
  217. SAPI.voice := SAPI.GetVoices().Item(1)
  218. SAPI := ComObjCreate("SAPI.SpVoice")
  219. SAPI.rate:=rate
  220. SAPI.volume:=volume
  221. rapidmode:=0
  222.  
  223. isCursorShown()
  224. {
  225. StructSize := A_PtrSize + 16
  226. VarSetCapacity(InfoStruct, StructSize)
  227. NumPut(StructSize, InfoStruct)
  228. DllCall("GetCursorInfo", UInt, &InfoStruct)
  229. Result := NumGet(InfoStruct, 8)
  230. if Result > 1
  231. Return 1
  232. else
  233. Return 0
  234. }
  235. Loop {
  236. Sleep 50
  237. if isCursorShown() == 1
  238. mice:=1
  239. else
  240. mice:=0
  241. }
  242.  
  243. ; ~~~~~~~~~~~~~~~~~Base activation~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  244. key_1:
  245. slotA:=1
  246. slotB:=0
  247. active_pattern:=%memA%_pattern
  248. rapidmode:=memR1
  249. SAPI.Speak(memA,1)
  250. return
  251.  
  252. key_2:
  253. slotA:=0
  254. slotB:=1
  255. active_pattern:=%memB%_pattern
  256. rapidmode:=memR2
  257. SAPI.Speak(memB,1)
  258. return
  259.  
  260. key_3:
  261. key_granade:
  262. active_pattern:=no_pattern
  263. rapidmode:=()
  264. if GetKeyState(bind_run,"P")
  265. SAPI.Speak("",1)
  266. else if GetKeyState(bind_granade,"P")
  267. SAPI.Speak("",1)
  268. return
  269.  
  270.  
  271. key_reset:
  272. active_pattern:=no_pattern
  273. slotA:=1
  274. slotB:=0
  275. memA:=non
  276. memB:=non
  277. memR1:=0
  278. memR2:=0
  279. rapidmode:=0
  280. SAPI.Speak("allreset",1)
  281. return
  282.  
  283. ; ~~~~~~~~~~~~~~~~~~~~~~~~~~Weapon Profile~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  284. ;Full-Auto Weapon section
  285. r301:
  286. r99:
  287. alternator:
  288. re45:
  289. spitfire:
  290. lstar:
  291. havoc:
  292. flatline:
  293. devotion:
  294. taabodevotion:
  295.  
  296. prowlerselect:
  297. {
  298. nullA := A_thislabel
  299. active_pattern:=%nullA%_pattern
  300. rapidmode:=0
  301. if (slotA)
  302. memA:=nullA ,memR1:=0
  303. else
  304. memB:=nullA ,memR2:=0
  305. SAPI.Speak(nullA,1)
  306. }
  307. return
  308.  
  309. ;Tap or burst weapon section
  310. prowler:
  311. {
  312. nullA := A_thislabel
  313. active_pattern:=%nullA%_pattern
  314. rapidmode:=1
  315. if (slotA)
  316. memA:=nullA ,memR1:=1
  317. else
  318. memB:=nullA ,memR2:=1
  319. SAPI.Speak(nullA,1)
  320. }
  321. return
  322.  
  323. ; ~~~~~~~~~~~~~~~~~~~~~~Main~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  324.  
  325. key_bhop:
  326. sleep 150
  327. while GetKeyState(bind_bhop, "P")
  328. {
  329. Random, foo, 50, 100
  330. Send % subjumpkey
  331. Sleep %foo%
  332. send {space}
  333. sleep %foo%
  334. }
  335. return
  336.  
  337. #IF mice=0 ; Disable switch cursor shown (start line)
  338. ~$*LButton::
  339. sleep 5
  340. loop
  341. {
  342. x := strsplit(active_pattern[a_index],",")[1] ;using str insteed of normal array for easly edit pattern
  343. y := strsplit(active_pattern[a_index],",")[2]
  344. t := strsplit(active_pattern[a_index],",")[3]
  345. dllcall("mouse_event","UInt",0x01,"UInt",x*modifier,"UInt",y*modifier)
  346. sleep t
  347. } until !GetKeyState("LButton","P") || a_index > active_pattern.maxindex()
  348. return
  349. #IF ; Disable switch cursor shown (end line)
  350.  
  351. ~end::
  352. SAPI.Speak("bye")
  353. Exitapp
  354. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement