Script Conversion Request Megathread

GPC1 script programming for Titan One. Code examples, questions, requests.

Re: Script Conversion Request Megathread

Postby s9169586 » Sun Oct 18, 2020 9:55 pm

can someone convert this to t1
Attachments
A Perfect shot release.gpc
(5.51 KiB) Downloaded 3 times
User avatar
s9169586
Sergeant First Class
Sergeant First Class
 
Posts: 18
Joined: Sat Oct 10, 2020 12:34 am

Re: Script Conversion Request Megathread

Postby Mad » Sun Oct 18, 2020 11:04 pm

s9169586 wrote:can someone convert this to t1

Seems like someone pasted incomplete code into one of the other 2K scripts, I have commented it out so it compiles.
T1 Perfect shot release.gpc
(5.52 KiB) Downloaded 28 times
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Brigadier General
Brigadier General
 
Posts: 2527
Joined: Wed May 22, 2019 5:39 am

Re: Script Conversion Request Megathread

Postby s9169586 » Mon Oct 19, 2020 12:03 am

can someone convert this to t1
Attachments
Perfect_Stick_ShootingDribbles_v2.4.gpc
(15.44 KiB) Downloaded 6 times
User avatar
s9169586
Sergeant First Class
Sergeant First Class
 
Posts: 18
Joined: Sat Oct 10, 2020 12:34 am

Re: Script Conversion Request Megathread

Postby Mad » Mon Oct 19, 2020 2:41 am

s9169586 wrote:can someone convert this to t1

T1 Perfect_Stick_ShootingDribbles_v2.4.gpc
(14.56 KiB) Downloaded 13 times
ConsoleTuner Support Team || Discord || YouTube || Twitter
Mad
Brigadier General
Brigadier General
 
Posts: 2527
Joined: Wed May 22, 2019 5:39 am

Re: Script Conversion Request Megathread

Postby Alfagamer » Tue Oct 20, 2020 3:42 pm

Code: Select all
// GPC Online Library
// artificial_aiming_multi.gpc
 
//Script was modified by * Script Manipulator * ver.15.1 /on date: time:
//##################################################################################################
//##############  __________      ___.  __________               __      _____    ##################
//##############  \______   \____ \_ |__ \______  \_ ___________|  | __ /  _  \   ##################
//##############   |    |  _//  _ \| __ \|    |  _/\__  \\_  __ \  |/ //  /_\  \  ##################
//##############   |    |   (  <_> ) \_\ \    |   \ / __ \|  | \/    </    |    \ ##################
//##############   |______  /\____/|___  /______  /(____  /__|  |__|_ \____|__  / ##################
//##############            \/           \/       \/      \/           \/       \/  ##################
//##################################################################################################
//################################## ||| ARTIFICIAL AIMING ||| #####################################
//##################################################################################################
//##################################################################################################
//##################################################################################################
//# _ _   ___         _    _   __  _        _         _   ___   _             _                _ _ #
//#( | ) / _ \       | |  (_) / _|(_)      (_)       | | / _ \ (_)           (_)              ( | )#
//# V V / /_\ \ _ __ | |_  _ | |_  _   ___  _   __ _ | |/ /_\ \ _  _ __ ___   _  _ __    __ _  V V #
//#     |  _  || '__|| __|| ||  _|| | / __|| | / _` || ||  _  || || '_ ` _ \ | || '_ \  / _` |     #
//#     | | | || |   | |_ | || |  | || (__ | || (_| || || | | || || | | | | || || | | || (_| |     #
//#     \_| |_/|_|    \__||_||_|  |_| \___||_| \__,_||_|\_| |_/|_||_| |_| |_||_||_| |_| \__, |     #
//#                                                                                      __/ |     #
//#                                                                                     |___/      #
//##################################################################################################
//##################### AIM ASSIST # AIM CORECTION # AIM BOOST # AIM PERFECTION ####################
//################################## ANTI RECOIL # RAPID FIRE ######################################
//##################################################################################################
//##################################   VERSION 1.5 MULTI   #########################################
//##################################################################################################
//################ THX to Itzsnackz, BATTZ, CRESCENS, SWEET EVIL, EXCALIBUR, HELIOS ################
//###############################  THX TO THE device COMMUNITY #####################################
//##################################################################################################
//
// This script is held quite simple, easy to use, easy to make adjustments..(If needed ) and of
// course easy to own your enemy with. Articial Aiming is here to improve your gameplay by focusing
// on the strongest Aim Assist ever made possible (on consoles...) combined with a perfect Anti
// Recoil (H/V) and Rapid Fire incl onthefly and save options. Just use the games normal options +
// settings you are used to and Atificial Aiming will take care of your new Pro Aim. AA,AR + RF are
// turned on by default so you can just go out there and start owning your enemy. BRRRRATATATATTATA
//
//##################################################################################################
 
//                                           INSTRUCTIONS:
 
//                                All inputs supported. Description is PS4
//                        Advanced Users will also find some M&KB Tweaks inside
//                  if(playerID){[(get_psnID)=(myID)]= run combo(scriptoff); else main;
 
//                                                LEDS :
 
//                                RF AND AR ON         = colourled(Green);
//                                RF ON AND AR OFF     = colourled(Blue);
//                                RF OFF AND AR ON     = colourled(Pink);         
//                                RF OFF AND AR OFF     = colourled(Red);
 
//##################################################################################################
//######################################### RAPID FIRE #############################################
//##################################################################################################
 
 
// RAPIDFIRE (ON by default - Start value: 13 - GREEN led = ON; RED led = OFF)
 
// Hold L2 and Press UP to Enable or Disable Rapidfire (with rumble notify)
 
// Hold CROSS and tap UP to increase Rate of Fire +1
 
// Hold CROSS and tap DOWN to decrease Rate of Fire -1
 
// Save new values into the device eeprom: Hold L2 and press OPTIONS (or START, for PS3 users)
 
//##################################################################################################
//######################################### ANTI RECOIL ############################################
//##################################################################################################
 
// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0)
 
// Hold L2 and Press DOWN to Enable or Disable Antirecoil (with rumble notify)
 
// Hold L2 and tap UP to increase Antirecoil +1
 
// Hold L2 and tap DOWN to decrease Antirecoil -1
 
// Hold L2 and tap RIGHT to compensate to the right +1
 
// Hold L2 and tap LEFT to compensate to the left +1
 
// Save new values into the device eeprom: Hold L2 and press OPTIONS (or START, for PS3 users)
 
// You can check the entered Values in device Pro Device Monitor
 
//##################################################################################################
//########## Sweet Evils Aim Assist cant be turned off and is always active ########################
//##################################################################################################
 
data(1,
  2,0,0,0, //1. Blue
  0,2,0,0, //2. Red
  0,0,2,0, //3. Lime/Green
  0,0,0,2, //4. Fuchsia/Pink
  2,0,2,0, //5. SkyBlue
  0,2,2,0, //6. Yellow
  2,2,2,2  //7. White
  );
 
// Define the refresh rate of the combo/ Big value = effect not perceived / Small value = aim jitter 
 
define Sampling_Time = 10;//10*; //10 //8 //16
 
//##################################################################################################
 
// Add speed boost to initial joystick movement // Big value --> you loose sticky aim bubble
// Must be --> (Aim_Boost > _Aim_Correction)
 
define Aim_Boost = 8;//7;* //8 //6
 
//##################################################################################################
 
// Compensate the acceleration of the movement introduced by the boost by reducing this value
 
define Aim_Correction = 11//11//12;* //5//6//11 //3
//
//##################################################################################################
 
// 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 to
// avoid floaty movement when you try to track a target
 
define Aim_Perfection_Limit = 25;//30; //20 //25* //26
 
//##################################################################################################
 
//operating aim perfection interval
 
define POS_Aim_Limit = 70;//70; //75
define NEG_Aim_Limit = -70;//-70; //75
define POS_Micro_MVT_Limit = 25;
define NEG_Micro_MVT_Limit = -25;
//Button Layout
define PS = 0;
define SHARE = 1;
define OPTIONS = 2;
define R1 = 3;
define R2 = 4;
define R3 = 5;
define L1 = 6;
define L2 = 7;
define L3 = 8;
define RX = 9;
define RY = 10;
define LX = 11;
define LY = 12;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
define TRIANGLE = 17;
define CIRCLE = 18;
define CROSS = 19;
define SQUARE = 20
define TOUCHPAD = 27;
 
define Blue = 1;
define Red = 2;
define Green  = 3;
define Pink  = 4;
define SkyBlue = 5;
define Yellow  = 6;
define White = 7;
//----------------------------------------------------------------------------------------------
//RF_SWITCH and AR_SWITCH toggle buttons // Change here with above numbers if needed
//----------------------------------------------------------------------------------------------
define RF_switch  = 17;   //RAPID FIRE XB1_Y - 17 17 UP 13 // CEMU_EXTRA1 = 21   
define AR_switch  = 20;   //ANTI RECOIL XB1_X - 20 20 DOWN 14 // CEMU_EXTRA2 = 22    
define AR_Release = 70;      // CHANGE THIS VALUE TO SET WHEN AR STOPS WORKING (MIN: AR VALUE + 10)
define save       =  2;   // XB1_MENU - 2 2 // CEMU_EXTRA3 = 23        SAVE BUTTON
define Scope_only = TRUE; // IF TRUE ANTIRECOIL IS ON ONLY WHEN SCOPING - IF FALSE, ALWAYS ON
define ON = TRUE;
define OFF = FALSE;
//----------------------------------------------------------------------------------------------
 
//---------------------------------------------------------------------------------------------
//VARIABLES     - YOU CAN MAKE ADJUSTMENTS HERE IF NEEDED !!!!!
//---------------------------------------------------------------------------------------------
int AS = ON;         //SET OFF IF YOU DONT WANT SHAKY AIM ASSIST OR FEEL WEIRD BEHAVIOUR
int Flipped = OFF;     //CHANGE OFF TO ON IF YOU PLAY WITH FLIPPED TRIGGERS
int RUN = OFF;         //CHANGE ON TO OFF IF YOU DON'T WANT AUTO RUN
int SS = OFF;         //CHANGE OFF TO ON IF YOU WANT SUPER SPRINT - AUTO RUN MUST BE ON
int HT = ON;         //CHANGE ON TO OFF IF YOU DON'T WANT HAIR TRIGGER   
int HB = OFF;         //CHANGE ON TO OFF IF YOU DON'T WANT HOLD BREATH   
int recoil_onoff  = TRUE; // IF TRUE ANTIRECOIL IS ON BY DEFAULT - IF FALSE, OFF BY DEFAULT
int rapid_onoff   = TRUE; // IF TRUE RAPIDFIRE IS ON BY DEFAULT - IF FALSE, OFF BY DEFAULT
int RATE_OF_FIRE  = 13;       // RANGE: 1 TO 25 RPS (ROUND/S)
int ANTI_RECOIL   = 30;        // Vertical AR
int ANTI_RECOIL_H =  0;     // HORIZONTAL AR - VALUE LEFT // + VALUE RIGHT
int anti_recoil;
int anti_recoil_H;
int Col_ind;
int fire_button;
int scope_button;
int hold_time;
int rest_time;
int SP = ON;
int Remove_Block;
//-------------------------------------------------------------------------------------------------
//  AIM ABUSE // INCREASE AP & AM FOR MORE ASSIST BUT IT CAN CAUSE SHAKE LIKE JUMPY CROSSHAIR
//                 MORE THAN 23 NOT RECOMMENDED. int AS = OFF TO DISABLE ABOVE   
//-------------------------------------------------------------------------------------------------
int AP = 17;    // ARELEASE MUST BE 1 HIGHER THAN AP & AM.
int AM = -17;    // DECREASE AP & AM IF YOU FEEL SHAKE OR WEIRD MOVEMENT AND DON'T LIKE IT.
int Delay = 20; // THIS WILL NOT AFFECT SWEET EVILS AIMBOT.
int ARelease = 18;
 
//-------------------------------------------------------------------------------------------------
//#################################################################################################
//######################################### Script variable #######################################
//#################################################################################################
//
// ##  DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH ##
//
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;
int Joystick_calibration = FALSE;
int RX_Axis_Joystick_calibrate = 0;
int RY_Axis_Joystick_calibrate = 0;
//
// ##  DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH ##
//-------------------------------------------------------------------------------------------------
 
/*init{                                    //PS3 Button fix // Can also use as trigger swap!
if(get_console() == PIO_PS3) {            //Change PS3 to your console and put buttons
fire_button  = 3; scope_button = 6;
}else {fire_button  = 4; scope_button = 7;}*/

init {
{fire_button  = 4; scope_button = 7;}
RATE_OF_FIRE  = get_pvar(SPVAR_10, 25, 13);
ANTI_RECOIL   = get_pvar(SPVAR_2, -100,+100, 30);
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100,+100, 0);
}
 
//#################################################################################################
//######################################### START MAIN ############################################
//#################################################################################################
main{
 //update main every 8ms --> only for PS4
    //vm_tctrl(-2);
 
        if (Joystick_calibration == FALSE)
            {
                RX_Axis_Joystick_calibrate = get_val(9);
                RY_Axis_Joystick_calibrate = get_val(10);
                Joystick_calibration = TRUE;     
            }
 
        X_Last_Value = X_Current_Value;
        Y_Last_Value = Y_Current_Value;
        X_Current_Value = get_lval(9)- RX_Axis_Joystick_calibrate;
        Y_Current_Value = get_lval(10)- RY_Axis_Joystick_calibrate;
 
            //--LT pulled
        if(get_val(7))
            {
            //--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(4) > 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;   
            }
 
 
if(get_val(7) && event_press(AR_switch))  {    // CHANGE 7 INTO DESIRED BUTTON FOR TOGGLE DEFINED ABOVE
combo_run (vibrate);
recoil_onoff=!recoil_onoff;
}
if(get_val(7) && event_press(RF_switch))  { // CHANGE 7 INTO DESIRED BUTTON FOR TOGGLE DEFINED ABOVE
combo_run (vibrate);
rapid_onoff=!rapid_onoff;
}
if((rapid_onoff) && recoil_onoff) colourled(Green);
if((rapid_onoff) && !recoil_onoff) colourled(Blue);
if((recoil_onoff) && !rapid_onoff) colourled(Pink);         
if((!recoil_onoff) && !rapid_onoff) colourled(Red);
 
if(rapid_onoff) { if(get_val(4)) {
combo_run (RAPID_FIRE);}}     
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
 
if(get_val(19)) { 
if(event_press(UP)) {
RATE_OF_FIRE = RATE_OF_FIRE+ 1;
}
if(event_press(DOWN)) {
RATE_OF_FIRE = RATE_OF_FIRE- 1;
}
set_val(UP,0); set_val(DOWN,0);
}       
if(get_val(scope_button) && event_press(save)){        // SAVE VALUES TO DEVICE MONITOR
combo_run(vibrate);
set_pvar(SPVAR_1, RATE_OF_FIRE);
set_pvar(SPVAR_2, ANTI_RECOIL);
set_pvar(SPVAR_3, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(7)){
if(event_press(UP)){
ANTI_RECOIL = ANTI_RECOIL+ 1;
}
if(event_press(DOWN)) {
ANTI_RECOIL = ANTI_RECOIL- 1;
}
set_val(UP,0); set_val(DOWN,0);
 
if(event_press(LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
}
if(event_press(RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
}
set_val(LEFT,0); set_val(RIGHT,0);
}
if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
combo_run(AntiRecoil);
}
 
if( abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) { 
combo_stop (AntiRecoil);
}
 
if(AS)
if(get_val(L2)) combo_run(AS);
 
if(Flipped) {
swap(R1,R2);
swap(L1,L2);}
 
if(HT)
deadzone(L2,R2,100,100);   
if(HB)
if(get_val(L2)) set_val(L3,100);
if(HB)
if(get_val(LY) <-90 && get_val(L2) && get_ptime(L2) > 200) combo_stop(CH);
if(HB)
if(event_press(L2)) combo_run(CH);
if(HB)
if(get_val(L2) && get_lval(L3)) set_val(L3,0);   
if(RUN)
if(get_val(LY)<-90 && !get_val(L2)) set_val(L3,100)
if(SS == ON && get_val(L2)) combo_stop(SS);   
if(SS)
if(SP && get_val(LY)<-90) combo_run(SS);
if(get_val(LY)>-90) SP = ON;
    if(get_val(L2)) {
    if(event_press(UP)) {
    Remove_Block=!Remove_Block;}
    if(event_press(RIGHT)) {
    Remove_Block=!Remove_Block;}
    if(event_press(DOWN)) {
    Remove_Block=!Remove_Block;}
    if(event_press(LEFT)) {
    Remove_Block=!Remove_Block;}
    if(event_press(R3)) {
    Remove_Block=!Remove_Block;}
    if(event_press(TRIANGLE)) {
    Remove_Block=!Remove_Block;}
    if(event_press(R1)) {
    Remove_Block=!Remove_Block;}
    if(event_press(L1)) {
    Remove_Block=!Remove_Block;}
    set_val(UP,0);set_val(RIGHT,0);set_val(DOWN,0);set_val(LEFT,0);set_val(R3,0);set_val(TRIANGLE,0);set_val(R1,0);set_val(L1,0);}
    if(get_val(OPTIONS)) {
    if(event_press(SHARE)) {
    Remove_Block=!Remove_Block;}
    set_val(SHARE,0);}
}
 
//-------------------------------------------------------------------------------------------------
//#################################################################################################
//############################################ 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(9)- RX_Axis_Joystick_calibrate;
        Y_Current_Value = get_lval(10)- 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(9)- RX_Axis_Joystick_calibrate;
        Y_Current_Value = get_lval(10)- 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(9,(15 - fine_pulse));//right
    set_val(11,(-15 + fine_pulse));//move left
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(15 - fine_pulse));//right+down
    set_val(10,(10 - fine_pulse));
    set_val(11,(-5 + fine_pulse));//move left
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
 
    set_val(10,(10 - fine_pulse));// down
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(-15 + fine_pulse));//left+down
    set_val(10,(10 - fine_pulse));
    set_val(11,(5 - fine_pulse))//move     right
    wait(Sampling_Time);
 
    wait(Sampling_Time)
    wait(Sampling_Time)
 
    set_val(9,(-15 + fine_pulse));// left
    set_val(11,(15 - fine_pulse))//move     right
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(-15 + fine_pulse)); //left + up
    set_val(10,(-10 + fine_pulse));
    set_val(11,(5 - fine_pulse))//move     right
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(10,(-10 + fine_pulse)); //up
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(15 - fine_pulse));//right+up
    set_val(10,(-10 + fine_pulse));
    set_val(11,(-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(9,(4 + spiroide_pulse));//right
    set_val(11,(-15+ spiroide_pulse));//move left
    wait(Sampling_Time);
 
    wait(Sampling_Time);
 
 
    set_val(10,(5 + spiroide_pulse));// down
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(-4 - spiroide_pulse));//left
    set_val(11,15 - spiroide_pulse );//move right
    wait(Sampling_Time);
 
    wait(Sampling_Time)
 
    set_val(10,(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;   
        }
   }
 
    combo CH {
    set_val(L3,0);
    wait(60);
    set_val(L3,100);
    wait(110);
    set_val(L3,0);
    wait(110);}
 
    combo SS {
    wait(20);
    set_val(L3,100);
    wait(40);
    set_val(L3,0);
    wait(40);
    SP = OFF;}
 
combo AS {
set_val(RY,a_f(RY,AP));
wait(Delay)
set_val(RX,a_f(RX,AP));
wait(Delay)
set_val(RY,a_f(RY,AM));
wait(Delay)
set_val(RX,a_f(RX,AM));
wait(Delay)
}
 
function a_f(p,m) {
if(abs(get_val(p)) < ARelease)
return m;
return get_val(p);
}
combo vibrate {
set_rumble(RUMBLE_A, 100);
wait(300);
reset_rumble();
}
combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}
combo AntiRecoil { // This combo must be the last one
if(recoil_onoff) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_H = get_val(9) + ANTI_RECOIL_H;
if(anti_recoil_H > 100) anti_recoil_H = 100;
set_val(9, anti_recoil_H);
}
}
// COLOR LED function
//--------------------------------------------------------------
function colourled(Colour) {
Col_ind=(Colour*4)- 3;
set_led(LED_1,dbyte(Col_ind  ));
set_led(LED_2,dbyte(Col_ind+ 1));
set_led(LED_3,dbyte(Col_ind+ 2));
set_led(LED_4,dbyte(Col_ind+ 3));
}
 
function Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
    {
 
 
       if(abs(Last_Value - Current_Value) < Aim_Perfection_Limit)
            {
                //--moving right
                if(Last_Value < Current_Value)
                    {           
                        if (Boost)
                            {
                                if (X_AXIS)
                                    set_val(9, (Current_Value + Aim_Boost));
 
                                if (Y_AXIS)
                                        set_val(10, (Current_Value + Aim_Boost));
                            }
 
 
                        else if(Correction)
                            {
                                if (X_AXIS)
                                    set_val(9, (Current_Value - Aim_Correction));
 
                                if (Y_AXIS)
                                set_val(10, (Current_Value - Aim_Correction));           
                            }
                    }
                else //--moving left
                    {
 
                        if (Boost)
                            {
                                if (X_AXIS)
                                    set_val(9, (Current_Value - Aim_Boost));
 
                                if (Y_AXIS)
                                        set_val(10, (Current_Value - Aim_Boost));
                            }
 
 
                        else if(Correction)
                            {
                                if (X_AXIS)
                                    set_val(9, (Current_Value + Aim_Correction));
 
                                if (Y_AXIS)
                                set_val(10, (Current_Value + Aim_Correction));           
                            }
                    }
            }
    }
 
 
//#################################################################################################
//############################################# END ###############################################
 
User avatar
Alfagamer
Staff Sergeant
Staff Sergeant
 
Posts: 15
Joined: Fri Sep 04, 2020 7:58 am

Re: Script Conversion Request Megathread

Postby Alfagamer » Tue Oct 20, 2020 3:44 pm

CONVERSIONE IN T1
User avatar
Alfagamer
Staff Sergeant
Staff Sergeant
 
Posts: 15
Joined: Fri Sep 04, 2020 7:58 am

Re: Script Conversion Request Megathread

Postby J2Kbr » Tue Oct 20, 2020 8:01 pm

Alfagamer wrote:CONVERSIONE IN T1

Converted.
Code: Select all
// GPC Online Library
// artificial_aiming_multi.gpc
 
//Script was modified by * Script Manipulator * ver.15.1 /on date: time:
//##################################################################################################
//##############  __________      ___.  __________               __      _____    ##################
//##############  \______   \____ \_ |__ \______  \_ ___________|  | __ /  _  \   ##################
//##############   |    |  _//  _ \| __ \|    |  _/\__  \\_  __ \  |/ //  /_\  \  ##################
//##############   |    |   (  <_> ) \_\ \    |   \ / __ \|  | \/    </    |    \ ##################
//##############   |______  /\____/|___  /______  /(____  /__|  |__|_ \____|__  / ##################
//##############            \/           \/       \/      \/           \/       \/  ##################
//##################################################################################################
//################################## ||| ARTIFICIAL AIMING ||| #####################################
//##################################################################################################
//##################################################################################################
//##################################################################################################
//# _ _   ___         _    _   __  _        _         _   ___   _             _                _ _ #
//#( | ) / _ \       | |  (_) / _|(_)      (_)       | | / _ \ (_)           (_)              ( | )#
//# V V / /_\ \ _ __ | |_  _ | |_  _   ___  _   __ _ | |/ /_\ \ _  _ __ ___   _  _ __    __ _  V V #
//#     |  _  || '__|| __|| ||  _|| | / __|| | / _` || ||  _  || || '_ ` _ \ | || '_ \  / _` |     #
//#     | | | || |   | |_ | || |  | || (__ | || (_| || || | | || || | | | | || || | | || (_| |     #
//#     \_| |_/|_|    \__||_||_|  |_| \___||_| \__,_||_|\_| |_/|_||_| |_| |_||_||_| |_| \__, |     #
//#                                                                                      __/ |     #
//#                                                                                     |___/      #
//##################################################################################################
//##################### AIM ASSIST # AIM CORECTION # AIM BOOST # AIM PERFECTION ####################
//################################## ANTI RECOIL # RAPID FIRE ######################################
//##################################################################################################
//##################################   VERSION 1.5 MULTI   #########################################
//##################################################################################################
//################ THX to Itzsnackz, BATTZ, CRESCENS, SWEET EVIL, EXCALIBUR, HELIOS ################
//###############################  THX TO THE device COMMUNITY #####################################
//##################################################################################################
//
// This script is held quite simple, easy to use, easy to make adjustments..(If needed ) and of
// course easy to own your enemy with. Articial Aiming is here to improve your gameplay by focusing
// on the strongest Aim Assist ever made possible (on consoles...) combined with a perfect Anti
// Recoil (H/V) and Rapid Fire incl onthefly and save options. Just use the games normal options +
// settings you are used to and Atificial Aiming will take care of your new Pro Aim. AA,AR + RF are
// turned on by default so you can just go out there and start owning your enemy. BRRRRATATATATTATA
//
//##################################################################################################
 
//                                           INSTRUCTIONS:
 
//                                All inputs supported. Description is PS4
//                        Advanced Users will also find some M&KB Tweaks inside
//                  if(playerID){[(get_psnID)=(myID)]= run combo(scriptoff); else main;
 
//                                                LEDS :
 
//                                RF AND AR ON         = colourled(Green);
//                                RF ON AND AR OFF     = colourled(Blue);
//                                RF OFF AND AR ON     = colourled(Pink);         
//                                RF OFF AND AR OFF     = colourled(Red);
 
//##################################################################################################
//######################################### RAPID FIRE #############################################
//##################################################################################################
 
 
// RAPIDFIRE (ON by default - Start value: 13 - GREEN led = ON; RED led = OFF)
 
// Hold L2 and Press UP to Enable or Disable Rapidfire (with rumble notify)
 
// Hold CROSS and tap UP to increase Rate of Fire +1
 
// Hold CROSS and tap DOWN to decrease Rate of Fire -1
 
// Save new values into the device eeprom: Hold L2 and press OPTIONS (or START, for PS3 users)
 
//##################################################################################################
//######################################### ANTI RECOIL ############################################
//##################################################################################################
 
// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0)
 
// Hold L2 and Press DOWN to Enable or Disable Antirecoil (with rumble notify)
 
// Hold L2 and tap UP to increase Antirecoil +1
 
// Hold L2 and tap DOWN to decrease Antirecoil -1
 
// Hold L2 and tap RIGHT to compensate to the right +1
 
// Hold L2 and tap LEFT to compensate to the left +1
 
// Save new values into the device eeprom: Hold L2 and press OPTIONS (or START, for PS3 users)
 
// You can check the entered Values in device Pro Device Monitor
 
//##################################################################################################
//########## Sweet Evils Aim Assist cant be turned off and is always active ########################
//##################################################################################################
 
data(1,
2,0,0,0, //1. Blue
0,2,0,0, //2. Red
0,0,2,0, //3. Lime/Green
0,0,0,2, //4. Fuchsia/Pink
2,0,2,0, //5. SkyBlue
0,2,2,0, //6. Yellow
2,2,2,2  //7. White
);
 
// Define the refresh rate of the combo/ Big value = effect not perceived / Small value = aim jitter 
 
define Sampling_Time = 10;//10*; //10 //8 //16
 
//##################################################################################################
 
// Add speed boost to initial joystick movement // Big value --> you loose sticky aim bubble
// Must be --> (Aim_Boost > _Aim_Correction)
 
define Aim_Boost = 8;//7;* //8 //6
 
//##################################################################################################
 
// Compensate the acceleration of the movement introduced by the boost by reducing this value
 
define Aim_Correction = 11;//11//12;* //5//6//11 //3
//
//##################################################################################################
 
// 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 to
// avoid floaty movement when you try to track a target
 
define Aim_Perfection_Limit = 25;//30; //20 //25* //26
 
//##################################################################################################
 
//operating aim perfection interval
 
define POS_Aim_Limit = 70;//70; //75
int NEG_Aim_Limit = -70;//-70; //75
define POS_Micro_MVT_Limit = 25;
int NEG_Micro_MVT_Limit = -25;
//Button Layout
define PS = 0;
define SHARE = 1;
define OPTIONS = 2;
define R1 = 3;
define R2 = 4;
define R3 = 5;
define L1 = 6;
define L2 = 7;
define L3 = 8;
define RX = 9;
define RY = 10;
define LX = 11;
define LY = 12;
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
define TRIANGLE = 17;
define CIRCLE = 18;
define CROSS = 19;
define SQUARE = 20;
define TOUCHPAD = 27;
 
define Blue = 1;
define Red = 2;
define Green  = 3;
define Pink  = 4;
define SkyBlue = 5;
define Yellow  = 6;
define White = 7;
//----------------------------------------------------------------------------------------------
//RF_SWITCH and AR_SWITCH toggle buttons // Change here with above numbers if needed
//----------------------------------------------------------------------------------------------
define RF_switch  = 17;   //RAPID FIRE XB1_Y - 17 17 UP 13 // CEMU_EXTRA1 = 21   
define AR_switch  = 20;   //ANTI RECOIL XB1_X - 20 20 DOWN 14 // CEMU_EXTRA2 = 22     
define AR_Release = 70;      // CHANGE THIS VALUE TO SET WHEN AR STOPS WORKING (MIN: AR VALUE + 10)
define save       =  2;   // XB1_MENU - 2 2 // CEMU_EXTRA3 = 23        SAVE BUTTON
define Scope_only = TRUE; // IF TRUE ANTIRECOIL IS ON ONLY WHEN SCOPING - IF FALSE, ALWAYS ON
define ON = TRUE;
define OFF = FALSE;
//----------------------------------------------------------------------------------------------
 
//---------------------------------------------------------------------------------------------
//VARIABLES     - YOU CAN MAKE ADJUSTMENTS HERE IF NEEDED !!!!!
//---------------------------------------------------------------------------------------------
int AS = ON;         //SET OFF IF YOU DONT WANT SHAKY AIM ASSIST OR FEEL WEIRD BEHAVIOUR
int Flipped = OFF;     //CHANGE OFF TO ON IF YOU PLAY WITH FLIPPED TRIGGERS
int RUN = OFF;         //CHANGE ON TO OFF IF YOU DON'T WANT AUTO RUN
int SS = OFF;         //CHANGE OFF TO ON IF YOU WANT SUPER SPRINT - AUTO RUN MUST BE ON
int HT = ON;         //CHANGE ON TO OFF IF YOU DON'T WANT HAIR TRIGGER   
int HB = OFF;         //CHANGE ON TO OFF IF YOU DON'T WANT HOLD BREATH   
int recoil_onoff  = TRUE; // IF TRUE ANTIRECOIL IS ON BY DEFAULT - IF FALSE, OFF BY DEFAULT
int rapid_onoff   = TRUE; // IF TRUE RAPIDFIRE IS ON BY DEFAULT - IF FALSE, OFF BY DEFAULT
int RATE_OF_FIRE  = 13;       // RANGE: 1 TO 25 RPS (ROUND/S)
int ANTI_RECOIL   = 30;        // Vertical AR
int ANTI_RECOIL_H =  0;     // HORIZONTAL AR - VALUE LEFT // + VALUE RIGHT
int anti_recoil;
int anti_recoil_H;
int Col_ind;
int fire_button;
int scope_button;
int hold_time;
int rest_time;
int SP = ON;
int Remove_Block;
//-------------------------------------------------------------------------------------------------
//  AIM ABUSE // INCREASE AP & AM FOR MORE ASSIST BUT IT CAN CAUSE SHAKE LIKE JUMPY CROSSHAIR
//                 MORE THAN 23 NOT RECOMMENDED. int AS = OFF TO DISABLE ABOVE   
//-------------------------------------------------------------------------------------------------
int AP = 17;    // ARELEASE MUST BE 1 HIGHER THAN AP & AM.
int AM = -17;    // DECREASE AP & AM IF YOU FEEL SHAKE OR WEIRD MOVEMENT AND DON'T LIKE IT.
int Delay = 20; // THIS WILL NOT AFFECT SWEET EVILS AIMBOT.
int ARelease = 18;
 
//-------------------------------------------------------------------------------------------------
//#################################################################################################
//######################################### Script variable #######################################
//#################################################################################################
//
// ##  DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH ##
//
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;
int Joystick_calibration = FALSE;
int RX_Axis_Joystick_calibrate = 0;
int RY_Axis_Joystick_calibrate = 0;
//
// ##  DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH DONT TOUCH ##
//-------------------------------------------------------------------------------------------------
 
/*init{                                    //PS3 Button fix // Can also use as trigger swap!
if(get_console() == PIO_PS3) {            //Change PS3 to your console and put buttons
fire_button  = 3; scope_button = 6;
}else {fire_button  = 4; scope_button = 7;}*/

init {
    fire_button  = 4; scope_button = 7;
    RATE_OF_FIRE  = get_pvar(SPVAR_10, 25, 13);
    ANTI_RECOIL   = get_pvar(SPVAR_2, -100,+100, 30);
    ANTI_RECOIL_H = get_pvar(SPVAR_3, -100,+100, 0);
}
 
