Advertisement
Guest User

Untitled

a guest
Mar 8th, 2021
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.72 KB | None | 0 0
  1. ----------------------------------------------------------------------------------------------------------
  2. ----------------------------------- Dexter Logitech --------------------------------------------
  3. ----------------------------------------------------------------------------------------------------------
  4.  
  5. --========================== Mouse key binds ===============================--
  6.  
  7. local HighRecoil_key = nil
  8. local LowRecoil_key = nil
  9. local set_off_key = 4
  10.  
  11. --========================= Keyboard key binds =============================--
  12.  
  13. local HighRecoil_gkey = F5
  14. local LowRecoil_qkey = F4
  15. local set_off_gkey = F6
  16.  
  17. ---- control_key ----
  18. local control_key = "lctrl"
  19. local ignore_key = "alt"
  20. local hold_breath_key = "lshift"
  21. local move = 40 ----1920*1080
  22. local full_mode_key = "scrolllock"
  23. local mode_switch_key = "numlock"
  24. local lighton_key = "capslock" ---For the Indication whether the macro is ON or OFF.
  25. --- Sensivity of Macro (Don't change) ---
  26. local vertical_sensitivity = 0.7
  27. local target_sensitivity = 50
  28. local scope_sensitivity = 50
  29. local scope4x_sensitivity = 50
  30. -- you can close these by true to false
  31. local hold_breath_mode = true
  32. local full_mode = true
  33. ---- Obfs setting
  34. -- local obfs_mode = false
  35. local obfs_mode = false
  36. local interval_ratio = 0.75
  37. local random_seed = 1
  38. local auto_reloading = false
  39. -- if auto_mode = true ,the guns need to switch automatic shooting mode,except m16 single.
  40. local auto_mode = true
  41. --------------------------------------------------------------------------
  42. ---------------- Recoil Table ------------------------------
  43. ---------------- You can fix the value here ------------------------------
  44. --------------------------------------------------------------------------
  45. --- recoil times
  46. --- if the Recoil compensation is Large or small,You can modify the value of all_recoil_Times or recoil_table{times}
  47. local all_recoil_times = .6
  48. local recoil_table = {}
  49.  
  50. recoil_table["None"] = {
  51. basic={36.5,34.6,36.5,35.7,32.6, 42.8,32.6,45.8,31.8,32, 43.7,36.8,38.8,32.6,42.2},
  52. basictimes = 0.9,
  53. full={36.5,34.6,36.5,35.7,32.6, 40,30.6,34,31,32, 43.7,36.8,38.8,32.6,42.2},
  54. fulltimes = 0.8*.75,
  55. quadruple={56.5,44.6,46.5,45.7,42.6, 52.8,42.6,55.8,41.8,52, 43.7,46.8,48.8,42.6,52.2},
  56. quadrupletimes = 4*.6,
  57. fullof4x={56.5,44.6,46.5,45.7,42.6, 52.8,42.6,55.8,41.8,52, 43.7,46.8,48.8,42.6,52.2},
  58. fullof4xtimes = 4*.5,
  59. speed = 90,
  60. maxbullets = 35,
  61. holdbreathtimes = 1.25,
  62. fullholdbreathtimes = 1.25,
  63. }
  64. recoil_table["None"] = {
  65. basic={16.0,16.0,16.0,17.6,18.6, 20.4,22.4,22.9,25.8,27.6, 32.6,36.9,38.0,38.8,39.8,40.5},
  66. basictimes = 0.9,
  67. full={20.7,16.5,16.5,17.9,18.6, 20.4,22.4,22.9,25.8,27.6, 32.6,36.9,38.0,38.8,39.8,39.9},
  68. fulltimes = 0.89*0.76*0.76,
  69. quadruple={20.7,16.5,16.5,17.9,18.6, 20.4,22.4,22.9,25.8,27.6, 32.6,36.9,38.0,38.8,39.8,39.9},
  70. quadrupletimes = 0.78,
  71. fullof4x={20.7,16.5,16.5,17.9,18.6, 20.4,22.4,22.9,25.8,27.6, 32.6,36.9,38.0,38.8,39.8,39.9},
  72. fullof4xtimes = 0.89*0.76*0.76,
  73. speed = 48,
  74. maxbullets = 35,
  75. holdbreathtimes = 1.25,
  76. fullholdbreathtimes = 1.25,
  77. }
  78. recoil_table["None"] = {
  79. basic={26.5,17,26,23, 32,28,26.5,37,19, 44,25,35.5,42,35, 46,39.5,44,52,43.5, 33,47,40,43.5,45},
  80. basictimes = 1.15,
  81. full={25.5,17.1,26.0,21, 24.3,29.0,22.0,37.5,21.5, 31.5,32.5,30.0,44,31, 42,36.5,36.5,55,30.5, 41,57,30,48.5,40},
  82. fulltimes = 1*0.99,
  83. quadruple={22.0,15.3,22.0,25, 23.0,28.0,30.0,26.5,36.5, 27.5,32.5,33.0,40,35, 41,39.8,39.9,49,43.5, 38,50,34,41.5,49},
  84. quadrupletimes = 1.55*0.87,
  85. fullof4x={21.2,13.0,22.8,21.6, 25.4,28.4,26.0,30.8,28.7, 29.2,32.8,32.0,40.5,30.3, 40,34.8,37.1,52.8,38.7, 41.5,44.6,33,43.5,44.3},
  86. fullof4xtimes = 2.33*0.87,
  87. speed = 55,
  88. maxbullets = 25,
  89. holdbreathtimes = 1.25,
  90. fullholdbreathtimes = 1.25,
  91. }
  92. recoil_table["None"] = {
  93. basic={33.5,19.2,28.5,33.7,37.3, 37.0,38.7,40.2,41.8,44.0, 43.8,43.8,46.5,44.5,47.5},
  94. basictimes = 1.05,
  95. full={33.5,19.2,28.5,33.7,37.3, 37.0,38.7,40.2,41.8,44.0, 43.8,43.8,46.5,44.5,44.943},
  96. fulltimes = 0.7*0.89,
  97. quadruple={33.1,19.2,28.5,33.7, 37.3,37.0,38.7,40.2,41.8,44.0, 43.8,43.8,46.5,44.5,44.943},
  98. quadrupletimes = 1.75*1*0.89,
  99. fullof4x={32.3,18.8,28.5,34.0,36.0,36.0,38.7,39.2,39.8,44.0,41.8,42.5,44.5,42.5,44.943,43.1,44.00,43.00,46,42,43,43,41,45,43,45,45,42,45,42,45,45,44,41},
  100. fullof4xtimes = 2.63*1*0.85,
  101. speed = 90,
  102. maxbullets = 40,
  103. holdbreathtimes = 1.25,
  104. fullholdbreathtimes = 1.25,
  105. }
  106. recoil_table["HighRecoil"] = {
  107. basic={113,113,113,113, 113,113,113,113, 113,113,113,113},
  108. basictimes = 1.09,
  109. full={48,32,36,36.9,36.6, 35,38.7,33.4,36,39, 32,37,42,37,46 ,47},
  110. fulltimes = 1.09*0.98,
  111. quadruple={61.3,51.2,52.5,54.0,56.5, 54.0,53.5,52.0,56.5,57.9, 56.5,58.6,58.3,62.3,63.6 ,70},
  112. quadrupletimes = 4*.66,
  113. fullof4x={61.3,51.2,52.5,54.0,56.5, 54.0,53.5,52.0,56.5,57.9, 56.5,58.6,58.3,62.3,63.6 ,70},
  114. fullof4xtimes = 4*.48,
  115. speed = 96,
  116. maxbullets = 40,
  117. holdbreathtimes = 1.25,
  118. fullholdbreathtimes = 1.25,
  119. }
  120. recoil_table["LowRecoil"] = {
  121. basic={50.0,48.0,44.0,44.0, 49.0,46.0,51.2,51.2,48.5},
  122. basictimes = 0.955,
  123. full={51.7,32.3,40.3,48.0, 51.0,52.5,51.7,52.2,53.5, 53.5,54.3,54.8,52.6,53.6, 52.5,54.3,53.0,53.0,54.0, 54.0,54.5,52.0,54.0,53.0, 54.0,56.0,54.0,54.0,53.0},
  124. fulltimes = 1*0.862,
  125. quadruple={45.0,29.3,36.3,42.3, 45.0,47.0,46.2,48.3,48.5, 48.5,50.0,50.5,50.4,55.1, 51.4,50.4,51.5,51.5,52.3, 53.3,54.0,52.0,52.0,52.0, 52.0,53.0,52.0,52.0,52.0},
  126. quadrupletimes = 1.2*0.74,
  127. fullof4x={48.1,29.3,36.3,42.3, 46.0,45.0,49.2,50.3,49.5, 48.5,51.0,50.5,50.4,55.1, 51.4,51.4,51.5,51.5,52.3, 53.3,54.0,52.0,52.0,52.0, 52.0,53.0,52.0,52.0,52.0},
  128. fullof4xtimes = 2.8*0.73,
  129. speed = 90,
  130. maxbullets = 40,
  131. holdbreathtimes = 1.25,
  132. fullholdbreathtimes = 1.25,
  133. }
  134. recoil_table["None"] = {
  135. basic={50.2,25.0,32.0,40.0, 41.5,50.9,51.0,50.2,50.0, 58.6,50.9,50.9,52.9,50.9, 60.8,53.5,55.5,59.3,59.3, 61.3,60.3,60.3,60.3,60.3,60.3,60.3,60.3,60.3,60.3},
  136. basictimes = 1.16,
  137. full={53.0,24.5,31.6,40.0,45.1, 48.9,51.0,54.2,59.8,60.4, 58.9,59.9,57.9,55.5,59.8, 58.5,60.5,60.5,60.5,60.5,60.5,60.5,60.5,60.5,60.5,60.5,60.5,60.5},
  138. fulltimes = 1*0.776,
  139. quadruple={53.0,22.3,33.5,40.0, 44.0,48.1,49.5,49.0,55.0, 58.4,55.1,51.3,57.0,57.1, 58.4,60.5,64.0,62.0,60.0, 61.5,61.5,63.5,63.5,62.5, 60.5,60.5,61.5,61.5,61.5},
  140. quadrupletimes = 1.03*0.812,
  141. fullof4x={58.0,25.3,31.4,41.3, 45.1, 50.9,51.0,52.4,60.8,60.1, 54.4,57.4,56.6,56.9,51.8, 61.0,61.0,61.0,59.5,61.5, 61.5,60.0,61.5,61.5,61.5, 60.0,60.0,61.5,61.5,61.5},
  142. fullof4xtimes = 2.45*1*0.751,
  143. speed = 100,
  144. maxbullets = 40,
  145. holdbreathtimes = 1.25,
  146. fullholdbreathtimes = 1.25,
  147. }
  148. recoil_table["None"] = {
  149. basic={51.1,24.0,32.0,41.0, 42.5,46.9,51.0,52.2,51.8, 47.4,49.9,56.9,58.9,58.9, 62.8,57.5,57.5,60.3,60.3, 62.3,62.3,62.3,60.3,60.3,60.3,60.3,60.3,60.3,60.3},
  150. basictimes = 1.20,
  151. full={53.0,22.3,34.1,43.0, 46.0,48.1,48.5,47.0,53.0, 56.4,53.1,51.3,54.0,55.1, 57.4,57.5,57.0,54.0,54.0, 56.5,57.5,57.5,57.5,57.5, 57.5,57.5,57.5,57.5,57.5},
  152. fulltimes = 1*0.88,
  153. quadruple={53.0,22.3,33.7,41.4, 45.0,48.7,49.5,49.0,55.0, 58.4,55.1,51.3,57.0,57.1, 58.4,60.5,61.0,60.0,60.0, 60.5,60.5,61.5,61.5,61.5, 60.5,60.5,61.5,61.5,61.5},
  154. quadrupletimes = 1.0*0.9,
  155. fullof4x={58.2,24.3,31.4,41.3, 45.1, 50.9,51.0,52.4,60.8,60.1, 54.4,57.4,56.6,56.9,51.8, 61.0,61.0,61.0,59.5,61.5, 61.5,60.0,61.5,61.5,61.5, 60.0,60.0,61.5,61.5,61.5},
  156. fullof4xtimes = 2.45*1*0.837,
  157. speed = 100,
  158. maxbullets = 40,
  159. holdbreathtimes = 1.25,
  160. fullholdbreathtimes = 1.25,
  161. }
  162. recoil_table["None"] = {
  163. basic={68.9,35.5,39.1,48.5, 55.9,62.9,65.9,69.5,69.5, 69.0,66.0,68.0,75.0,75.0, 69.0,73.0,69.0,69.0,73.0, 69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0},
  164. basictimes = 0.585,
  165. full={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  166. fulltimes = 1*0.77,
  167. quadruple={49.9,38.9,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  168. quadrupletimes = 2.65*0.77,
  169. fullof4x={51.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  170. fullof4xtimes = 3.8*1*0.75,
  171. speed = 75,
  172. maxbullets = 40,
  173. clickspeed = 40,
  174. holdbreathtimes = 1.25,
  175. fullholdbreathtimes = 1.25,
  176. }
  177. recoil_table["None"] = {
  178. basic={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,69.0, 70.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0},
  179. basictimes = 0.8,
  180. full={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  181. fulltimes = 1*0.77,
  182. quadruple={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  183. quadrupletimes = 2.45*0.77,
  184. fullof4x={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  185. fullof4xtimes = 3.45*1*0.75,
  186. speed = 90,
  187. maxbullets = 30,
  188. clickspeed = 30,
  189. holdbreathtimes = 1.25,
  190. fullholdbreathtimes = 1.25,
  191. }
  192. recoil_table["None"] = {
  193. basic={46.0,21.0,30.1,33.0, 39.1,39.0,43.0,40.0,44.6, 41.1,43.0,45.3,54.0,58.0, 59.1,58,59,57,58.2, 58,58.3,62,62,65.5, 64,60,64,63,63},
  194. basictimes = 1.28,
  195. full={47.0,19.0,28.1,32.0, 37.1,39.0,42.0,37.0,40.6, 38.1,43.0,43.3,44.0,47.0, 50.1,49,46,49,49.2, 50,50.3,50,50,50.5, 49,49,49,49,49},
  196. fulltimes = 1,
  197. quadruple={46.0,21.0,29.1,34.0, 39.1,39.0,40.0,40.0,40.6, 47.1,47.0,45.3,47.0,50.0, 50.1,51,48,51,50.2, 51,51.3,51,52,52.5, 51,51,51,51,51},
  198. quadrupletimes = 2.45,
  199. fullof4x={45.1,20.1,29.1,34.0, 39.1,39.0,40.0,40.0,40.6, 47.1,47.0,45.3,47.0,50.0, 50.1,51,48,51,50.2, 51,51.3,51,52,52.5, 51,51,51,51,51},
  200. fullof4xtimes = 3.44*1,
  201. speed = 100,
  202. maxbullets = 40,
  203. holdbreathtimes = 1.25,
  204. fullholdbreathtimes = 1.25,
  205. }
  206. recoil_table["None"] = {
  207. basic={50,42,4,44.0,50.6, 54.6,56,58,52,51.9, 54.6,53.8,54,55.3,56 ,60},
  208. basictimes = 1.4,
  209. full={50,42,45,46.0,47.6, 52.6,54,52,57,5.9, 56.6,57.8,60,63.3,64 ,65},
  210. fulltimes = 1.4*0.56,
  211. quadruple={75,50,55,56.0,62.6, 64.6,69,75,75,75.9, 79.6,84.8,85,86.3,85 ,86},
  212. quadrupletimes = 5*.48,
  213. fullof4x={60,50,55,55.0,70.6, 65.6,66,70,60,65.9, 70.6,74.8,75,73.3,76 ,85},
  214. fullof4xtimes = 5*.36,
  215. speed = 65,
  216. maxbullets = 40,
  217. holdbreathtimes = 1.25,
  218. fullholdbreathtimes = 1.25,
  219. }
  220. recoil_table["None"] = {
  221. basic={50,32,36.4,41, 40,40,42,40,41, 45,52,49,51,54.5, 58,56.5,57,58,58, 62,58,57,55,60, 61,61,64,64,67, 67,64,64,64,64,64,64,67,67,64},
  222. basictimes = 1.025,
  223. full={52,33,40,41,41,38,41,40,43, 46,52,51,52,55.4, 55.6,56.3,56,59.3,60.6, 62,58,57,55,60, 61,61,61,62,64, 64,62,62,62,62,62,62,63,63,62},
  224. fulltimes = 1*.72,
  225. quadruple={49.3,31.5,38,43, 41,36,43,43,40,48, 52,51,52,55.4,55.6, 56.3,56,59.3,60.6,62, 58,57,55,60, 61,61,61,62,64, 64,62,62,62,62,62,62,63,63,62},
  226. quadrupletimes = 1*2.51 ,
  227. fullof4x={49.4,31.4,38,43,41,38,41,40,43, 46,52,51,52,55.4, 55.6,56.3,56,59.3,60.6, 62,58,57,55,60, 61,61,61,62,64, 64,62,62,62,62,62,62,63,63,62},
  228. fullof4xtimes = 1*3.474,
  229. speed = 80,
  230. maxbullets = 40,
  231. holdbreathtimes = 1.25,
  232. fullholdbreathtimes = 1.25,
  233. }
  234. recoil_table["None"] = {
  235. basic={53,28.4,41,42.4, 40.4,43,40.5,45.0,44.5, 46.5,50.5,50,48,49, 53,53,51,52,52, 48,48,51,52,52, 51,51,51,52,51},
  236. basictimes = 0.99,
  237. full={53.2,26.1,40.3,40.2, 40,40,39,43,43, 47,47.5,52.3,49.4,50, 53,52,53,55,54, 48,51,51,53.4,52.4, 52.4,52.4,52.4,52.4,52.4},
  238. fulltimes = 1*0.75,
  239. quadruple={53.0,26.3,39.0,39.2, 39.2,40,39,43.8,43, 47.4,48.4,52.3,49.4,50.6, 52.3,51.3,52.2,54,54, 48,51,51,53.4,53.4, 53.4,53.4,53.4,53.4,53.4},
  240. quadrupletimes = 2.455*0.74,
  241. fullof4x={52.4,26.2,38.5,38.6, 38.9,40.3,39.7,44.5,43, 47.5,48.5,49.5,47.5,47.9, 49.8,48.5,49.4,50.6,50.6, 47.5,50.4,50.4,50.6,49.7, 49.7,50.7,50.7,51.7,51.7},
  242. fullof4xtimes = 3.45*0.74,
  243. speed = 90,
  244. maxbullets = 40,
  245. holdbreathtimes = 1.25,
  246. fullholdbreathtimes = 1.25,
  247. }
  248. recoil_table["None"] = {
  249. basic={48,34.5,43.3,74, 84,93,103,105.3,106, 115,93,118,109,107, 115,111,113,115,107, 103,117},
  250. basictimes = 1.383,
  251. full={43,23,40,71, 87,98,106,105,106, 117,108,116,107,111, 117,116,117,119,107},
  252. fulltimes = 1*1.05,
  253. quadruple={43,23,40,71, 87,98,106,105,106, 117,108,116,107,111, 117,116,117,119,107},
  254. quadrupletimes = 1*1.05,
  255. fullof4x={43,23,40,71, 87,98,106,105,106, 117,108,116,107,111, 117,116,117,119,107},
  256. fullof4xtimes = 1*1.05,
  257. speed = 90,
  258. maxbullets = 20,
  259. holdbreathtimes = 1.0,
  260. fullholdbreathtimes = 1.0,
  261. }
  262. recoil_table["None"] = {
  263. basic={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,69.0, 70.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0},
  264. basictimes = 1.05,
  265. full={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  266. fulltimes = 1*0.77,
  267. quadruple={49.9,38.9,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  268. quadrupletimes = 2.65*0.77,
  269. fullof4x={51.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  270. fullof4xtimes = 3.8*1*0.75,
  271. speed = 90,
  272. maxbullets = 20,
  273. clickspeed = 45,
  274. holdbreathtimes = 1.25,
  275. fullholdbreathtimes = 1.25,
  276. }
  277. recoil_table["None"] = {
  278. basic={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,69.0, 70.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0},
  279. basictimes = 1.05,
  280. full={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  281. fulltimes = 1*0.77,
  282. quadruple={49.9,38.9,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  283. quadrupletimes = 2.65*0.77,
  284. fullof4x={51.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  285. fullof4xtimes = 3.8*1*0.75,
  286. speed = 100,
  287. maxbullets = 20,
  288. clickspeed = 50,
  289. holdbreathtimes = 1.25,
  290. fullholdbreathtimes = 1.25,
  291. }
  292. recoil_table["None"] = {
  293. basic={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,69.0, 70.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0},
  294. basictimes = 1.05,
  295. full={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  296. fulltimes = 1*0.77,
  297. quadruple={49.9,38.9,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  298. quadrupletimes = 2.65*0.77,
  299. fullof4x={51.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  300. fullof4xtimes = 3.8*1*0.75,
  301. speed = 135,
  302. maxbullets = 30,
  303. clickspeed = 70,
  304. holdbreathtimes = 1.25,
  305. fullholdbreathtimes = 1.25,
  306. }
  307. recoil_table["None"] = {
  308. basic={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,69.0, 70.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0,69.0},
  309. basictimes = 1.05,
  310. full={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  311. fulltimes = 1*0.77,
  312. quadruple={49.9,38.9,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  313. quadrupletimes = 2.65*0.77,
  314. fullof4x={51.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0,70.0},
  315. fullof4xtimes = 3.8*1*0.75,
  316. speed =135,
  317. maxbullets = 20,
  318. clickspeed = 70,
  319. holdbreathtimes = 1.25,
  320. fullholdbreathtimes = 1.25,
  321. }
  322. --------------------------------------------------------------------------
  323. ---------------- Function ------------------------------
  324. ---------------------------------------------------------------------------
  325. function convert_sens(unconvertedSens)
  326. return 0.002 * math.pow(10, unconvertedSens / 50)
  327. end
  328. function calc_sens_scale(sensitivity)
  329. return convert_sens(sensitivity)/convert_sens(50)
  330. end
  331. local target_scale = calc_sens_scale(target_sensitivity)
  332. local scope_scale = calc_sens_scale(scope_sensitivity)
  333. local scope4x_scale = calc_sens_scale(scope4x_sensitivity)
  334. function recoil_mode()
  335. if not IsKeyLockOn(mode_switch_key) then
  336. if IsKeyLockOn(full_mode_key) and full_mode then
  337. return "full";
  338. else
  339. return "basic";
  340. end
  341. end
  342.  
  343. if IsKeyLockOn(mode_switch_key) then
  344. if IsKeyLockOn(full_mode_key) and full_mode then
  345. return "fullof4x"
  346. else
  347. return "quadruple"
  348. end
  349. end
  350. end
  351. function single_value(value)
  352. return 10 * math.floor(( value / 10 ) + 0.9)
  353. end
  354. function recoil_value(_weapon,_duration)
  355. local _mode = recoil_mode()
  356. local step = (math.floor(_duration/recoil_table[_weapon]["speed"])) + 1
  357. if step > #recoil_table[_weapon][_mode] then
  358. step = #recoil_table[_weapon][_mode]
  359. end
  360. local weapon_recoil = recoil_table[_weapon][_mode][step]
  361. local weapon_speed = recoil_table[_weapon]["speed"]
  362. local weapon_clickspeed = recoil_table[_weapon]["clickspeed"]
  363. local weapon_maxbullets = recoil_table[_weapon]["maxbullets"]
  364. local weapon_basictimes = recoil_table[_weapon]["basictimes"]
  365. local weapon_fulltimes = recoil_table[_weapon]["fulltimes"]
  366. local weapon_quadrupletimes = recoil_table[_weapon]["quadrupletimes"]
  367. local weapon_fullof4xtimes = recoil_table[_weapon]["fullof4xtimes"]
  368. local weapon_holdbreathtimes = recoil_table[_weapon]["holdbreathtimes"]
  369. local weapon_fullofholdbreathtimes = recoil_table[_weapon]["fullholdbreathtimes"]
  370. local weapon_intervals = weapon_speed
  371. local weapon_clicktime = weapon_clickspeed
  372. local weapon_bullets = weapon_maxbullets
  373. if obfs_mode then
  374. local coefficient = interval_ratio * ( 1 + random_seed * math.random())
  375. weapon_intervals = math.floor(coefficient * weapon_speed)
  376. end
  377. -- OutputLogMessage("weapon_intervals = %s\n", weapon_intervals)
  378. recoil_recovery = weapon_recoil
  379. recoil_times = all_recoil_times * 0.7 / vertical_sensitivity
  380. if recoil_mode() == "basic" and not IsModifierPressed(hold_breath_key) then
  381. recoil_recovery = recoil_recovery * recoil_times * weapon_basictimes
  382. end
  383. if recoil_mode() == "basic" and hold_breath_mode and IsModifierPressed(hold_breath_key) then
  384. recoil_recovery = recoil_recovery * weapon_holdbreathtimes * recoil_times * weapon_basictimes
  385. end
  386. if recoil_mode() == "full" and not IsModifierPressed(hold_breath_key) then
  387. recoil_recovery = recoil_recovery * recoil_times * weapon_fulltimes
  388. end
  389. if recoil_mode() == "full" and hold_breath_mode and IsModifierPressed(hold_breath_key) then
  390. recoil_recovery = recoil_recovery * weapon_fullofholdbreathtimes * recoil_times * weapon_fulltimes
  391. end
  392. if recoil_mode() == "quadruple" then
  393. recoil_recovery = recoil_recovery * recoil_times * weapon_quadrupletimes
  394. end
  395.  
  396. if recoil_mode() == "fullof4x" then
  397. recoil_recovery = recoil_recovery * recoil_times * weapon_fullof4xtimes
  398. end
  399. -- issues/3
  400. if IsMouseButtonPressed(2) then
  401. recoil_recovery = recoil_recovery / target_scale
  402. elseif recoil_mode() == "basic" then
  403. recoil_recovery = recoil_recovery / scope_scale
  404. elseif recoil_mode() == "full" then
  405. recoil_recovery = recoil_recovery / scope_scale
  406. elseif recoil_mode() == "quadruple" then
  407. recoil_recovery = recoil_recovery / scope4x_scale
  408. elseif recoil_mode() == "fullof4x" then
  409. recoil_recovery = recoil_recovery / scope4x_scale
  410. end
  411. return weapon_intervals,recoil_recovery,weapon_clicktime,weapon_bullets
  412. end
  413. --------------------------------------------------------------------------
  414. ---------------- OnEvent ------------------------------
  415. --------------------------------------------------------------------------
  416. function OnEvent(event, arg)
  417. OutputLogMessage("event = %s, arg = %d\n", event, arg)
  418. if (event == "PROFILE_ACTIVATED") then
  419. EnablePrimaryMouseButtonEvents(true)
  420. Fire = false
  421. current_weapon = "none"
  422. shoot_duration = 0.0
  423. if IsKeyLockOn(lighton_key) then
  424. PressAndReleaseKey(lighton_key)
  425. elseif IsKeyLockOn(full_mode_key) then
  426. PressAndReleaseKey(full_mode_key)
  427. elseif IsKeyLockOn(mode_switch_key) then
  428. PressAndReleaseKey(mode_switch_key)
  429. end
  430. elseif event == "PROFILE_DEACTIVATED" then
  431. ReleaseMouseButton(1)
  432. end
  433. if (event == "MOUSE_BUTTON_PRESSED" and arg == set_off_key)
  434. or (event == "G_PRESSED" and arg == set_off_gkey) then
  435. current_weapon = "none"
  436. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == HighRecoil_key)
  437. or (event == "G_PRESSED" and arg == HighRecoil_gkey) then
  438. current_weapon = "HighRecoil"
  439. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  440. or (event == "G_PRESSED" and arg == NONE_gkey) then
  441. current_weapon = "None"
  442. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  443. or (event == "G_PRESSED" and arg == NONE_gkey) then
  444. current_weapon = "None"
  445. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == LowRecoil_key)
  446. or (event == "G_PRESSED" and arg == LowRecoil_qkey) then
  447. current_weapon = "LowRecoil"
  448. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  449. or (event == "G_PRESSED" and arg == NONE_gkey) then
  450. current_weapon = "None"
  451. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  452. or (event == "G_PRESSED" and arg == NONE_gkey) then
  453. current_weapon = "None"
  454. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  455. or (event == "G_PRESSED" and arg == NONE_gkey) then
  456. current_weapon = "None"
  457. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  458. or (event == "G_PRESSED" and arg == NONE_gkey) then
  459. current_weapon = "None"
  460. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  461. or (event == "G_PRESSED" and arg == NONE_gkey) then
  462. current_weapon = "None"
  463. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  464. or (event == "G_PRESSED" and arg == NONE_gkey) then
  465. current_weapon = "None"
  466. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  467. or (event == "G_PRESSED" and arg == NONE_gkey) then
  468. current_weapon = "None"
  469. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  470. or (event == "G_PRESSED" and arg == NONE_gkey) then
  471. current_weapon = "None"
  472. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  473. or (event == "G_PRESSED" and arg == NONE_gkey) then
  474. current_weapon = "None"
  475. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  476. or (event == "G_PRESSED" and arg == NONE_gkey) then
  477. current_weapon = "None"
  478. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  479. or (event == "G_PRESSED" and arg == NONE_gkey) then
  480. current_weapon = "None"
  481. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  482. or (event == "G_PRESSED" and arg == NONE_gkey) then
  483. current_weapon = "None"
  484. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  485. or (event == "G_PRESSED" and arg == NONE_gkey) then
  486. current_weapon = "None"
  487. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  488. or (event == "G_PRESSED" and arg == NONE_gkey) then
  489. current_weapon = "None"
  490. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == NONE_key)
  491. or (event == "G_PRESSED" and arg == NONE_gkey) then
  492. current_weapon = "None"
  493.  
  494. elseif (event == "M_RELEASED" and arg == 3 and Fire) then
  495. local intervals,recovery,clicktime,bullets = recoil_value(current_weapon,shoot_duration)
  496. if shoot_duration % (single_value(intervals) / 2) == 0 then
  497. PressAndReleaseMouseButton(1)
  498. end
  499. MoveMouseRelative(0, recovery / 10)
  500. Sleep(single_value(intervals)/10)
  501. shoot_duration = shoot_duration + (single_value(intervals)/10)
  502. if auto_reloading then
  503. if shoot_duration > (single_value(intervals) * bullets) + 100 then
  504. ReleaseMouseButton(1)
  505. PressAndReleaseKey("r")
  506. Sleep(200)
  507. Fire = false
  508. end
  509. end
  510. if not Fire then
  511. ReleaseMouseButton(1)
  512. elseif Fire then
  513. SetMKeyState(3)
  514. end
  515. elseif (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
  516. -- button 1 : Shoot
  517. if ((current_weapon == "none") or IsModifierPressed(ignore_key)) then
  518. PressMouseButton(1)
  519. repeat
  520. Sleep(30)
  521. until not IsMouseButtonPressed(1)
  522. elseif(current_weapon == "None") then
  523. Fire = true
  524. SetMKeyState(3)
  525. elseif(current_weapon == "None") then
  526. Fire = true
  527. SetMKeyState(3)
  528. elseif(current_weapon == "None") then
  529. Fire = true
  530. SetMKeyState(3)
  531. elseif(current_weapon == "None") then
  532. Fire = true
  533. SetMKeyState(3)
  534. elseif(current_weapon == "None") then
  535. Fire = true
  536. SetMKeyState(3)
  537. elseif(current_weapon == "None") then
  538. Fire = true
  539. SetMKeyState(3)
  540. else
  541. if auto_mode then
  542. repeat
  543. local intervals,recovery,clicktime,bullets = recoil_value(current_weapon,shoot_duration)
  544. MoveMouseRelative(0, recovery /10 )
  545. Sleep(intervals/10)
  546. shoot_duration = shoot_duration + (intervals/10)
  547. if auto_reloading then
  548. if shoot_duration > (intervals * bullets) + 100 then
  549. ReleaseMouseButton(1)
  550. PressAndReleaseKey("r")
  551. Sleep(200)
  552. end
  553. end
  554. until not IsMouseButtonPressed(1)
  555. else
  556. Fire = true
  557. SetMKeyState(3)
  558. end
  559. end
  560. elseif (event == "MOUSE_BUTTON_RELEASED" and arg == 1) then
  561. Fire = false
  562. shoot_duration = 0.0
  563. end
  564. while (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and IsModifierPressed(control_key) and IsModifierPressed(ignore_key) and fastloot) do
  565. ReleaseMouseButton(1)
  566. PressMouseButton(1)
  567. for i = 0, 12 do
  568. MoveMouseRelative(move, 0)
  569. Sleep(3)
  570. end
  571. ReleaseMouseButton(1)
  572. for i = 0, 12 do
  573. MoveMouseRelative(-move, 0)
  574. Sleep(3)
  575. end
  576. Sleep(10)
  577. end
  578. if (current_weapon == "none") then
  579. if IsKeyLockOn(lighton_key) then
  580. PressAndReleaseKey(lighton_key)
  581. end
  582. else
  583. if not IsKeyLockOn(lighton_key) then
  584. PressAndReleaseKey(lighton_key)
  585. end
  586. end
  587. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement