Advertisement
Guest User

Fortnite Aimbot ChronusMax Script 5.30

a guest
Jan 26th, 2020
31,679
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.53 KB | None | 0 0
  1. //#################################################################################################
  2. //######################################### Sweet_EviL_14 #########################################
  3. //#################################################################################################
  4. //# _________ __ ___________ .__.____ ____ _____ #
  5. //# / _____/_ _ __ ____ _____/ |_ \_ _____/__ _|__| | /_ | / | | #
  6. //# \_____ \\ \/ \/ // __ \_/ __ \ __\ | __)_\ \/ / | | | |/ | |_ #
  7. //# / \\ /\ ___/\ ___/| | | \\ /| | |___ | / ^ / #
  8. //# /_______ / \/\_/ \___ >\___ >__| /_______ / \_/ |__|_______ \ |___\____ | #
  9. //# \/ \/ \/ \/ \/ |__| #
  10. //# Big thanks to BATTS legitclouds and all BETA TESTER#
  11. //#################################################################################################
  12. //###################################### Sweet_EviL_14 V5.30 ######################################
  13. //#################################################################################################
  14. //#################################################################################################
  15. //####################################### Script parameters ######################################
  16. //#################################################################################################
  17. //
  18. // Define the refresh rate of the combo
  19. // Big value --> effect not perceived
  20. // Small value --> cause aim jitter
  21. //
  22. define Sampling_Time = 10;
  23. //
  24. //#################################################################################################
  25. //
  26. // Add speed boost to initial joystick movement
  27. // Big value --> you loose sticky aim bubble
  28. //
  29. define Aim_Boost = 7;
  30. //
  31. //#################################################################################################
  32. //
  33. // Compensate the acceleration of the movement introduced by the boost by reducing this value
  34. //
  35. define Aim_Correction = 12;
  36. //
  37. //#################################################################################################
  38. //
  39. // the algorithm saves two movements positions. the current position and the previous position.
  40. // sampling frequency is defined by Sampling_Time.
  41. // if the difference between the current value and the preceding value doesn't exceeds Aim_Perfection_Limit.
  42. // the aimbot algorithm will execute
  43. // i add this parameter to avoid floaty movement when you try to track a target
  44. //
  45. define Aim_Perfection_Limit = 30;
  46. //
  47. //#################################################################################################
  48. //
  49. //operating aim perfection interval
  50. //
  51. define POS_Aim_Limit = 70;
  52. define NEG_Aim_Limit = -70;
  53. //
  54. //#################################################################################################
  55. //
  56. //operating spiroide aim assist interval
  57. //
  58. define POS_Micro_MVT_Limit = 25;
  59. define NEG_Micro_MVT_Limit = -25;
  60. //
  61. //#################################################################################################
  62. //######################################### Script variable #######################################
  63. //#################################################################################################
  64. //
  65. // Dont't change!
  66. //
  67. int X_Last_Value = 0;
  68. int Y_Last_Value = 0;
  69. int X_Current_Value = 0;
  70. int Y_Current_Value = 0;
  71. int Sampling_Done = FALSE;
  72. //
  73. int spiroide_pulse = 0;
  74. int fine_pulse = 0;
  75. //
  76. // Joystick calibration value
  77. int Joystick_calibration = FALSE;
  78. int RX_Axis_Joystick_calibrate = 0;
  79. int RY_Axis_Joystick_calibrate = 0;
  80. //
  81. //#################################################################################################
  82. //############################################# MAIN ##############################################
  83. //#################################################################################################
  84. //
  85. main{
  86. //update main every 8ms --> only for PS4
  87. // vm_tctrl(-2);
  88.  
  89. if (Joystick_calibration == FALSE)
  90. {
  91. RX_Axis_Joystick_calibrate = get_val(PS4_RX);
  92. RY_Axis_Joystick_calibrate = get_val(PS4_RY);
  93. Joystick_calibration = TRUE;
  94. }
  95.  
  96. X_Last_Value = X_Current_Value;
  97. Y_Last_Value = Y_Current_Value;
  98. X_Current_Value = get_lval(PS4_RX)- RX_Axis_Joystick_calibrate;
  99. Y_Current_Value = get_lval(PS4_RY)- RY_Axis_Joystick_calibrate;
  100.  
  101. //--LT pulled
  102. if(get_val(PS4_L2))
  103. {
  104. //--current & last value less than limit
  105. if(abs(X_Current_Value) <= POS_Micro_MVT_Limit && abs(Y_Current_Value) <= POS_Micro_MVT_Limit)
  106. {
  107. //--both have a value
  108. //if(X_Last_Value && X_Current_Value)
  109. //{
  110. //--difference between the 2 values less than 15
  111. if(abs(X_Last_Value - X_Current_Value) < 15)
  112. {
  113. combo_stop(Aim_Assist_Perfection);
  114. Sampling_Done = FALSE;
  115.  
  116. //--RT pulled more than 95%
  117. if(get_val(PS4_R2) > 95)
  118. {
  119. combo_stop(Fine_Tune_Aim);
  120. fine_pulse = 0;
  121. combo_run(spiroide_Aim_Assit);
  122. }
  123. else
  124. {
  125. combo_stop(spiroide_Aim_Assit);
  126. spiroide_pulse = 0;
  127. combo_run(Fine_Tune_Aim);
  128. }
  129. }
  130. //}
  131. }
  132. //--current and last greater than limit
  133. else if(abs(X_Current_Value) <= POS_Aim_Limit && abs(Y_Current_Value) <= POS_Aim_Limit)
  134. {
  135. combo_stop(Fine_Tune_Aim);
  136. combo_stop(spiroide_Aim_Assit);
  137. spiroide_pulse = 0;
  138. fine_pulse = 0;
  139. combo_run(Aim_Assist_Perfection);
  140. }
  141. }
  142. else //--LT not pulled
  143. {
  144. combo_stop(Fine_Tune_Aim);
  145. combo_stop(spiroide_Aim_Assit);
  146. combo_stop(Aim_Assist_Perfection);
  147. spiroide_pulse = 0;
  148. fine_pulse = 0;
  149. Sampling_Done = FALSE;
  150. }
  151. }
  152. //
  153. //#################################################################################################
  154. //############################################ COMBO ##############################################
  155. //#################################################################################################
  156. //
  157. combo Aim_Assist_Perfection
  158. {
  159. // Save the first joystick position
  160. X_Last_Value = X_Current_Value
  161. Y_Last_Value = Y_Current_Value
  162.  
  163. // Sampling frequency
  164. wait(Sampling_Time);
  165.  
  166. // Save the second joystick position
  167. X_Current_Value = get_lval(PS4_RX)- RX_Axis_Joystick_calibrate;
  168. Y_Current_Value = get_lval(PS4_RY)- RY_Axis_Joystick_calibrate;
  169.  
  170. if (Sampling_Done == TRUE )
  171. {
  172. //Applying BOOST
  173. //Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
  174. Aim_Perfection(X_Last_Value, X_Current_Value, 1, 0, 1, 0 );
  175. Aim_Perfection(Y_Last_Value, Y_Current_Value, 1, 0, 0, 1 );
  176. }
  177.  
  178. X_Last_Value = X_Current_Value;
  179. Y_Last_Value = Y_Current_Value;
  180.  
  181. // Sampling frequency
  182. wait(Sampling_Time);
  183.  
  184. // Save the second joystick position
  185. X_Current_Value = get_lval(PS4_RX)- RX_Axis_Joystick_calibrate;
  186. Y_Current_Value = get_lval(PS4_RY)- RX_Axis_Joystick_calibrate;
  187.  
  188. if (Sampling_Done == TRUE )
  189. {
  190. //Applying CORRECTION
  191. //Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
  192. Aim_Perfection(X_Last_Value, X_Current_Value, 0, 1, 1, 0 );
  193. Aim_Perfection(Y_Last_Value, Y_Current_Value, 0, 1, 0, 1 );
  194. }
  195.  
  196. Sampling_Done = TRUE;
  197. wait(Sampling_Time);
  198. }
  199.  
  200.  
  201.  
  202. combo Fine_Tune_Aim {
  203.  
  204. set_val(PS4_RX,(15 - fine_pulse));//right
  205. set_val(PS4_LX,(-15 + fine_pulse));//move left
  206. wait(Sampling_Time);
  207.  
  208. wait(Sampling_Time);
  209. wait(Sampling_Time);
  210.  
  211. set_val(PS4_RX,(15 - fine_pulse));//right+down
  212. set_val(PS4_RY,(10 - fine_pulse));
  213. set_val(PS4_LX,(-5 + fine_pulse));//move left
  214. wait(Sampling_Time);
  215.  
  216. wait(Sampling_Time);
  217. wait(Sampling_Time);
  218.  
  219.  
  220. set_val(PS4_RY,(10 - fine_pulse));// down
  221. wait(Sampling_Time);
  222.  
  223. wait(Sampling_Time);
  224. wait(Sampling_Time);
  225. wait(Sampling_Time);
  226.  
  227. set_val(PS4_RX,(-15 + fine_pulse));//left+down
  228. set_val(PS4_RY,(10 - fine_pulse));
  229. set_val(PS4_LX,(5 - fine_pulse))//move right
  230. wait(Sampling_Time);
  231.  
  232. wait(Sampling_Time)
  233. wait(Sampling_Time)
  234.  
  235. set_val(PS4_RX,(-15 + fine_pulse));// left
  236. set_val(PS4_LX,(15 - fine_pulse))//move right
  237. wait(Sampling_Time);
  238.  
  239. wait(Sampling_Time);
  240. wait(Sampling_Time);
  241.  
  242. set_val(PS4_RX,(-15 + fine_pulse)); //left + up
  243. set_val(PS4_RY,(-10 + fine_pulse));
  244. set_val(PS4_LX,(5 - fine_pulse))//move right
  245. wait(Sampling_Time);
  246.  
  247. wait(Sampling_Time);
  248. wait(Sampling_Time);
  249.  
  250. set_val(PS4_RY,(-10 + fine_pulse)); //up
  251. wait(Sampling_Time);
  252.  
  253. wait(Sampling_Time);
  254. wait(Sampling_Time);
  255. wait(Sampling_Time);
  256.  
  257. set_val(PS4_RX,(15 - fine_pulse));//right+up
  258. set_val(PS4_RY,(-10 + fine_pulse));
  259. set_val(PS4_LX,(-5 + fine_pulse))//move left
  260. wait(Sampling_Time);
  261.  
  262. wait(Sampling_Time);
  263.  
  264. fine_pulse = fine_pulse + 2;
  265.  
  266.  
  267. if ( fine_pulse >10)
  268. {
  269. fine_pulse = 0;
  270. }
  271. }
  272.  
  273. combo spiroide_Aim_Assit {
  274.  
  275. set_val(PS4_RX,(4 + spiroide_pulse));//right
  276. set_val(PS4_LX,(-15+ spiroide_pulse));//move left
  277. wait(Sampling_Time);
  278.  
  279. wait(Sampling_Time);
  280.  
  281.  
  282. set_val(PS4_RY,(5 + spiroide_pulse));// down
  283. wait(Sampling_Time);
  284.  
  285. wait(Sampling_Time);
  286. wait(Sampling_Time);
  287. wait(Sampling_Time);
  288.  
  289. set_val(PS4_RX,(-4 - spiroide_pulse));//left
  290. set_val(PS4_LX,15 - spiroide_pulse );//move right
  291. wait(Sampling_Time);
  292.  
  293. wait(Sampling_Time)
  294.  
  295. set_val(PS4_RY,(5 + spiroide_pulse));// down
  296. wait(Sampling_Time);
  297.  
  298. wait(Sampling_Time);
  299. wait(Sampling_Time);
  300. wait(Sampling_Time);
  301.  
  302.  
  303. spiroide_pulse = spiroide_pulse + 2;
  304.  
  305.  
  306. if ( spiroide_pulse >10)
  307. {
  308. spiroide_pulse = 0;
  309. }
  310. }
  311.  
  312. function Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
  313. {
  314.  
  315.  
  316. // Thanks Batts for help <img src="images/smilies/animated/smile_20_anim.gif" border="0" alt="" title="Smile" class="inlineimg" />
  317. if(abs(Last_Value - Current_Value) < Aim_Perfection_Limit)
  318. {
  319. //--moving right
  320. if(Last_Value < Current_Value)
  321. {
  322. if (Boost)
  323. {
  324. if (X_AXIS)
  325. set_val(PS4_RX, (Current_Value + Aim_Boost));
  326.  
  327. if (Y_AXIS)
  328. set_val(PS4_RY, (Current_Value + Aim_Boost));
  329. }
  330.  
  331.  
  332. else if(Correction)
  333. {
  334. if (X_AXIS)
  335. set_val(PS4_RX, (Current_Value - Aim_Correction));
  336.  
  337. if (Y_AXIS)
  338. set_val(PS4_RY, (Current_Value - Aim_Correction));
  339. }
  340. }
  341. else //--moving left
  342. {
  343.  
  344. if (Boost)
  345. {
  346. if (X_AXIS)
  347. set_val(PS4_RX, (Current_Value - Aim_Boost));
  348.  
  349. if (Y_AXIS)
  350. set_val(PS4_RY, (Current_Value - Aim_Boost));
  351. }
  352.  
  353.  
  354. else if(Correction)
  355. {
  356. if (X_AXIS)
  357. set_val(PS4_RX, (Current_Value + Aim_Correction));
  358.  
  359. if (Y_AXIS)
  360. set_val(PS4_RY, (Current_Value + Aim_Correction));
  361. }
  362. }
  363. }
  364. }
  365. //
  366. //#################################################################################################
  367. //############################################# END ###############################################
  368. //#################################################################################################
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement