Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#################################################################################################
- //######################################### Sweet_EviL_14 #########################################
- //#################################################################################################
- //# _________ __ ___________ .__.____ ____ _____ #
- //# / _____/_ _ __ ____ _____/ |_ \_ _____/__ _|__| | /_ | / | | #
- //# \_____ \\ \/ \/ // __ \_/ __ \ __\ | __)_\ \/ / | | | |/ | |_ #
- //# / \\ /\ ___/\ ___/| | | \\ /| | |___ | / ^ / #
- //# /_______ / \/\_/ \___ >\___ >__| /_______ / \_/ |__|_______ \ |___\____ | #
- //# \/ \/ \/ \/ \/ |__| #
- //# Big thanks to BATTS legitclouds and all BETA TESTER#
- //#################################################################################################
- //###################################### Sweet_EviL_14 V5.30 ######################################
- //#################################################################################################
- //#################################################################################################
- //####################################### Script parameters ######################################
- //#################################################################################################
- //
- // Define the refresh rate of the combo
- // Big value --> effect not perceived
- // Small value --> cause aim jitter
- //
- define Sampling_Time = 10;
- //
- //#################################################################################################
- //
- // Add speed boost to initial joystick movement
- // Big value --> you loose sticky aim bubble
- //
- define Aim_Boost = 7;
- //
- //#################################################################################################
- //
- // Compensate the acceleration of the movement introduced by the boost by reducing this value
- //
- define Aim_Correction = 12;
- //
- //#################################################################################################
- //
- // the algorithm saves two movements positions. the current position and the previous position.
- // sampling frequency is defined by Sampling_Time.
- // if the difference between the current value and the preceding value doesn't exceeds Aim_Perfection_Limit.
- // the aimbot algorithm will execute
- // i add this parameter to avoid floaty movement when you try to track a target
- //
- define Aim_Perfection_Limit = 30;
- //
- //#################################################################################################
- //
- //operating aim perfection interval
- //
- define POS_Aim_Limit = 70;
- define NEG_Aim_Limit = -70;
- //
- //#################################################################################################
- //
- //operating spiroide aim assist interval
- //
- define POS_Micro_MVT_Limit = 25;
- define NEG_Micro_MVT_Limit = -25;
- //
- //#################################################################################################
- //######################################### Script variable #######################################
- //#################################################################################################
- //
- // Dont't change!
- //
- int X_Last_Value = 0;
- int Y_Last_Value = 0;
- int X_Current_Value = 0;
- int Y_Current_Value = 0;
- int Sampling_Done = FALSE;
- //
- int spiroide_pulse = 0;
- int fine_pulse = 0;
- //
- // Joystick calibration value
- int Joystick_calibration = FALSE;
- int RX_Axis_Joystick_calibrate = 0;
- int RY_Axis_Joystick_calibrate = 0;
- //
- //#################################################################################################
- //############################################# MAIN ##############################################
- //#################################################################################################
- //
- main{
- //update main every 8ms --> only for PS4
- // vm_tctrl(-2);
- if (Joystick_calibration == FALSE)
- {
- RX_Axis_Joystick_calibrate = get_val(PS4_RX);
- RY_Axis_Joystick_calibrate = get_val(PS4_RY);
- Joystick_calibration = TRUE;
- }
- X_Last_Value = X_Current_Value;
- Y_Last_Value = Y_Current_Value;
- X_Current_Value = get_lval(PS4_RX)- RX_Axis_Joystick_calibrate;
- Y_Current_Value = get_lval(PS4_RY)- RY_Axis_Joystick_calibrate;
- //--LT pulled
- if(get_val(PS4_L2))
- {
- //--current & last value less than limit
- if(abs(X_Current_Value) <= POS_Micro_MVT_Limit && abs(Y_Current_Value) <= POS_Micro_MVT_Limit)
- {
- //--both have a value
- //if(X_Last_Value && X_Current_Value)
- //{
- //--difference between the 2 values less than 15
- if(abs(X_Last_Value - X_Current_Value) < 15)
- {
- combo_stop(Aim_Assist_Perfection);
- Sampling_Done = FALSE;
- //--RT pulled more than 95%
- if(get_val(PS4_R2) > 95)
- {
- combo_stop(Fine_Tune_Aim);
- fine_pulse = 0;
- combo_run(spiroide_Aim_Assit);
- }
- else
- {
- combo_stop(spiroide_Aim_Assit);
- spiroide_pulse = 0;
- combo_run(Fine_Tune_Aim);
- }
- }
- //}
- }
- //--current and last greater than limit
- else if(abs(X_Current_Value) <= POS_Aim_Limit && abs(Y_Current_Value) <= POS_Aim_Limit)
- {
- combo_stop(Fine_Tune_Aim);
- combo_stop(spiroide_Aim_Assit);
- spiroide_pulse = 0;
- fine_pulse = 0;
- combo_run(Aim_Assist_Perfection);
- }
- }
- else //--LT not pulled
- {
- combo_stop(Fine_Tune_Aim);
- combo_stop(spiroide_Aim_Assit);
- combo_stop(Aim_Assist_Perfection);
- spiroide_pulse = 0;
- fine_pulse = 0;
- Sampling_Done = FALSE;
- }
- }
- //
- //#################################################################################################
- //############################################ COMBO ##############################################
- //#################################################################################################
- //
- combo Aim_Assist_Perfection
- {
- // Save the first joystick position
- X_Last_Value = X_Current_Value
- Y_Last_Value = Y_Current_Value
- // Sampling frequency
- wait(Sampling_Time);
- // Save the second joystick position
- X_Current_Value = get_lval(PS4_RX)- RX_Axis_Joystick_calibrate;
- Y_Current_Value = get_lval(PS4_RY)- RY_Axis_Joystick_calibrate;
- if (Sampling_Done == TRUE )
- {
- //Applying BOOST
- //Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
- Aim_Perfection(X_Last_Value, X_Current_Value, 1, 0, 1, 0 );
- Aim_Perfection(Y_Last_Value, Y_Current_Value, 1, 0, 0, 1 );
- }
- X_Last_Value = X_Current_Value;
- Y_Last_Value = Y_Current_Value;
- // Sampling frequency
- wait(Sampling_Time);
- // Save the second joystick position
- X_Current_Value = get_lval(PS4_RX)- RX_Axis_Joystick_calibrate;
- Y_Current_Value = get_lval(PS4_RY)- RX_Axis_Joystick_calibrate;
- if (Sampling_Done == TRUE )
- {
- //Applying CORRECTION
- //Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
- Aim_Perfection(X_Last_Value, X_Current_Value, 0, 1, 1, 0 );
- Aim_Perfection(Y_Last_Value, Y_Current_Value, 0, 1, 0, 1 );
- }
- Sampling_Done = TRUE;
- wait(Sampling_Time);
- }
- combo Fine_Tune_Aim {
- set_val(PS4_RX,(15 - fine_pulse));//right
- set_val(PS4_LX,(-15 + fine_pulse));//move left
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RX,(15 - fine_pulse));//right+down
- set_val(PS4_RY,(10 - fine_pulse));
- set_val(PS4_LX,(-5 + fine_pulse));//move left
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RY,(10 - fine_pulse));// down
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RX,(-15 + fine_pulse));//left+down
- set_val(PS4_RY,(10 - fine_pulse));
- set_val(PS4_LX,(5 - fine_pulse))//move right
- wait(Sampling_Time);
- wait(Sampling_Time)
- wait(Sampling_Time)
- set_val(PS4_RX,(-15 + fine_pulse));// left
- set_val(PS4_LX,(15 - fine_pulse))//move right
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RX,(-15 + fine_pulse)); //left + up
- set_val(PS4_RY,(-10 + fine_pulse));
- set_val(PS4_LX,(5 - fine_pulse))//move right
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RY,(-10 + fine_pulse)); //up
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RX,(15 - fine_pulse));//right+up
- set_val(PS4_RY,(-10 + fine_pulse));
- set_val(PS4_LX,(-5 + fine_pulse))//move left
- wait(Sampling_Time);
- wait(Sampling_Time);
- fine_pulse = fine_pulse + 2;
- if ( fine_pulse >10)
- {
- fine_pulse = 0;
- }
- }
- combo spiroide_Aim_Assit {
- set_val(PS4_RX,(4 + spiroide_pulse));//right
- set_val(PS4_LX,(-15+ spiroide_pulse));//move left
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RY,(5 + spiroide_pulse));// down
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- set_val(PS4_RX,(-4 - spiroide_pulse));//left
- set_val(PS4_LX,15 - spiroide_pulse );//move right
- wait(Sampling_Time);
- wait(Sampling_Time)
- set_val(PS4_RY,(5 + spiroide_pulse));// down
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- wait(Sampling_Time);
- spiroide_pulse = spiroide_pulse + 2;
- if ( spiroide_pulse >10)
- {
- spiroide_pulse = 0;
- }
- }
- function Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
- {
- // Thanks Batts for help <img src="images/smilies/animated/smile_20_anim.gif" border="0" alt="" title="Smile" class="inlineimg" />
- if(abs(Last_Value - Current_Value) < Aim_Perfection_Limit)
- {
- //--moving right
- if(Last_Value < Current_Value)
- {
- if (Boost)
- {
- if (X_AXIS)
- set_val(PS4_RX, (Current_Value + Aim_Boost));
- if (Y_AXIS)
- set_val(PS4_RY, (Current_Value + Aim_Boost));
- }
- else if(Correction)
- {
- if (X_AXIS)
- set_val(PS4_RX, (Current_Value - Aim_Correction));
- if (Y_AXIS)
- set_val(PS4_RY, (Current_Value - Aim_Correction));
- }
- }
- else //--moving left
- {
- if (Boost)
- {
- if (X_AXIS)
- set_val(PS4_RX, (Current_Value - Aim_Boost));
- if (Y_AXIS)
- set_val(PS4_RY, (Current_Value - Aim_Boost));
- }
- else if(Correction)
- {
- if (X_AXIS)
- set_val(PS4_RX, (Current_Value + Aim_Correction));
- if (Y_AXIS)
- set_val(PS4_RY, (Current_Value + Aim_Correction));
- }
- }
- }
- }
- //
- //#################################################################################################
- //############################################# END ###############################################
- //#################################################################################################
Advertisement
Advertisement