please can anyone make this work for titan 2

GPC2 script programming for Titan Two. Code examples, questions, requests.

please can anyone make this work for titan 2

Postby UFO » Sun Sep 16, 2018 4:32 pm

sorry i think i posted same help thread in titan one section

Code: Select all
//------------------------------------------------------------------------------
//  Version   : 1.0                                                         
//  Game      : Star Wars Battlefront 2015 EE-3 Blaster
//  Author    : 737                                                                                               
//------------------------------------------------------------------------------
define AR_Release = 100;      // change this value to set when antirecoil stops working (min: antirecoil value + 10)
//------------------------------------------------------------------------------ 
define RF_CONTROL           = TRUE;
int    RF_RPS               = 6;
//***************************************************
define CONTROLLER           = TRUE;
define MOUSE                = FALSE;
//***************************************************   
define RT                   = PS4_R2;
define LT                   = PS4_L2;
define LB                   = PS4_L1;
define RB                   = PS4_R1;
define LS                   = PS4_L3;
define RX                   = PS4_RX;                             
define RY                   = PS4_RY;
define LY                   = PS4_LY;
define A                    = PS4_CROSS;
define Y                    = PS4_TRIANGLE;
define X                    = PS4_SQUARE;
define OPTIONS              = PS4_OPTIONS;
define RIGHT                = PS4_RIGHT;
define LEFT                 = PS4_LEFT;
define UP                   = PS4_UP;
define DOWN                 = PS4_DOWN;
define fh                   = 500;
define h                    = 100;
define n                    =   0;
define hn                   =   1;
define hk                   =   2;
define k                    =  75:
define z                    =  20;
define a1                   = 150;
define a2                   =  40;
define delay                =  11;
int value                   =  20;
int stop1;
int stop2;
int hip_assist_onoff    = TRUE;
//------------------------------------------------------------------------------
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. 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                                                                   
);                                                                                     
 //------------------------------------------------------------------------------
// VARIABLES - int                                                                       
int recoil_onoff  = TRUE;
////////////////////////////////////////////////////////////////////////////////
int ANTI_RECOIL_HIP = 26//  change this value for vertical recoil                                                               
int ANTI_RECOIL_ADS = 35;
int ANTI_RECOIL_H =  0;                                                                 
int anti_recoil;                                                                         
int anti_recoil_H;                                                                       
int Col_ind;
///////////////////////////////////////////////////////////////////////////////
int FIRE_BTN      = PS4_R2;                                                                           
int ADS_BTN       = PS4_L2;   
//------------------------------------------------------------------------------
//MAIN BLOCK ROUTINES                                                             
main {                                               
    ////////////////////////////////////////////////
    // RAPIDFIRE
    if(get_val(FIRE_BTN)) {
        combo_run(Turbo_1);
    }
    /////////////////////////////////////////////////
    // ANTI RECOIL
    if(get_val(FIRE_BTN)) {
        if(get_val(ADS_BTN)) {
            combo_run(AntiRecoil_ADS);
        } else {
            combo_run(AntiRecoil_HIP);
        }
    }                                                               
    if(abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) {
        combo_stop (AntiRecoil_HIP);   
        combo_stop (AntiRecoil_ADS);   
    }
 
    if(CONTROLLER == TRUE && MOUSE == FALSE) {
       value   =  33;
       stop1   =  34;
       stop2   =  34;
    }
    if(MOUSE == TRUE && CONTROLLER == FALSE) {
       value   =  22;
       stop1   =  23;
       stop2   =  23;
    }
//HIP*AIM*ASSIST******************************************
 
        if(hip_assist_onoff) {
            if(!get_val(RT) && !get_val(XB1_LT)) {
                combo_run(HIP_ASSIST);
            }
            else {
                combo_stop(HIP_ASSIST);
            }
            if(abs(get_val(RX)) >= stop1 || abs(get_val(RY)) >= stop2) {
                combo_stop(HIP_ASSIST);
            }
 
        }       
// EASY ROll ********************************************
        if(get_val(PS4_R3)) {
        combo_run(EASY_ROLL);
        }
}
 //-------------------------------------------------------------------------------------------
//COMBO BLOCKS
combo EASY_ROLL {
    set_val(PS4_R3, 100);
    wait(40);
    set_val(PS4_R3, 0);
    wait(70);
    set_val(PS4_R3, 100);
    wait(90);
    set_val(PS4_R3, 0);
    wait(430);
    set_val(PS4_CROSS, 100);
    wait(80);
    set_val(PS4_CROSS, 0);
}
combo Turbo_1 {
    set_val(FIRE_BTN, 100);
    wait(60.5);
    set_val(FIRE_BTN, 0);
    wait(20.5);
    set_val(FIRE_BTN, 0);
 
} 
 
combo AntiRecoil_HIP {                                   
    if(recoil_onoff) {                               
        anti_recoil = get_val(10) + ANTI_RECOIL_HIP;       
        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);                     
    }                                               
}
 
combo AntiRecoil_ADS {                                   
    if(recoil_onoff) {                               
        anti_recoil = get_val(10) + ANTI_RECOIL_ADS;       
        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);                     
    }                                               
}
combo   HIP_ASSIST {
        set_val(RX, value - 10);
        wait(delay)
        set_val(RX, 0);
        wait(delay)                 
        set_val(RX, (value - 10) * -1);
        wait(delay)
} 
 // COLOR LED function                               
//--------------------------------------------------------------
function color_LED(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


if anyone can help me that be amazing thank you.
User avatar
UFO
Master Sergeant
Master Sergeant
 
Posts: 28
Joined: Fri Mar 09, 2018 4:59 am

Re: please can anyone make this work for titan 2

Postby J2Kbr » Mon Sep 17, 2018 3:11 pm

Replied your request in the Titan One script forum.
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 GPC2 Script Programming

Who is online

Users browsing this forum: Majestic-12 [Bot] and 101 guests