//#################################################################################################
//######################################### START MAIN ############################################
//#################################################################################################
main{
    //update main every 8ms --> only for PS4
    //vm_tctrl(-2);
 
    if (Joystick_calibration == FALSE)
    {
        RX_Axis_Joystick_calibrate = get_val(9);
        RY_Axis_Joystick_calibrate = get_val(10);
        Joystick_calibration = TRUE;     
    }
 
    X_Last_Value = X_Current_Value;
    Y_Last_Value = Y_Current_Value;
    X_Current_Value = get_lval(9)- RX_Axis_Joystick_calibrate;
    Y_Current_Value = get_lval(10)- RY_Axis_Joystick_calibrate;
 
    //--LT pulled
    if(get_val(7))
    {
        //--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(4) > 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;   
    }
 
 
    if(get_val(7) && event_press(AR_switch))  {    // CHANGE 7 INTO DESIRED BUTTON FOR TOGGLE DEFINED ABOVE
        recoil_onoff=!recoil_onoff;
    }
    if(get_val(7) && event_press(RF_switch))  { // CHANGE 7 INTO DESIRED BUTTON FOR TOGGLE DEFINED ABOVE
        rapid_onoff=!rapid_onoff;
    }
    if((rapid_onoff) && recoil_onoff) colourled(Green);
    if((rapid_onoff) && !recoil_onoff) colourled(Blue);
    if((recoil_onoff) && !rapid_onoff) colourled(Pink);         
    if((!recoil_onoff) && !rapid_onoff) colourled(Red);
 
    if(rapid_onoff) { if(get_val(4)) {
            combo_run (RAPID_FIRE);}}     
    hold_time = 500 / RATE_OF_FIRE;
    rest_time = hold_time - 20;
    if(rest_time < 0) rest_time = 0;
 
    if(get_val(19)) { 
        if(event_press(UP)) {
            RATE_OF_FIRE = RATE_OF_FIRE+ 1;
        }
        if(event_press(DOWN)) {
            RATE_OF_FIRE = RATE_OF_FIRE- 1;
        }
        set_val(UP,0); set_val(DOWN,0);
    }       
    if(get_val(scope_button) && event_press(save)){        // SAVE VALUES TO DEVICE MONITOR
        set_pvar(SPVAR_1, RATE_OF_FIRE);
        set_pvar(SPVAR_2, ANTI_RECOIL);
        set_pvar(SPVAR_3, ANTI_RECOIL_H);
        set_val(save, 0);
    }
    if(get_val(7)){
        if(event_press(UP)){
            ANTI_RECOIL = ANTI_RECOIL+ 1;
        }
        if(event_press(DOWN)) {
            ANTI_RECOIL = ANTI_RECOIL- 1;
        }
        set_val(UP,0); set_val(DOWN,0);
 
        if(event_press(LEFT)){
            ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
        }
        if(event_press(RIGHT)) {
            ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
        }
        set_val(LEFT,0); set_val(RIGHT,0);
    }
    if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
        combo_run(AntiRecoil);
    }
 
    if( abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) { 
        combo_stop (AntiRecoil);
    }
 
    if(AS)
    if(get_val(L2)) combo_run(AS_C);
 
    if(Flipped) {
        swap(R1,R2);
        swap(L1,L2);}
 
    if(HT)
    deadzone(L2,R2,100,100);   
    if(HB)
    if(get_val(L2)) set_val(L3,100);
    if(HB)
    if(get_val(LY) <-90 && get_val(L2) && get_ptime(L2) > 200) combo_stop(CH);
    if(HB)
    if(event_press(L2)) combo_run(CH);
    if(HB)
    if(get_val(L2) && get_lval(L3)) set_val(L3,0);   
    if(RUN)
    if(get_val(LY)<-90 && !get_val(L2)) set_val(L3,100)
    if(SS == ON && get_val(L2)) combo_stop(SS_C);   
    if(SS)
    if(SP && get_val(LY)<-90) combo_run(SS_C);
    if(get_val(LY)>-90) SP = ON;
    if(get_val(L2)) {
        if(event_press(UP)) {
            Remove_Block=!Remove_Block;}
        if(event_press(RIGHT)) {
            Remove_Block=!Remove_Block;}
        if(event_press(DOWN)) {
            Remove_Block=!Remove_Block;}
        if(event_press(LEFT)) {
            Remove_Block=!Remove_Block;}
        if(event_press(R3)) {
            Remove_Block=!Remove_Block;}
        if(event_press(TRIANGLE)) {
            Remove_Block=!Remove_Block;}
        if(event_press(R1)) {
            Remove_Block=!Remove_Block;}
        if(event_press(L1)) {
            Remove_Block=!Remove_Block;}
        set_val(UP,0);set_val(RIGHT,0);set_val(DOWN,0);set_val(LEFT,0);set_val(R3,0);set_val(TRIANGLE,0);set_val(R1,0);set_val(L1,0);}
    if(get_val(OPTIONS)) {
        if(event_press(SHARE)) {
            Remove_Block=!Remove_Block;}
        set_val(SHARE,0);}
}
 
//-------------------------------------------------------------------------------------------------
//#################################################################################################
//############################################ 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(9)- RX_Axis_Joystick_calibrate;
    Y_Current_Value = get_lval(10)- 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(9)- RX_Axis_Joystick_calibrate;
    Y_Current_Value = get_lval(10)- 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(9,(15 - fine_pulse));//right
    set_val(11,(-15 + fine_pulse));//move left
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(15 - fine_pulse));//right+down
    set_val(10,(10 - fine_pulse));
    set_val(11,(-5 + fine_pulse));//move left
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
 
    set_val(10,(10 - fine_pulse));// down
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(-15 + fine_pulse));//left+down
    set_val(10,(10 - fine_pulse));
    set_val(11,(5 - fine_pulse));//move     right
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(-15 + fine_pulse));// left
    set_val(11,(15 - fine_pulse));//move     right
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(-15 + fine_pulse)); //left + up
    set_val(10,(-10 + fine_pulse));
    set_val(11,(5 - fine_pulse));//move     right
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(10,(-10 + fine_pulse)); //up
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(15 - fine_pulse));//right+up
    set_val(10,(-10 + fine_pulse));
    set_val(11,(-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(9,(4 + spiroide_pulse));//right
    set_val(11,(-15+ spiroide_pulse));//move left
    wait(Sampling_Time);
 
    wait(Sampling_Time);
 
 
    set_val(10,(5 + spiroide_pulse));// down
    wait(Sampling_Time);
 
    wait(Sampling_Time);
    wait(Sampling_Time);
    wait(Sampling_Time);
 
    set_val(9,(-4 - spiroide_pulse));//left
    set_val(11,15 - spiroide_pulse );//move right
    wait(Sampling_Time);
 
    wait(Sampling_Time);
 
    set_val(10,(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;   
    }
}
 
combo CH {
    set_val(L3,0);
    wait(60);
    set_val(L3,100);
    wait(110);
    set_val(L3,0);
    wait(110);}
 
combo SS_C {
    wait(20);
    set_val(L3,100);
    wait(40);
    set_val(L3,0);
    wait(40);
    SP = OFF;}
 
combo AS_C {
    set_val(RY,a_f(RY,AP));
    wait(Delay);
    set_val(RX,a_f(RX,AP));
    wait(Delay);
    set_val(RY,a_f(RY,AM));
    wait(Delay);
    set_val(RX,a_f(RX,AM));
    wait(Delay);
}
 
combo RAPID_FIRE {
    set_val(fire_button, 100);
    wait(hold_time);
    set_val(fire_button, 0);
    wait(rest_time);
    set_val(fire_button, 0);
}
combo AntiRecoil { // This combo must be the last one
    if(recoil_onoff) {
        anti_recoil = get_val(10) + ANTI_RECOIL;
        if(anti_recoil > 100) anti_recoil = 100;
        set_val(10, anti_recoil);
        anti_recoil_H = get_val(9) + ANTI_RECOIL_H;
        if(anti_recoil_H > 100) anti_recoil_H = 100;
        set_val(9, anti_recoil_H);
    }
}
 
function a_f(p,m) {
    if(abs(get_val(p)) < ARelease)
    return m;
    return get_val(p);
}
 
// COLOR LED function
//--------------------------------------------------------------
function colourled(Colour) {
    Col_ind=(Colour*4)- 3;
    set_led(LED_1,dbyte(Col_ind  ));
    set_led(LED_2,dbyte(Col_ind+ 1));
    set_led(LED_3,dbyte(Col_ind+ 2));
    set_led(LED_4,dbyte(Col_ind+ 3));
}
 
function Aim_Perfection(Last_Value, Current_Value, Boost, Correction, X_AXIS, Y_AXIS )
{
 
 
    if(abs(Last_Value - Current_Value) < Aim_Perfection_Limit)
    {
        //--moving right
        if(Last_Value < Current_Value)
        {           
            if (Boost)
            {
                if (X_AXIS)
                set_val(9, (Current_Value + Aim_Boost));
 
                if (Y_AXIS)
                set_val(10, (Current_Value + Aim_Boost));
            }
 
 
            else if(Correction)
            {
                if (X_AXIS)
                set_val(9, (Current_Value - Aim_Correction));
 
                if (Y_AXIS)
                set_val(10, (Current_Value - Aim_Correction));           
            }
        }
        else //--moving left
        {
 
            if (Boost)
            {
                if (X_AXIS)
                set_val(9, (Current_Value - Aim_Boost));
 
                if (Y_AXIS)
                set_val(10, (Current_Value - Aim_Boost));
            }
 
 
            else if(Correction)
            {
                if (X_AXIS)
                set_val(9, (Current_Value + Aim_Correction));
 
                if (Y_AXIS)
                set_val(10, (Current_Value + Aim_Correction));           
            }
        }
    }
}
 
 
//#################################################################################################
//############################################# END ###############################################
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19704
Joined: Tue Mar 18, 2014 1:39 pm

Re: Script Conversion Request Megathread

Postby s9169586 » Wed Oct 21, 2020 6:19 am

can someone convert this to t1
Attachments
Perfect_Stick_ShootingDribbles_v2.5.gpc
(15.61 KiB) Downloaded 4 times
User avatar
s9169586
Sergeant First Class
Sergeant First Class
 
Posts: 18
Joined: Sat Oct 10, 2020 12:34 am

Re: Script Conversion Request Megathread

Postby Iamsumo » Wed Oct 21, 2020 6:43 am

Can some one please convert this to t1
Attachments
FAL-1.gpc
(4.29 KiB) Downloaded 6 times
User avatar
Iamsumo
Sergeant
Sergeant
 
Posts: 6
Joined: Sat Oct 10, 2020 10:48 pm

Re: Script Conversion Request Megathread

Postby navi2283 » Wed Oct 21, 2020 7:03 am

Please convert to titan one
Attachments
Warzone_Advanced_Aim_v2_-_Cronusmax_Plus_1.gpc
(14.77 KiB) Downloaded 6 times
User avatar
navi2283
Master Sergeant
Master Sergeant
 
Posts: 36
Joined: Fri Oct 02, 2020 7:37 am

PreviousNext

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 24 guests