Converting the best device script to Titan HELP

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

Converting the best device script to Titan HELP

Postby bald buff guy » Wed Nov 28, 2018 3:31 pm

Does anyone know how I would convert a script that worked really well for XB1/PS4 that I used to run with device? I called myself upgrading to a T2 and found myself in a world of mess. The script on XB1 was flawless when it came to aim-assist settings and not having to toggle on/off using L3/LS, which is only ridiculous if you've ever experienced the walter martinez script.

The script is below:


Code: Select all
// GPC Online Library
// fortnite_|_anti_recoil_|_aim_abuse_|_auto_drop_|_aim_assist_(ps4&xbox).gpc
 
/*********************************************************************************/   
// - $$$$$$$$\  $$$$$$\  $$$$$$$\  $$$$$$$$\ $$\   $$\ $$$$$$\ $$$$$$$$\ $$$$$$$$\
// - $$  _____|$$  __$$\ $$  __$$\ \__$$  __|$$$\  $$ |\_$$  _|\__$$  __|$$  _____|
// - $$ |      $$ /  $$ |$$ |  $$ |   $$ |   $$$$\ $$ |  $$ |     $$ |   $$ |     
// - $$$$$\    $$ |  $$ |$$$$$$$  |   $$ |   $$ $$\$$ |  $$ |     $$ |   $$$$$\   
// - $$  __|   $$ |  $$ |$$  __$$<    $$ |   $$ \$$$$ |  $$ |     $$ |   $$  __|   
// - $$ |      $$ |  $$ |$$ |  $$ |   $$ |   $$ |\$$$ |  $$ |     $$ |   $$ |     
// - $$ |       $$$$$$  |$$ |  $$ |   $$ |   $$ | \$$ |$$$$$$\    $$ |   $$$$$$$$\
// - \__|       \______/ \__|  \__|   \__|   \__|  \__|\______|   \__|   \________|                                                                             
/**********************************************************************************/
//COMBAT PRO & BUILDER PRO ONLY! PS4/XB1 CREDIT: Excalibur, WalterHMartinez
//---//---//---//---//---//---//---//---//---//--->                                                                                                                                   
define FIRE_BTN   = XB1_RT;    //PS4_R2       (4)
define ADS_BTN    = XB1_LT;    //PS4_L2       (7)
define CROUCH_BTN = XB1_RS;    //PS4_R3       (5)
define SPRINT_BTN = XB1_LS;    //PS4_L3       (8)
define JUMP_BTN   = XB1_A;     //PS4_CROSS    (19)
define NEXT_PIECE = XB1_RB;    //PS4_R1       (3)
define LEFT_BUMP  = XB1_LB;    //PS4_L1       (6)
define SWAP_BTN   = XB1_Y;     //PS4_TRIANGLE (17)
define BUILD_BTN  = XB1_B;     //PS4_CIRCLE   (18)
define RELOAD_BTN = XB1_X;     //PS4_SQUARE   (20)
define LEFT_BTN   = XB1_LEFT//PS4_LEFT     (15)
define RIGHT_BTN  = XB1_RIGHT; //PS4_RIGHT    (16)
define UP_BTN     = XB1_UP;    //PS4_UP       (13)
define DOWN_BTN   = XB1_DOWN//PS4_DOWN     (13)
define MENU_BTN   = XB1_MENU//PS4_MENU     (2)
define VIEW_BTN   = XB1_VIEW//PS4_SHARE    (1)
//------------------------------------------------->
//   BUILD BUTTONS                                                     
define WALL_BTN   = XB1_RT; //PS4_R2 (4)
define STAIRS_BTN = XB1_LT; //PS4_L2 (7)
define FLOOR_BTN  = XB1_RB; //PS4_R1 (3)
define ROOF_BTN   = XB1_LB; //PS4_L1 (6)
 
//______________________________________________________________________|
//########## VARIABLES BELOW USED BY SCRIPT (DO NOT TOUCH) #############|
//----------------------------------------------------------------------|
 
//----COLOR IDENTIFICATION             
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
data(1,
    2, 0, 0, 0, //1. Blue                                 
    0, 2, 0, 0, //2. Red                                 
    0, 0, 2, 0, //3. Green                               
    0, 0, 0, 2, //4. Pink                                 
    2, 0, 2, 0, //5. SkyBlue                             
    0, 2, 2, 0, //6. Yellow                               
    2, 2, 2, 2  //7. White
);//-------------------------
 
 
int AimAbuse_onoff   = TRUE;                             
int AR_AimAssist_on  = TRUE
int AimAssist_onoff  = TRUE;               
int AutoDrop_onoff   = FALSE;
int shake            = 23;
int Trickshot_on;
 
//----Aim Abuse Hold And Rest
int aimabuse_hold;
int aimabuse_rest;
 
 
//---- Anti Recoil (Don't Touch)
int recoil_onoff = TRUE;
int anti_recoil; //VERTICAL RECOIL
int anti_recoil_left; //HORIZONTAL RECOIL
int anti_recoil_right; //HORIZONTAL RECOIL
define ANTI_RECOIL = 11; //VERTICAL RECOIL
define ANTI_RECOIL_LEFT = 0; //HORIZONTAL RECOIL
define ANTI_RECOIL_RIGHT = 0; //HORIZONTAL RECOIL
define AR_Release = 25;
define ONLY_WITH_SCOPE = TRUE;
//end
 
 
//----Functions
int rumble_type = RUMBLE_A
int Col_ind;
//end
 
 
//----UNMAPPING CONTROLS
unmap 15//LEFT
unmap 16; //RIGHT
//end
//--------------------------------------------------------------------------------------
//  MAIN BLOCK BEGIN                                 
main {   
 
    /////////////////////////////////////////////////////////////////////////////////
    //  Color Identification
    if ((AR_AimAssist_on)) colourled(SkyBlue)//AR Aim Abuse is on! (default LED colour)
    if ((AutoDrop_onoff))  colourled(Red);     //Drop Shot is on!
 
 
 
    //////////////////////////////////////////////////////////////////////
    // DEAD ZONE CORECTION : LEFT STICK                                 
    if(abs(get_val(PS4_LY)) < 0 && abs(get_val(PS4_LX)) < 0 ){       
        set_val(PS4_LY,0);                                               
        set_val(PS4_LX,0);                                               
    }                                                                   
 
    //////////////////////////////////////////////////////////////////////
    // DEAD ZONE CORECTION : RIGHT STICK                                 
    if(abs(get_val(PS4_RY)) < 0 && abs(get_val(PS4_RX)) < 0 ){         
        set_val(PS4_RY,0);                                                 
        set_val(PS4_RX,0);                                               
    }                                                           
 
    /////////////////////////////////////////////////////////////////////////////////
    //Aim Assist V 2                                     
    if (AimAssist_onoff) {                           
        if (get_val(ADS_BTN))                       
            combo_run(Auto_Aimm);                     
        else       
            combo_stop(Auto_Aimm);                   
 
 
        if (get_val(ADS_BTN)) {                       
            if (abs(get_val(9)) > 21 || abs(get_val(10)) > 21){
                combo_stop(Auto_Aimm);                 
            }                                         
        }                                             
    }//-------------------------------------------------------------------------------
 
    if(AimAbuse_onoff){   
       /////////////////////////////////////////////////////////////////////////////////
       // Assault Rifels Aim Abuse                                           
       if (AR_AimAssist_on) {                             
           if (get_val(ADS_BTN) && get_val(FIRE_BTN)) { 
               aimabuse_hold = 55;
               aimabuse_rest = 17;             
               combo_run(AIM_ABUSE);                 
           } else if (combo_running(AIM_ABUSE)) {     
               combo_stop(AIM_ABUSE);                 
           }                                             
       }//-----------------------------------------------
 
     } 
 
     /////////////////////////////////////////////////////////////////////////////////
     //Drop Shot
       if(get_val(ADS_BTN)){ 
          if(event_press(CROUCH_BTN)) {
              AutoDrop_onoff = !AutoDrop_onoff;   
              rumble_A_if_true(AutoDrop_onoff);
        }
        set_val(CROUCH_BTN, 0);
    }
 
    if (AutoDrop_onoff) {                               
        if (get_val(ADS_BTN) && get_val(FIRE_BTN) ) { 
            combo_run(DROP_SHOT);                   
        }                                           
    }     
 
    /////////////////////////////////////////////////////////////////////////////////
    //Trick Shot
      if(event_press(RIGHT_BTN)) {
           Trickshot_on = !Trickshot_on; 
           combo_run(Trickshot_on);
           rumble_A_if_true(Trickshot_on);
           }
 
    /////////////////////////////////////////////////////////////////////////////////
    // Anti Recoil                                   
     if (!ONLY_WITH_SCOPE || get_val(7)) {
        combo_run(AntiRecoil);                                     
        }                                               
    }                                                           
 
//  MAIN BLOCK END   
//--------------------------------------------------------------------------------------
 
//--------------------------------------------------------------------------------------
// COMBO BLOCK                                                                   
 
combo AIM_ABUSE { //
    set_val(ADS_BTN, 100);   
    wait(aimabuse_hold);               
    set_val(ADS_BTN, 0);     
    wait(aimabuse_rest);                 
} //end                                             
combo Auto_Aimm {         
    set_val(10, shake * -1); //1 
    wait(20)               
    set_val(9,  shake); //1 
    wait(20)             
    set_val(10, shake); //1 
    wait(20)               
    set_val(9,  shake * -1); //1 
    wait(20)               
} //end       
combo DROP_SHOT {           
    wait(aimabuse_hold);               
    set_val(CROUCH_BTN, 100);   
    wait(aimabuse_rest);               
    wait(70); // how long to wait until next drop
} //end     
combo Trickshot_on {
    set_val(17,100);
    wait(20);
    set_val(17, 0);
    wait(20);
    set_val(17,100);
    wait(20);
    set_val(17,100);
    wait(45);
} //end
combo VIBRATE {     
    set_rumble(rumble_type, 100);     
    wait(300);                         
    reset_rumble();
} //end 
combo AntiRecoil { // This combo must be the last one!
    if (get_val(7)) {
        anti_recoil = get_val(10) + ANTI_RECOIL;
        if (anti_recoil > 100) anti_recoil = 100;
        set_val(10, anti_recoil);
        anti_recoil_left = get_val(9) - ANTI_RECOIL_LEFT;
        if (anti_recoil_left > 100) anti_recoil_left = 100;
        set_val(9, anti_recoil_left);
        anti_recoil_right = get_val(9) + ANTI_RECOIL_RIGHT;
        if (anti_recoil_right > 100) anti_recoil_right = 100;
        set_val(9, anti_recoil_right);
        }
} //end   
 
//----Functions
function rumble_A_if_true(var) {       
    if (var) rumble_type = RUMBLE_A;   
    else rumble_type = RUMBLE_B;       
    combo_run(VIBRATE);             
} //end       
 
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));                   
} //end
User avatar
bald buff guy
Private First Class
Private First Class
 
Posts: 2
Joined: Mon Nov 26, 2018 7:08 pm

Re: Converting the best device script to Titan HELP

Postby J2Kbr » Sun Dec 02, 2018 9:03 am

Does you need this script converted to Titan One or Titan Two? I ask because you mentioned Titan Two in your message, however this sub-forum is Titan One related. Thanks.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 41 guests