Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.75 KB | None | 0 0
  1. ;CS:GO Auto Buy and CS:GO Tools
  2. ;By: EpicnessCoding
  3. ;There is random sleep times for more human-like inputs
  4. ;Have Fun!
  5.  
  6. #singleInstance, force ;one instance is easier to handle
  7. SendMode Input ;for the fast sending keys
  8.  
  9. SetTitleMatchMode, 3
  10. #IfWinActive Counter-Strike: Global Offensive
  11.  
  12. ;0 = default
  13. ;1 = tap once
  14. ;2 = tap twice
  15. ;3 = burst
  16. ;4 = fully auto for semi auto
  17. fireMode = 0
  18.  
  19. ;0 = off
  20. ;1 = on
  21. noRecoil = 0
  22.  
  23. canAuto = 0
  24.  
  25. BHopOn = 0
  26.  
  27. consistPull = 0
  28.  
  29. firstShotRecoilTimeMax = 15
  30. firstShotRecoilTime = 0
  31.  
  32. firstShotRestTimeMax = 5
  33. firstShotRestTime = 0
  34.  
  35. buyWinShow = 0
  36.  
  37. ;FileRead, tempWepText, %A_WorkingDir%\buy_info.txt
  38. tempWepText := "nova|xm1014|sawedoff|m249|negev|mac10|mp7|ump45|p90|bizon|famas|m4a1|ssg08|aug|awp|scar20`nelite|p250|tec9|deagle`nvest|vesthelm|Taser|defuser`nmolotov|decoy|flashbang|hegrenade|smokegrenade`nNova|XM1014|Sawed-Off/MAG-7|M249|Negev|MAC-10/MP9|MP7|UMP-45|P90|PP-Bizon|Galil AR/FAMAS|AK47/M4A4/M4A1-S|SSG 08|SG 553/AUG|AWP|G3SG1/SCAR-20`nDual Berettas|P250|Tec-9/Five-SeveN/CZ75-Auto|Desert Eagle`nKevlar Vest|Kevlar + Helmet|Zeus x27|Defuse/Rescue Kit`nMolotov/Incendiary Grenade|Decoy Grenade|Flashbang|High Explosive Grenade|Smoke Grenade"
  39.  
  40. ;remove all of the \r for simplicity
  41. StringReplace, tempWepText, tempWepText, `r, ,
  42. ;arrays 1-4 is console name
  43. ;arrays 5-8 is label (alias)
  44. StringSplit, wepArray, tempWepText, `n,
  45. ;the split string array is for the sake of simplicity
  46. StringSplit, wepArraySplit1, wepArray1, |,
  47. StringSplit, wepArraySplit2, wepArray2, |,
  48. StringSplit, wepArraySplit3, wepArray3, |,
  49. StringSplit, wepArraySplit4, wepArray4, |,
  50.  
  51. ;read the saved presets file
  52. FileRead, tempSaveText, %A_WorkingDir%\buy_save.txt
  53. If ErrorLevel = 1
  54. {
  55. FileAppend, None#None#None#None^None#None#None#None^None#None#None#None, %A_WorkingDir%\buy_save.txt
  56. FileRead, tempSaveText, %A_WorkingDir%\buy_save.txt
  57. }
  58. StringReplace, tempSaveText, tempSaveText, `r, ,
  59. StringSplit, tempSaveArray, tempSaveText, ^,
  60. StringSplit, tempSaveArraySplit1, tempSaveArray1, #,
  61. StringSplit, tempSaveArraySplit2, tempSaveArray2, #,
  62. StringSplit, tempSaveArraySplit3, tempSaveArray3, #,
  63. ;this is were the saved presets are stored
  64. primary1 := tempSaveArraySplit11
  65. secondary1 := tempSaveArraySplit12
  66. gear1 := tempSaveArraySplit13
  67. grenade1 := tempSaveArraySplit14
  68.  
  69. primary2 := tempSaveArraySplit21
  70. secondary2 := tempSaveArraySplit22
  71. gear2 := tempSaveArraySplit23
  72. grenade2 := tempSaveArraySplit24
  73.  
  74. primary3 := tempSaveArraySplit31
  75. secondary3 := tempSaveArraySplit32
  76. gear3 := tempSaveArraySplit33
  77. grenade3 := tempSaveArraySplit34
  78.  
  79. ;show GUI
  80. Gui, Show, w200 h300, CS:GO Tools
  81. Gui, Add, Button, x10 y10 w180 h20 vSHOWBUYBUTTON gSHOWBUY, Autobuy Settings >>
  82. Gui, Add, GroupBox, x10 y50 w135 h190, Other:
  83. Gui, Add, Text, x20 y70 w200 vFIREMODE cBlue, Fire Mode: Default
  84. Gui, Add, Text, x20 y90 vNORECOIL cBlue, No Recoil: Off
  85. Gui, Add, Text, x20 y110 cBlue, No Recoil Amount:
  86. Gui, Add, Edit
  87. Gui, Add, UpDown, vNORECOILAMT Range1-8, 1
  88. Gui, Add, CheckBox, x20 y160 vFireStop, Stop On Fire
  89. Gui, Add, CheckBox, x20 y180 vSlowAuto, Slow Down Auto Fire
  90. Gui, Add, Text, x20 y200 vBHOP cBlue, BHop: Off
  91. Gui, Add, Text, x20 y220 vCONSISTPULL cBlue, Consistent Pull: Off
  92.  
  93. Gui, Add, GroupBox, x-5 y270 w205 h50,
  94. Gui, Add, Text, x5 y280, Good Luck`, Have Fun!
  95.  
  96. Gui, 2:+AlwaysOnTop +ToolWindow -Caption
  97. Gui, 2:Show, x10 y10 w220 h500, CS:GO Buy Settings
  98. Gui, 2:Hide
  99. Gui, 2:Add, Text, x10 y10, Primary:
  100. Gui, 2:Add, DropDownList, x10 y30 w150 vPrimaryWep Choose1 AltSubmit, None|%wepArray5%
  101. Gui, 2:Add, Text, x10 y60, Secondary:
  102. Gui, 2:Add, DropDownList, x10 y80 w150 vSecondaryWep Choose1 AltSubmit, None|%wepArray6%
  103. Gui, 2:Add, Text, x10 y110, Gear:
  104. Gui, 2:Add, ListBox, x10 y130 w150 h120 vGearWep Multi Choose1 AltSubmit, None|%wepArray7%
  105. Gui, 2:Add, Text, x10 y250, Grenade:
  106. Gui, 2:Add, ListBox, x10 y270 w150 h120 vGrenadeWep Multi Choose1 AltSubmit, None|%wepArray8%
  107. Gui, 2:Add, Text, x10 y390, Set As Key:
  108. Gui, 2:Add, Button, x10 y410 w60 h60 vPRESET1BUTTON gPRESET1, Numpad 1
  109. Gui, 2:Add, Button, x80 y410 w60 h60 vPRESET2BUTTON gPRESET2, Numpad 2
  110. Gui, 2:Add, Button, x150 y410 w60 h60 vPRESET3BUTTON gPRESET3, Numpad 3
  111.  
  112. OnExit, GuiClose
  113.  
  114. return ;return so that the program does not run the code below on start-up
  115.  
  116. *Up::
  117.  
  118. GuiControlGet, NORECOILAMT
  119. NORECOILAMT := NORECOILAMT + 1
  120. GuiControl, , NORECOILAMT, %NORECOILAMT%
  121.  
  122. return
  123.  
  124. *Down::
  125.  
  126. GuiControlGet, NORECOILAMT
  127. NORECOILAMT := NORECOILAMT - 1
  128. GuiControl, , NORECOILAMT, %NORECOILAMT%
  129.  
  130. return
  131.  
  132. SHOWBUY:
  133.  
  134. WinGetPos, guiPosX, guiPosY,,, A
  135. guiPosX := guiPosX + 200
  136. if(buyWinShow == 0){
  137. GuiControl,, SHOWBUYBUTTON, Autobuy Settings <<
  138. Gui, 2:Show, x%guiPosX% y%guiPosY% Restore
  139. buyWinShow = 1
  140. }else{
  141. GuiControl,, SHOWBUYBUTTON, Autobuy Settings >>
  142. Gui, 2:Hide
  143. buyWinShow = 0
  144. }
  145.  
  146. return
  147.  
  148. ;handle the preset button clicks
  149. PRESET1:
  150.  
  151. GuiControlGet, PrimaryWep
  152. GuiControlGet, SecondaryWep
  153. GuiControlGet, GearWep
  154. GuiControlGet, GrenadeWep
  155. PrimaryWep -= 1
  156. SecondaryWep -= 1
  157.  
  158. if(PrimaryWep != 0)
  159. primary1 := wepArraySplit1%PrimaryWep%
  160. else
  161. primary1 := "None"
  162. if(SecondaryWep != 0)
  163. secondary1 := wepArraySplit2%SecondaryWep%
  164. else
  165. secondary1 := "None"
  166.  
  167. Loop, parse, GearWep, |
  168. {
  169. tempVar := A_LoopField - 1
  170. if(tempVar != 0){
  171. if(A_Index == 1)
  172. gear1 := wepArraySplit3%tempVar%
  173. else
  174. gear1 := gear1 . "|" . wepArraySplit3%tempVar%
  175. }else{
  176. gear1 := "None"
  177. }
  178. }
  179.  
  180. Loop, parse, GrenadeWep, |
  181. {
  182. tempVar := A_LoopField - 1
  183. if(tempVar != 0){
  184. if(A_Index == 1)
  185. grenade1 := wepArraySplit4%tempVar%
  186. else
  187. grenade1 := grenade1 . "|" . wepArraySplit4%tempVar%
  188. }else{
  189. grenade1 := "None"
  190. break
  191. }
  192. }
  193.  
  194. return
  195.  
  196. PRESET2:
  197.  
  198. GuiControlGet, PrimaryWep
  199. GuiControlGet, SecondaryWep
  200. GuiControlGet, GearWep
  201. GuiControlGet, GrenadeWep
  202. PrimaryWep -= 1
  203. SecondaryWep -= 1
  204.  
  205. if(PrimaryWep != 0)
  206. primary2 := wepArraySplit1%PrimaryWep%
  207. else
  208. primary2 := "None"
  209. if(SecondaryWep != 0)
  210. secondary2 := wepArraySplit2%SecondaryWep%
  211. else
  212. secondary2 := "None"
  213.  
  214. Loop, parse, GearWep, |
  215. {
  216. tempVar := A_LoopField - 1
  217. if(tempVar != 0){
  218. if(A_Index == 1)
  219. gear2 := wepArraySplit3%tempVar%
  220. else
  221. gear2 := gear2 . "|" . wepArraySplit3%tempVar%
  222. }else{
  223. gear2 := "None"
  224. }
  225. }
  226.  
  227. Loop, parse, GrenadeWep, |
  228. {
  229. tempVar := A_LoopField - 1
  230. if(tempVar != 0){
  231. if(A_Index == 1)
  232. grenade2 := wepArraySplit4%tempVar%
  233. else
  234. grenade2 := grenade2 . "|" . wepArraySplit4%tempVar%
  235. }else{
  236. grenade2 := "None"
  237. break
  238. }
  239. }
  240.  
  241. return
  242.  
  243. PRESET3:
  244.  
  245. GuiControlGet, PrimaryWep
  246. GuiControlGet, SecondaryWep
  247. GuiControlGet, GearWep
  248. GuiControlGet, GrenadeWep
  249. PrimaryWep -= 1
  250. SecondaryWep -= 1
  251.  
  252. if(PrimaryWep != 0)
  253. primary3 := wepArraySplit1%PrimaryWep%
  254. else
  255. primary3 := "None"
  256. if(SecondaryWep != 0)
  257. secondary3 := wepArraySplit2%SecondaryWep%
  258. else
  259. secondary3 := "None"
  260.  
  261. Loop, parse, GearWep, |
  262. {
  263. tempVar := A_LoopField - 1
  264. if(tempVar != 0){
  265. if(A_Index == 1)
  266. gear3 := wepArraySplit3%tempVar%
  267. else
  268. gear3 := gear3 . "|" . wepArraySplit3%tempVar%
  269. }else{
  270. gear3 := "None"
  271. }
  272. }
  273.  
  274. Loop, parse, GrenadeWep, |
  275. {
  276. tempVar := A_LoopField - 1
  277. if(tempVar != 0){
  278. if(A_Index == 1)
  279. grenade3 := wepArraySplit4%tempVar%
  280. else
  281. grenade3 := grenade3 . "|" . wepArraySplit4%tempVar%
  282. }else{
  283. grenade3 := "None"
  284. break
  285. }
  286. }
  287.  
  288. return
  289.  
  290. GuiClose:
  291.  
  292. FileDelete, %A_WorkingDir%\buy_save.txt
  293. saveText := primary1 . "#" . secondary1 . "#" . gear1 . "#" . grenade1 . "^" . primary2 . "#" . secondary2 . "#" . gear2 . "#" . grenade2 . "^" . primary3 . "#" . secondary3 . "#" . gear3 . "#" . grenade3
  294. FileAppend, %saveText%, %A_WorkingDir%\buy_save.txt
  295. ExitApp
  296.  
  297. return
  298.  
  299. *CapsLock::
  300.  
  301. BHopOn += 1
  302. if(BHopOn > 1){
  303. BHopOn = 0
  304. }
  305. if(BHopOn == 0)
  306. GuiControl, , BHOP, BHop: Off
  307. else
  308. GuiControl, , BHOP, BHop: On
  309.  
  310. return
  311.  
  312. *Space::
  313.  
  314. if(BHopOn == 1){
  315. While GetKeyState("Space", "P"){
  316. Send {Space Down}
  317. Sleep 20
  318. Send {Space Up}
  319. Sleep 30 ;This is the wait time between the space presses
  320. }
  321. }else{
  322. Send {Space Down}
  323. KeyWait, Space
  324. Send {Space Up}
  325. }
  326.  
  327. return
  328.  
  329. *RAlt::
  330.  
  331. noRecoil += 1
  332. if(noRecoil > 1){
  333. noRecoil = 0
  334. }
  335. if(noRecoil == 0)
  336. GuiControl, , NORECOIL, No Recoil: Off
  337. else
  338. GuiControl, , NORECOIL, No Recoil: On
  339.  
  340. return
  341.  
  342. *RShift::
  343.  
  344. consistPull += 1
  345. if(consistPull > 1){
  346. consistPull = 0
  347. }
  348. if(consistPull == 0)
  349. GuiControl, , CONSISTPULL, Consistent Pull: Off
  350. else
  351. GuiControl, , CONSISTPULL, Consistent Pull: On
  352.  
  353. return
  354.  
  355. ;toggles the fireMode using right ctrl
  356. *RCtrl::
  357.  
  358. fireMode = 0 ;default
  359. KeyWait, RCtrl
  360. GuiControl, , FIREMODE, Fire Mode: Default
  361.  
  362. return
  363.  
  364. *Numpad7::
  365.  
  366. fireMode = 1 ;tap once
  367. KeyWait, Numpad7
  368. GuiControl, , FIREMODE, Fire Mode: 1x Tap Fire
  369.  
  370. return
  371.  
  372. *Numpad8::
  373.  
  374. fireMode = 2 ;tap twice
  375. KeyWait, Numpad8
  376. GuiControl, , FIREMODE, Fire Mode: 2x Tap Fire
  377.  
  378. return
  379.  
  380. *Numpad9::
  381.  
  382. fireMode = 3 ;burst
  383. KeyWait, Numpad9
  384. GuiControl, , FIREMODE, Fire Mode: Burst Fire
  385.  
  386. return
  387.  
  388. *Numpad4::
  389.  
  390. fireMode = 4 ;full auto for semi auto
  391. KeyWait, Numpad4
  392. GuiControl, , FIREMODE, Fire Mode: Auto Fire
  393.  
  394. return
  395.  
  396. *Numpad5::
  397.  
  398. fireMode = 5 ;full auto for semi auto
  399. KeyWait, Numpad5
  400. GuiControl, , FIREMODE, Fire Mode: Knife
  401.  
  402. return
  403.  
  404. *Numpad6::
  405.  
  406. fireMode = 6 ;tap = burst, click and hold = regular fire
  407. KeyWait, Numpad6
  408. GuiControl, , FIREMODE, Fire Mode: TapBurstHoldRegular
  409.  
  410. return
  411.  
  412. ;handles the numpad events (use preset)
  413. *Numpad1::
  414.  
  415. Send ``
  416.  
  417. Random, tempRand, 140, 160
  418. Sleep %tempRand%
  419.  
  420. if(primary1 != "None"){
  421. Send buy%A_Space%%primary1%
  422. Random, tempRand, 140, 160
  423. Sleep %tempRand%
  424. Send {Enter down}
  425. Sleep 50
  426. Send {Enter up}
  427. Sleep 50
  428. }
  429. if(secondary1 != "None"){
  430. Send buy%A_Space%%secondary1%
  431. Random, tempRand, 140, 160
  432. Sleep %tempRand%
  433. Send {Enter down}
  434. Sleep 50
  435. Send {Enter up}
  436. Sleep 50
  437. }
  438. if(gear1 != "None"){
  439. Loop, parse, gear1, |
  440. {
  441. Send buy%A_Space%%A_LoopField%
  442. Random, tempRand, 140, 160
  443. Sleep %tempRand%
  444. Send {Enter down}
  445. Sleep 50
  446. Send {Enter up}
  447. Sleep 50
  448. }
  449. }
  450. if(grenade1 != "None"){
  451. Loop, parse, grenade1, |
  452. {
  453. Send buy%A_Space%%A_LoopField%
  454. Random, tempRand, 140, 160
  455. Sleep %tempRand%
  456. Send {Enter down}
  457. Sleep 50
  458. Send {Enter up}
  459. Sleep 50
  460. }
  461. }
  462.  
  463. Random, tempRand, 140, 160
  464. Sleep %tempRand%
  465. Send {ESC}
  466.  
  467. return
  468.  
  469. *Numpad2::
  470.  
  471. Send ``
  472.  
  473. Random, tempRand, 140, 160
  474. Sleep %tempRand%
  475.  
  476. if(primary2 != "None"){
  477. Send buy%A_Space%%primary2%
  478. Random, tempRand, 140, 160
  479. Sleep %tempRand%
  480. Send {Enter down}
  481. Sleep 50
  482. Send {Enter up}
  483. Sleep 50
  484. }
  485. if(secondary2 != "None"){
  486. Send buy%A_Space%%secondary2%
  487. Random, tempRand, 140, 160
  488. Sleep %tempRand%
  489. Send {Enter down}
  490. Sleep 50
  491. Send {Enter up}
  492. Sleep 50
  493. }
  494. if(gear2 != "None"){
  495. Loop, parse, gear2, |
  496. {
  497. Send buy%A_Space%%A_LoopField%
  498. Random, tempRand, 140, 160
  499. Sleep %tempRand%
  500. Send {Enter down}
  501. Sleep 50
  502. Send {Enter up}
  503. Sleep 50
  504. }
  505. }
  506. if(grenade2 != "None"){
  507. Loop, parse, grenade2, |
  508. {
  509. Send buy%A_Space%%A_LoopField%
  510. Random, tempRand, 140, 160
  511. Sleep %tempRand%
  512. Send {Enter down}
  513. Sleep 50
  514. Send {Enter up}
  515. Sleep 50
  516. }
  517. }
  518.  
  519. Random, tempRand, 140, 160
  520. Sleep %tempRand%
  521. Send {ESC}
  522.  
  523. return
  524.  
  525. *Numpad3::
  526.  
  527. Send ``
  528.  
  529. Random, tempRand, 140, 160
  530. Sleep %tempRand%
  531.  
  532. if(primary3 != "None"){
  533. Send buy%A_Space%%primary3%
  534. Random, tempRand, 140, 160
  535. Sleep %tempRand%
  536. Send {Enter down}
  537. Sleep 50
  538. Send {Enter up}
  539. Sleep 50
  540. }
  541. if(secondary3 != "None"){
  542. Send buy%A_Space%%secondary3%
  543. Random, tempRand, 140, 160
  544. Sleep %tempRand%
  545. Send {Enter down}
  546. Sleep 50
  547. Send {Enter up}
  548. Sleep 50
  549. }
  550. if(gear3 != "None"){
  551. Loop, parse, gear3, |
  552. {
  553. Send buy%A_Space%%A_LoopField%
  554. Random, tempRand, 140, 160
  555. Sleep %tempRand%
  556. Send {Enter down}
  557. Sleep 50
  558. Send {Enter up}
  559. Sleep 50
  560. }
  561. }
  562. if(grenade3 != "None"){
  563. Loop, parse, grenade3, |
  564. {
  565. Send buy%A_Space%%A_LoopField%
  566. Random, tempRand, 140, 160
  567. Sleep %tempRand%
  568. Send {Enter down}
  569. Sleep 50
  570. Send {Enter up}
  571. Sleep 50
  572. }
  573. }
  574.  
  575. Random, tempRand, 140, 160
  576. Sleep %tempRand%
  577. Send {ESC}
  578.  
  579. return
  580.  
  581. ;handles left click for the burst and tap fire
  582. $*LButton::
  583.  
  584. GuiControlGet, FireStop
  585. GuiControlGet, SlowAuto
  586. if(FireStop == 1){
  587. if(GetKeyState("a", "P") && !GetKeyState("d", "P")){
  588. Hotkey, *a, dummyLabel, On
  589. Send {a down}
  590. Sleep 20
  591. Send {a up}
  592. }else if(GetKeyState("d", "P") && !GetKeyState("a", "P")){
  593. Hotkey, *d, dummyLabel, On
  594. Send {d down}
  595. Sleep 20
  596. Send {d up}
  597. }
  598.  
  599. if(GetKeyState("w", "P") && !GetKeyState("s", "P")){
  600. Hotkey, *w, dummyLabel, On
  601. Send {w down}
  602. Sleep 20
  603. Send {w up}
  604. }else if(GetKeyState("s", "P") && !GetKeyState("w", "P")){
  605. Hotkey, *s, dummyLabel, On
  606. Send {s down}
  607. Sleep 20
  608. Send {s up}
  609. }
  610. }
  611.  
  612. GuiControlGet, NORECOILAMT
  613. if(fireMode == 0){ ;default
  614. Click down
  615. While GetKeyState("LButton", "P"){
  616. if(noRecoil == 1){
  617. if(consistPull == 0){
  618. if(firstShotRestTime > firstShotRestTimeMax){
  619. if(firstShotRecoilTime > firstShotRecoilTimeMax){
  620. mouseXY(0, NORECOILAMT)
  621. Random, tempRand, 200, 220
  622. Sleep %tempRand%
  623. }else{
  624. firstShotRecoilTime += 1
  625. mouseXY(0, NORECOILAMT * 2)
  626. Random, tempRand, 20, 40
  627. Sleep %tempRand%
  628. }
  629. }else{
  630. firstShotRestTime += 1
  631. Random, tempRand, 20, 40
  632. Sleep %tempRand%
  633. }
  634. }else{
  635. if(firstShotRestTime > firstShotRestTimeMax){
  636. mouseXY(0, NORECOILAMT)
  637. Random, tempRand, 20, 40
  638. Sleep %tempRand%
  639. }else{
  640. firstShotRestTime += 1
  641. Random, tempRand, 20, 40
  642. Sleep %tempRand%
  643. }
  644. }
  645. }
  646. }
  647. Click up
  648. }else if(fireMode == 1){ ;tap once
  649. Click down
  650. Random, tempRand, 40, 60
  651. Sleep %tempRand%
  652. Click up
  653. }else if(fireMode == 2){ ;tap twice
  654. Click down
  655. Random, tempRand, 40, 60
  656. Sleep %tempRand%
  657. Click up
  658. Random, tempRand, 50, 70
  659. Sleep %tempRand%
  660. Click down
  661. Random, tempRand, 40, 60
  662. Sleep %tempRand%
  663. Click up
  664. }else if(fireMode == 3){ ;burst
  665. Click down
  666. Random, tempRand, 175, 250
  667. Sleep %tempRand%
  668. Click up
  669. }else if(fireMode == 4){ ;auto for semi-autos
  670. While GetKeyState("LButton", "P"){
  671. Random, tempRand, 15, 25
  672. Click down
  673. Sleep %tempRand%
  674. Click up
  675. if(noRecoil == 1 && SlowAuto != 1){
  676. if(consistPull == 0){
  677. if(firstShotRestTime > firstShotRestTimeMax){
  678. if(firstShotRecoilTime > firstShotRecoilTimeMax){
  679. mouseXY(0, NORECOILAMT)
  680. Random, tempRand, 200, 220
  681. Sleep %tempRand%
  682. }else{
  683. firstShotRecoilTime += 1
  684. mouseXY(0, NORECOILAMT * 2)
  685. Random, tempRand, 20, 40
  686. Sleep %tempRand%
  687. }
  688. }else{
  689. firstShotRestTime += 1
  690. Random, tempRand, 20, 40
  691. Sleep %tempRand%
  692. }
  693. }else{
  694. if(firstShotRestTime > firstShotRestTimeMax){
  695. mouseXY(0, NORECOILAMT)
  696. Random, tempRand, 20, 40
  697. Sleep %tempRand%
  698. }else{
  699. firstShotRestTime += 1
  700. Random, tempRand, 20, 40
  701. Sleep %tempRand%
  702. }
  703. }
  704. }
  705. if(SlowAuto == 1){
  706. Random, tempRand, 400, 500
  707. }
  708. Sleep %tempRand%
  709. WinGetTitle, title, A
  710. if(title != "Counter-Strike: Global Offensive")
  711. {
  712. break
  713. }
  714. If !GetKeyState("LButton", "P")
  715. {
  716. break
  717. }
  718. }
  719. }else if(fireMode == 5){
  720. While GetKeyState("LButton", "P"){
  721. Click down
  722. Random, tempRand, 20, 30
  723. Sleep %tempRand%
  724. Click up
  725. Random, tempRand, 500, 600
  726. Sleep %tempRand%
  727. Click down
  728. Random, tempRand, 20, 30
  729. Sleep %tempRand%
  730. Click up
  731. Random, tempRand, 500, 600
  732. Sleep %tempRand%
  733. Click down right
  734. Random, tempRand, 20, 30
  735. Sleep %tempRand%
  736. Click up right
  737. Random, tempRand, 1000, 1200
  738. Sleep %tempRand%
  739. }
  740. }else if(fireMode == 6){
  741. Click down
  742. canAuto = 0
  743. SetTimer, LButtonHeld, 200
  744. While GetKeyState("LButton", "P"){
  745. if(noRecoil == 1){
  746. if(consistPull == 0){
  747. if(firstShotRestTime > firstShotRestTimeMax){
  748. if(firstShotRecoilTime > firstShotRecoilTimeMax){
  749. mouseXY(0, NORECOILAMT)
  750. Random, tempRand, 200, 220
  751. Sleep %tempRand%
  752. }else{
  753. firstShotRecoilTime += 1
  754. mouseXY(0, NORECOILAMT * 2)
  755. Random, tempRand, 20, 40
  756. Sleep %tempRand%
  757. }
  758. }else{
  759. firstShotRestTime += 1
  760. Random, tempRand, 20, 40
  761. Sleep %tempRand%
  762. }
  763. }else{
  764. if(firstShotRestTime > firstShotRestTimeMax){
  765. mouseXY(0, NORECOILAMT)
  766. Random, tempRand, 20, 40
  767. Sleep %tempRand%
  768. }else{
  769. firstShotRestTime += 1
  770. Random, tempRand, 20, 40
  771. Sleep %tempRand%
  772. }
  773. }
  774. }
  775. }
  776. if(canAuto == 0){
  777. Click up
  778. Random, tempRand, 50, 100
  779. Sleep %tempRand%
  780. Click down
  781. Random, tempRand, 30, 40
  782. Sleep %tempRand%
  783. Click up
  784. SetTimer, LButtonHeld, Off
  785. }else{
  786. Click up
  787. }
  788. }
  789. firstShotRecoilTime = 0
  790. firstShotRestTime = 0
  791. if(FireStop == 1){
  792. Hotkey, *a, dummyLabel, Off
  793. Hotkey, *d, dummyLabel, Off
  794. Hotkey, *w, dummyLabel, Off
  795. Hotkey, *s, dummyLabel, Off
  796. if(GetKeyState("a", "P") && !GetKeyState("d", "P")){
  797. Sleep 20
  798. Send {a down}
  799. Sleep 20
  800. Send {a up}
  801. }else if(GetKeyState("d", "P") && !GetKeyState("a", "P")){
  802. Sleep 20
  803. Send {d down}
  804. Sleep 20
  805. Send {d up}
  806. }
  807.  
  808. if(GetKeyState("w", "P") && !GetKeyState("s", "P")){
  809. Sleep 20
  810. Send {w down}
  811. Sleep 20
  812. Send {w up}
  813. }else if(GetKeyState("s", "P") && !GetKeyState("w", "P")){
  814. Sleep 20
  815. Send {s down}
  816. Sleep 20
  817. Send {s up}
  818. }
  819. }
  820.  
  821. return
  822.  
  823. LButtonHeld:
  824.  
  825. canAuto = 1
  826.  
  827. return
  828.  
  829. mouseXY(x, y) ;moves the mouse (relative movements)
  830. {
  831. DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
  832. }
  833.  
  834. dummyLabel: ;does nothing (to disable a key)
  835. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement