Can someone make this work with T2 Thanks alot

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

Can someone make this work with T2 Thanks alot

Postby AFCA_FakSke410 » Fri Dec 14, 2018 5:51 pm

Ive got a few errors can someone help me please and make it working
Code: Select all
#pragma METAINFO("<VERSION 2.6", 1, 0, "")
#include <titanone.gph>
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------CONFIG & SETUP SECTION-------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//SSCAim Abuse - L2/LT + Y/Triangle to Activate (Secondary Values)                                                 Alternate Aim Abuse Values - Toggle on/off
//Dropshot - LT/L2 + A/X to Activate                                                                             Rapidly Crouch/Uncrouch while ADS and Firing Toggle on/off
//PUMP SMG - L2/LT + Left to Activate                                                                              Shot a Single shot then goes to the the next right slot and fires weapon
//100% Accuracy - L2/LT & R1/RB to Fire - Always Active                                                             Fires a single shot with 100% Accuracy
//TFUE Ghost Peek - L2/LT & L1/LB to Fire - Always Active                                                         Use from crouch position will uncrouch fire then quickly crouch again
//Incremental Aim Assist - Always Active                                                                         Will Increase Shake Gradually The More RS/R3 is pushed
//Insta Edit - Always Active                                                                                     Will Auto Confirm Edit after relasing RT/R2, will also auto reset build by pressing RS/R3 Super Mega Awesomeness!!!
//--Rapidfire - LT/L2 + Right                                                                                     Continually Fires Weapon
//Platform Aim Assist Deadzone Config - Set Platform to the one you use. This will set the deadzone cutoff for aim assist to your platform
//Reset All Mods - LT/L2 + DOWN                                                                                     Turn off all mods / Reset to script default
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--Controls
    define VIEW  =  1;
    define MENU  =  2;
    define RB    =  3;
    define RT    =  4;
    define RS    =  5;
    define LB    =  6;
    define LT    =  7;
    define LS    =  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 Y     = 17;
    define B     = 18;
    define A     = 19;
    define X     = 20;
 
//Platform Aim Assist Deadzone Config - Set Platform to the one you use
int platform = ps4;
define pc   = 26;        //Use if playing on PC with a controller
define xbox = 21;        //Use if playing on Xbox
define ps4  = 20;        //Use if playing on PS4.
 
//TFUE Wall - A/X + LS/L3 Then Tap RT/R2
int tfuewall = FALSE;
 
//TFUE Ghost Peek - L2/LT & L1/LB
int ghostpeek = TRUE;
int gpreset = 111;
 
//RUMBLE
int rumble_type = RUMBLE_A;
 
//100% Accuracy - L2/LT & R1/RB
int PerfectAccuracy  = TRUE;
 
//PUMP SMG - L2/LT + LEFT
int PUMP_SMG = FALSE;
 
//JItter
int tap; //ADVANCED JITTER
int R2_block; //ADVANCED JITTER
 
//--Rapidfire - LT/L2 + Right
int RapidFire      = FALSE;
 
//--Dropshot - LT/L2 + A/X
int DropShot       = FALSE;
int dsdown = 34;     // Time you are down
int dsup   = 136;    // Time you are up
 
//Incremental Aim Assist - RB + LB
int STICKY__AIM    = TRUE;                                                                           
int aa_p=20;
int aa_n=-20;
int aa_delay=20;
int release=25;
 
//Aim Assist - Default/Starting
int AimAssist = TRUE;
int aav  = 20;// AIM ASSIST VALUES
int delay  = 17;
 
//Other Aim Assist - Pump/SMG Values
int oAimAssist = FALSE;
int oaav  = 26;// AIM ASSIST VALUES
int odelay  = 10;
 
//Aim Abuse - Default/Staring Values
int AimAbuse = TRUE;
int AimAbuse_HOLD = 284; //How long you HOLD ADS Button
int AimAbuse_RELEASE = 19;
 
//Aim Abuse Pump/SMG Values
int AimAbusePump = FALSE;
int AimAbuse_HOLD_Pump = 20; //How long you HOLD ADS Button
int AimAbuse_RELEASE_Pump = 1;//How long you release ADS Button
 
//SSCAim Abuse - L2/LT + Y/Triangle
int SSCAimAbuse = FALSE;
int SSCAimAbuse_HOLD = 160; //How long you HOLD ADS Button
int SSCAimAbuse_RELEASE = 22;//How long you release ADS Button
 
//Insta Edit
int EDIT_BUTTON =     /**/LEFT/**/;     //Insta edit will allow you to confirm the edit quickly. Make sue the is set to your EDIT BUTTON
int EDIT_BUTTON_HOLD =  /**/FALSE/**///Does your edit button has a hold delay? True means Yes -- False mean No
int HOLD_TIME =     /**/220/**/// Type the hold time which is shown in Fortnite settings, in hundereds because device already know its in MS. |0.10 = 100| |0.25 = 250|
int RESET_EDIT_BUTTON = /**/RS/**///Insta Reset will allow you to confirm the edit reset quickly
int CONFIRM_BUTTON = LEFT; //Make sure this is set to your CONFIRM BUTTON
 
//Restore Last Mod
int    Restore_LastMod = A;
 
//Reset Script / All Mods Off
int rreset;
 
//Stuff
int edit = FALSE;
int aimMod = TRUE;
int wasActive;
int doubleClick = FALSE;
 
//LED Stuff
define Blue = 1;   
define Red = 2;   
define Green = 3;   
define Pink = 4;   
define SkyBlue = 5;   
define Yellow = 6;   
define White = 7;
define Bright_Blue = 8;
data ( 1,2,0,0,0,0,2,0,0,0,0,2,0,0,0,0,2,2,0,2,0,0,2,2,0,2,2,2,2,3,0,0,0);   
int LED;
 
//--------------------------------------------------------------------------------------------------------MAIN SECTION----------------------------------------------------------------------------------------------------//
 
main {
 
//TFUE Wall
if (get_val(LT) && event_press(X)) {
  rumble_A_if_true(tfuewall);
  RapidFire = FALSE;
  DropShot = FALSE;
  PUMP_SMG = FALSE;
  tfuewall =! tfuewall;
  }
  if (tfuewall) {
    if (get_val(RT)) {
         combo_run(tfuewall);
         } 
    if (get_val(LB) || (get_val(RB) || get_val(Y))) {
         tfuewall = FALSE;
         }
}
 
    //Restore Last Mod Stuff   
        if (PUMP_SMG) {
            wasActive = 1;
        }
        if (RapidFire) {
            aimMod = TRUE;
            wasActive = 2;
        }
        if (DropShot) {
            wasActive = 3;
        }
        if (rreset) {
            wasActive = 4;
        }
        if (SSCAimAbuse) {
            wasActive = 5;
        }
        if (tfuewall) {
            wasActive = 6;
        }
        if(get_double(Restore_LastMod,Restore_LastMod))
    {
    if(wasActive == 1)
    {
    PUMP_SMG = TRUE;
    oAimAssist = TRUE;
    AimAbusePump = TRUE;
    }
    if(wasActive == 2)
    {
    RapidFire = TRUE;
    }
    if(wasActive == 3)
    {
    DropShot = TRUE;
    }
    if(wasActive == 4)
    {
    rreset = TRUE;
    }
    if(wasActive == 5)
    {
    SSCAimAbuse = TRUE;
    }
    if(wasActive == 6)
    {
    tfuewall = TRUE;
    }
    }
 
//Insta Edit
if(EDIT_BUTTON_HOLD)
{
    if(get_val(EDIT_BUTTON) && get_ptime(EDIT_BUTTON) > HOLD_TIME)
    {
    edit = TRUE;
    }
}
else if(!EDIT_BUTTON_HOLD)
{
    if(get_val(EDIT_BUTTON))
    {
    edit = TRUE;
    }
}
if (edit == TRUE) {
    if (get_val(B)) {
        aimMod = TRUE;
    }
    if (event_release(RT) || get_val(RESET_EDIT_BUTTON) || get_val(Y)) {
        set_val(LT, 0);
        set_val(CONFIRM_BUTTON, 100);
        edit = FALSE;
    }
}
if (event_press(B))
{
    aimMod = !aimMod;
    edit = FALSE;
}   
if (get_val(Y))
{
    aimMod = TRUE;
}
 
//TFUE Ghost Peek
if (ghostpeek) {
if (get_val(7)) {if (get_val(6)) {
combo_run(ghostpeek_Hold); }
set_val(6, 0);
}}
 
//LED Stuff
if (DropShot) LEDC(Green);          //Dropshot
if (RapidFire) LEDC(Blue);          //RapidFire
if (PUMP_SMG) LEDC(Pink);           //PUMP_SMG
if (SSCAimAbuse) LEDC(Bright_Blue);    //AimAbuse
// ON-OFF SETTINGS:   
 if (get_val(LT)) {
   if (event_press(LEFT)) {
      PUMP_SMG = !PUMP_SMG;
      tap = FALSE;
      rumble_A_if_true(PUMP_SMG);
      pumpsmgfunc(PUMP_SMG);
     }
      set_val(LS, 0);
    }
 
//100% ACCURACY
if (get_val(LT) && get_val(RB)) {
  PerfectAccuracy = !PerfectAccuracy
  combo_run(PerfectAccuracy);
set_val(RB, 0);
      } else {
  combo_stop(PerfectAccuracy);
}
 
//PUMP SMG
if (PUMP_SMG) {
   if (R2_block) {
      set_val(LT, 0);
      set_val(RT, 0);
     }
 //------------------------------------------------
     if (get_val(LT) && event_press(RT)) {
       if (!tap) {
       tap = TRUE; //LED COLOR BLUE
       combo_run(Double_Tact_R1); //TAP R1
       set_val(RT, 0);
       }
      }
       if (event_press(LB)) {
         tap = FALSE;
     }
  }   
 
//--Rapidfire
if(get_val(LT) && event_press(RIGHT)){
   rumble_A_if_true(RapidFire);
   RapidFire =! RapidFire;
   }
   if(RapidFire){
     if(get_val(RT)){
        combo_run(Rapidfire);                                         
       }
     } 
 
//--Dropshot
if(get_val(LT) && event_press(A)){
   rumble_A_if_true(DropShot);
   DropShot =! DropShot;
   }
   if(DropShot){
      if(get_val(LT)&&get_val(RT)){combo_run(DropShot);}
     if (event_press(18)){ DropShot = FALSE; }
     }
//Reset Script
if(get_val(LT) && event_press(DOWN)){
   rumble_A_if_true(rreset);
   rreset =! rreset;
   funcreset(rreset)
   }       
 
//Incremental Aim Assist
if(STICKY__AIM){
    if(get_val(LT) > 98 && (abs(get_val(9)) > platform ^^ abs(get_val(10)) > platform)) combo_run(AA_XY);
    else combo_stop(AA_XY);
}
//AIM ASSIST
 
if (AimAssist) {
if (get_val(7)> 98){ combo_run(AimAssist);}
}
if (abs(get_val(9)) > platform || abs(get_val(10)) > platform){
combo_stop(AimAssist);}
 
//oAimAssist
if (oAimAssist) {
if (get_val(7) > 98) { combo_run(oAimAssist);}
}
if (abs(get_val(9)) > platform || abs(get_val(10)) > platform){
combo_stop(oAimAssist);}
 
//SSCAIM ABUSE
if(get_val(LT) && event_press(Y)){
   rumble_A_if_true(SSCAimAbuse);
   SSCAimAbuse =! SSCAimAbuse;
   funcSSCAB(SSCAimAbuse)
   }
if(SSCAimAbuse){
   if(get_val(LT)> 95 && get_val(RT)){
      combo_run(SSCAimAbuse);}
   if(event_release(LT)){ combo_stop(SSCAimAbuse);
   }
}
//AIM ABUSE
 
if(AimAbuse){
   if(get_val(LT)> 95){
      combo_run(AimAbuse);}
   if(event_release(LT)){ combo_stop(AimAbuse);
}
}
//AIM ABUSE for PUMP/SMG
 
if(AimAbusePump){
   if(get_val(LT)> 95){
      combo_run(AimAbusePump);}
   if(event_release(LT)){ combo_stop(AimAbusePump);
}
}
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------COMBO SECTION-----------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
combo tfuewall {
    block(RT, 500);
    combo_run(AimAbuse);
    wait((AimAbuse_HOLD + AimAbuse_RELEASE) / 2);
    set_val(RT, 100);
    wait(100)
    set_val(RT, 0);
    set_val(B, 100);
    wait(20);
    set_val(RT, 100);
    wait(200);
    set_val(B, 100);
    wait(50);
}
combo TAP
    {
    doubleClick = TRUE;
    wait(400);
    doubleClick = FALSE;
    }
combo AA_XY {
    set_val(10,xy_val(10,aa_p));
    set_val(12,xy_val(12,aa_p));
    wait(aa_delay);
    set_val(9,xy_val(9,aa_p));
    set_val(11,xy_val(11,aa_p));
    wait(aa_delay);
    set_val(10,xy_val(10,aa_n));
    set_val(12,xy_val(12,aa_n));
    wait(aa_delay);
    set_val(9,xy_val(9,aa_n));
    set_val(11,xy_val(11,aa_n));
    wait(aa_delay);
}
combo ghostpeek_Hold {
set_val(5, 100);
wait(15); wait(15);
set_val(4, 100);
wait(15); wait(10);
set_val(5, 100);
wait(15); wait(gpreset);
}
combo PerfectAccuracy {
set_val(RT,100);
wait(100);
wait(250);
set_val(RT,100);
}
combo Rapidfire {
set_val(RT, 100);
wait(120);
set_val(RT, 0);
wait(30);
}
combo Double_Tact_R1 { //ADVANCED JITTER
    R2_block = TRUE;
    set_val(4, 100);
    wait(15);
    wait(5);
    set_val(7, 100);
    set_val(8, 100);
    set_val(3, 100);
    wait(15);
    R2_block = FALSE;
} //end
combo VIBRATE {
    set_rumble(rumble_type, 100);
    wait(300);
    reset_rumble();
}
//-----------------
function rumble_A_if_true(var) {
    if (var) rumble_type = RUMBLE_A;
    else rumble_type = RUMBLE_B;
    combo_run(VIBRATE);
}
//--------------------
combo DropShot{
set_val(RS,100);
wait(dsdown);
wait(dsup);
set_val(RS,100);
}
combo AimAssist {
set_val(10, (aav)); wait(delay)
set_val(9, (aav)); wait(delay)
set_val(10, aav * -1); wait(delay)
set_val(9, aav * -1); wait(delay)}
combo oAimAssist {
set_val(9, (oaav)); wait(odelay);
set_val(9, oaav * -1); wait(odelay); }
combo AimAbuse {
set_val(LT, 100);
wait(AimAbuse_HOLD);
set_val(LT, 0);
wait(AimAbuse_RELEASE);
}
combo AimAbusePump {
set_val(LT, 100);
wait(AimAbuse_HOLD_Pump);
set_val(LT, 0);
wait(AimAbuse_RELEASE_Pump);
}
combo SSCAimAbuse {
set_val(7, 100); wait(SSCAimAbuse_HOLD);
set_val(7, 0);   wait(SSCAimAbuse_RELEASE);
set_val(7, 100); wait(15);
}
function pumpsmgfunc(ps) {
 if (ps) {
    AimAbuse = FALSE;
    AimAbusePump = TRUE;
    SSCAimAbuse = FALSE;
    AimAssist = FALSE;
    oAimAssist = TRUE;
    } else {
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    SSCAimAbuse = FALSE;
    AimAssist = TRUE;
    oAimAssist = FALSE;
    }
   }
function funcSSCAB(sscab) {
 if (sscab) {
    SSCAimAbuse = TRUE;
    AimAbuse = FALSE;
    AimAbusePump = FALSE
    } else {
    SSCAimAbuse = FALSE;
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    }
   }
function funcreset(resett) {
 if (resett) {
    AimAssist = TRUE;
    oAimAssist = FALSE;
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    SSCAimAbuse = FALSE;
    PUMP_SMG = FALSE;
    RapidFire = FALSE;
    DropShot = FALSE;
    STICKY__AIM    = TRUE
    } else {
    AimAssist = TRUE;
    oAimAssist = FALSE;
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    SSCAimAbuse = FALSE;
    PUMP_SMG = FALSE;
    RapidFire = FALSE;
    DropShot = FALSE;
    STICKY__AIM    = TRUE
    }
   }
function LEDC(Colour) { LED = (Colour * 4) - 3;
set_led(LED_1, dbyte(LED));     set_led(LED_2, dbyte(LED + 1));
set_led(LED_3, dbyte(LED + 2)); set_led(LED_4, dbyte(LED + 3)); }
function xy_val(f_axis,f_val) {
    if(abs(get_val(f_axis)) < release)
    return f_val;
    return get_val(f_axis);
}
function get_double(B1,B2)
    {
    if(get_val(B1) && event_press(B2) && !doubleClick) combo_run(TAP);
    if(get_val(B1) && event_press(B2) &&  doubleClick) return TRUE;
    return FALSE;
    }
 
User avatar
AFCA_FakSke410
First Sergeant
First Sergeant
 
Posts: 60
Joined: Tue Jan 16, 2018 11:15 am

Re: Can someone make this work with T2 Thanks alot

Postby J2Kbr » Sat Dec 15, 2018 6:16 am

Errors fixed:
Code: Select all
#pragma METAINFO("<VERSION 2.6", 1, 0, "")
#include <titanone.gph>
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------CONFIG & SETUP SECTION-------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//SSCAim Abuse - L2/LT + Y/Triangle to Activate (Secondary Values)                                                 Alternate Aim Abuse Values - Toggle on/off
//Dropshot - LT/L2 + A/X to Activate                                                                             Rapidly Crouch/Uncrouch while ADS and Firing Toggle on/off
//PUMP SMG - L2/LT + Left to Activate                                                                              Shot a Single shot then goes to the the next right slot and fires weapon
//100% Accuracy - L2/LT & R1/RB to Fire - Always Active                                                             Fires a single shot with 100% Accuracy
//TFUE Ghost Peek - L2/LT & L1/LB to Fire - Always Active                                                         Use from crouch position will uncrouch fire then quickly crouch again
//Incremental Aim Assist - Always Active                                                                         Will Increase Shake Gradually The More RS/R3 is pushed
//Insta Edit - Always Active                                                                                     Will Auto Confirm Edit after relasing RT/R2, will also auto reset build by pressing RS/R3 Super Mega Awesomeness!!!
//--Rapidfire - LT/L2 + Right                                                                                     Continually Fires Weapon
//Platform Aim Assist Deadzone Config - Set Platform to the one you use. This will set the deadzone cutoff for aim assist to your platform
//Reset All Mods - LT/L2 + DOWN                                                                                     Turn off all mods / Reset to script default
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--Controls
    define VIEW  = XB1_VIEW;
    define MENU  = XB1_MENU;
    define RB    = XB1_RB;
    define RT    = XB1_RT;
    define RS    = XB1_RS;
    define LB    = XB1_LB;
    define LT    = XB1_LT;
    define LS    = XB1_LS;
    define RX    = XB1_RX;
    define RY    = XB1_RY;
    define LX    = XB1_LX;
    define LY    = XB1_LY;
    define UP    = XB1_UP;
    define DOWN  = XB1_DOWN;
    define LEFT  = XB1_LEFT;
    define RIGHT = XB1_RIGHT;
    define Y     = XB1_Y;
    define B     = XB1_B;
    define A     = XB1_A;
    define X     = XB1_X;
 
//Platform Aim Assist Deadzone Config - Set Platform to the one you use
define pc   = 26;        //Use if playing on PC with a controller
define xbox = 21;        //Use if playing on Xbox
define ps4  = 20;        //Use if playing on PS4.
int platform = ps4;
 
//TFUE Wall - A/X + LS/L3 Then Tap RT/R2
int tfuewall = FALSE;
 
//TFUE Ghost Peek - L2/LT & L1/LB
int ghostpeek = TRUE;
int gpreset = 111;
 
//RUMBLE
int rumble_type = RUMBLE_A;
 
//100% Accuracy - L2/LT & R1/RB
int PerfectAccuracy  = TRUE;
 
//PUMP SMG - L2/LT + LEFT
int PUMP_SMG = FALSE;
 
//JItter
int tap; //ADVANCED JITTER
int R2_block; //ADVANCED JITTER
 
//--Rapidfire - LT/L2 + Right
int RapidFire      = FALSE;
 
//--Dropshot - LT/L2 + A/X
int DropShot       = FALSE;
int dsdown = 34;     // Time you are down
int dsup   = 136;    // Time you are up
 
//Incremental Aim Assist - RB + LB
int STICKY__AIM    = TRUE;                                                                           
int aa_p=20;
int aa_n=-20;
int aa_delay=20;
int release=25;
 
//Aim Assist - Default/Starting
int AimAssist = TRUE;
int aav  = 20;// AIM ASSIST VALUES
int delay  = 17;
 
//Other Aim Assist - Pump/SMG Values
int oAimAssist = FALSE;
int oaav  = 26;// AIM ASSIST VALUES
int odelay  = 10;
 
//Aim Abuse - Default/Staring Values
int AimAbuse = TRUE;
int AimAbuse_HOLD = 284; //How long you HOLD ADS Button
int AimAbuse_RELEASE = 19;
 
//Aim Abuse Pump/SMG Values
int AimAbusePump = FALSE;
int AimAbuse_HOLD_Pump = 20; //How long you HOLD ADS Button
int AimAbuse_RELEASE_Pump = 1;//How long you release ADS Button
 
//SSCAim Abuse - L2/LT + Y/Triangle
int SSCAimAbuse = FALSE;
int SSCAimAbuse_HOLD = 160; //How long you HOLD ADS Button
int SSCAimAbuse_RELEASE = 22;//How long you release ADS Button
 
//Insta Edit
int EDIT_BUTTON =     /**/LEFT/**/;     //Insta edit will allow you to confirm the edit quickly. Make sue the is set to your EDIT BUTTON
int EDIT_BUTTON_HOLD =  /**/FALSE/**/;//Does your edit button has a hold delay? True means Yes -- False mean No
int HOLD_TIME =     /**/220/**/// Type the hold time which is shown in Fortnite settings, in hundereds because device already know its in MS. |0.10 = 100| |0.25 = 250|
int RESET_EDIT_BUTTON = /**/RS/**/;//Insta Reset will allow you to confirm the edit reset quickly
int CONFIRM_BUTTON = LEFT; //Make sure this is set to your CONFIRM BUTTON
 
//Restore Last Mod
int    Restore_LastMod = A;
 
//Reset Script / All Mods Off
int rreset;
 
//Stuff
int edit = FALSE;
int aimMod = TRUE;
int wasActive;
int doubleClick = FALSE;
 
//LED Stuff
define Blue = 1;   
define Red = 2;   
define Green = 3;   
define Pink = 4;   
define SkyBlue = 5;   
define Yellow = 6;   
define White = 7;
define Bright_Blue = 8;
data ( 1,2,0,0,0,0,2,0,0,0,0,2,0,0,0,0,2,2,0,2,0,0,2,2,0,2,2,2,2,3,0,0,0);   
int LED;
 
//--------------------------------------------------------------------------------------------------------MAIN SECTION----------------------------------------------------------------------------------------------------//
 
main {
 
//TFUE Wall
if (get_val(LT) && event_press(X)) {
  rumble_A_if_true(tfuewall);
  RapidFire = FALSE;
  DropShot = FALSE;
  PUMP_SMG = FALSE;
  tfuewall =! tfuewall;
  }
  if (tfuewall) {
    if (get_val(RT)) {
         combo_run(tfuewall_Combo);
         } 
    if (get_val(LB) || (get_val(RB) || get_val(Y))) {
         tfuewall = FALSE;
         }
}
 
    //Restore Last Mod Stuff   
        if (PUMP_SMG) {
            wasActive = 1;
        }
        if (RapidFire) {
            aimMod = TRUE;
            wasActive = 2;
        }
        if (DropShot) {
            wasActive = 3;
        }
        if (rreset) {
            wasActive = 4;
        }
        if (SSCAimAbuse) {
            wasActive = 5;
        }
        if (tfuewall) {
            wasActive = 6;
        }
        if(get_double(Restore_LastMod,Restore_LastMod))
    {
    if(wasActive == 1)
    {
    PUMP_SMG = TRUE;
    oAimAssist = TRUE;
    AimAbusePump = TRUE;
    }
    if(wasActive == 2)
    {
    RapidFire = TRUE;
    }
    if(wasActive == 3)
    {
    DropShot = TRUE;
    }
    if(wasActive == 4)
    {
    rreset = TRUE;
    }
    if(wasActive == 5)
    {
    SSCAimAbuse = TRUE;
    }
    if(wasActive == 6)
    {
    tfuewall = TRUE;
    }
    }
 
//Insta Edit
if(EDIT_BUTTON_HOLD)
{
    if(get_val(EDIT_BUTTON) && get_ptime(EDIT_BUTTON) > HOLD_TIME)
    {
    edit = TRUE;
    }
}
else if(!EDIT_BUTTON_HOLD)
{
    if(get_val(EDIT_BUTTON))
    {
    edit = TRUE;
    }
}
if (edit == TRUE) {
    if (get_val(B)) {
        aimMod = TRUE;
    }
    if (event_release(RT) || get_val(RESET_EDIT_BUTTON) || get_val(Y)) {
        set_val(LT, 0);
        set_val(CONFIRM_BUTTON, 100);
        edit = FALSE;
    }
}
if (event_press(B))
{
    aimMod = !aimMod;
    edit = FALSE;
}   
if (get_val(Y))
{
    aimMod = TRUE;
}
 
//TFUE Ghost Peek
if (ghostpeek) {
if (get_val(7)) {if (get_val(6)) {
combo_run(ghostpeek_Hold_Combo); }
set_val(6, 0);
}}
 
//LED Stuff
if (DropShot) LEDC(Green);          //Dropshot
if (RapidFire) LEDC(Blue);          //RapidFire
if (PUMP_SMG) LEDC(Pink);           //PUMP_SMG
if (SSCAimAbuse) LEDC(Bright_Blue);    //AimAbuse
// ON-OFF SETTINGS:   
 if (get_val(LT)) {
   if (event_press(LEFT)) {
      PUMP_SMG = !PUMP_SMG;
      tap = FALSE;
      rumble_A_if_true(PUMP_SMG);
      pumpsmgfunc(PUMP_SMG);
     }
      set_val(LS, 0);
    }
 
//100% ACCURACY
if (get_val(LT) && get_val(RB)) {
  PerfectAccuracy = !PerfectAccuracy;
  combo_run(PerfectAccuracy_Combo);
set_val(RB, 0);
      } else {
  combo_stop(PerfectAccuracy_Combo);
}
 
//PUMP SMG
if (PUMP_SMG) {
   if (R2_block) {
      set_val(LT, 0);
      set_val(RT, 0);
     }
 //------------------------------------------------
     if (get_val(LT) && event_press(RT)) {
       if (!tap) {
       tap = TRUE; //LED COLOR BLUE
       combo_run(Double_Tact_R1_Combo); //TAP R1
       set_val(RT, 0);
       }
      }
       if (event_press(LB)) {
         tap = FALSE;
     }
  }   
 
//--Rapidfire
if(get_val(LT) && event_press(RIGHT)){
   rumble_A_if_true(RapidFire);
   RapidFire =! RapidFire;
   }
   if(RapidFire){
     if(get_val(RT)){
        combo_run(Rapidfire_Combo);                                         
       }
     } 
 
//--Dropshot
if(get_val(LT) && event_press(A)){
   rumble_A_if_true(DropShot);
   DropShot =! DropShot;
   }
   if(DropShot){
      if(get_val(LT)&&get_val(RT)){combo_run(DropShot_Combo);}
     if (event_press(18)){ DropShot = FALSE; }
     }
//Reset Script
if(get_val(LT) && event_press(DOWN)){
   rumble_A_if_true(rreset);
   rreset =! rreset;
   funcreset(rreset);
   }       
 
//Incremental Aim Assist
if(STICKY__AIM){
    if(get_val(LT) > 98 && (abs(get_val(9)) > platform ^^ abs(get_val(10)) > platform)) combo_run(AA_XY_Combo);
    else combo_stop(AA_XY_Combo);
}
//AIM ASSIST
 
if (AimAssist) {
if (get_val(7)> 98){ combo_run(AimAssist_Combo);}
}
if (abs(get_val(9)) > platform || abs(get_val(10)) > platform){
combo_stop(AimAssist_Combo);}
 
//oAimAssist
if (oAimAssist) {
if (get_val(7) > 98) { combo_run(oAimAssist_Combo);}
}
if (abs(get_val(9)) > platform || abs(get_val(10)) > platform){
combo_stop(oAimAssist_Combo);}
 
//SSCAIM ABUSE
if(get_val(LT) && event_press(Y)){
   rumble_A_if_true(SSCAimAbuse);
   SSCAimAbuse =! SSCAimAbuse;
   funcSSCAB(SSCAimAbuse);
   }
if(SSCAimAbuse){
   if(get_val(LT)> 95 && get_val(RT)){
      combo_run(SSCAimAbuse_Combo);}
   if(event_release(LT)){ combo_stop(SSCAimAbuse_Combo);
   }
}
//AIM ABUSE
 
if(AimAbuse){
   if(get_val(LT)> 95){
      combo_run(AimAbuse_Combo);}
   if(event_release(LT)){ combo_stop(AimAbuse_Combo);
}
}
//AIM ABUSE for PUMP/SMG
 
if(AimAbusePump){
   if(get_val(LT)> 95){
      combo_run(AimAbusePump_Combo);}
   if(event_release(LT)){ combo_stop(AimAbusePump_Combo);
}
}
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------COMBO SECTION-----------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
combo tfuewall_Combo {
    block(RT, 500);
    combo_run(AimAbuse_Combo);
    wait((AimAbuse_HOLD + AimAbuse_RELEASE) / 2);
    set_val(RT, 100);
    wait(100);
    set_val(RT, 0);
    set_val(B, 100);
    wait(20);
    set_val(RT, 100);
    wait(200);
    set_val(B, 100);
    wait(50);
}
combo TAP_Combo
    {
    doubleClick = TRUE;
    wait(400);
    doubleClick = FALSE;
    }
combo AA_XY_Combo {
    set_val(10,xy_val(10,aa_p));
    set_val(12,xy_val(12,aa_p));
    wait(aa_delay);
    set_val(9,xy_val(9,aa_p));
    set_val(11,xy_val(11,aa_p));
    wait(aa_delay);
    set_val(10,xy_val(10,aa_n));
    set_val(12,xy_val(12,aa_n));
    wait(aa_delay);
    set_val(9,xy_val(9,aa_n));
    set_val(11,xy_val(11,aa_n));
    wait(aa_delay);
}
combo ghostpeek_Hold_Combo {
set_val(5, 100);
wait(15); wait(15);
set_val(4, 100);
wait(15); wait(10);
set_val(5, 100);
wait(15); wait(gpreset);
}
combo PerfectAccuracy_Combo {
set_val(RT,100);
wait(100);
wait(250);
set_val(RT,100);
}
combo Rapidfire_Combo {
set_val(RT, 100);
wait(120);
set_val(RT, 0);
wait(30);
}
combo Double_Tact_R1_Combo { //ADVANCED JITTER
    R2_block = TRUE;
    set_val(4, 100);
    wait(15);
    wait(5);
    set_val(7, 100);
    set_val(8, 100);
    set_val(3, 100);
    wait(15);
    R2_block = FALSE;
} //end
combo VIBRATE_Combo {
    set_rumble(rumble_type, 100);
    wait(300);
    reset_rumble();
}
//-----------------
function rumble_A_if_true(var) {
    if (var) rumble_type = RUMBLE_A;
    else rumble_type = RUMBLE_B;
    combo_run(VIBRATE_Combo);
}
//--------------------
combo DropShot_Combo{
set_val(RS,100);
wait(dsdown);
wait(dsup);
set_val(RS,100);
}
combo AimAssist_Combo {
set_val(10, (aav)); wait(delay);
set_val(9, (aav)); wait(delay);
set_val(10, aav * -1); wait(delay);
set_val(9, aav * -1); wait(delay);}
combo oAimAssist_Combo {
set_val(9, (oaav)); wait(odelay);
set_val(9, oaav * -1); wait(odelay); }
combo AimAbuse_Combo {
set_val(LT, 100);
wait(AimAbuse_HOLD);
set_val(LT, 0);
wait(AimAbuse_RELEASE);
}
combo AimAbusePump_Combo {
set_val(LT, 100);
wait(AimAbuse_HOLD_Pump);
set_val(LT, 0);
wait(AimAbuse_RELEASE_Pump);
}
combo SSCAimAbuse_Combo {
set_val(7, 100); wait(SSCAimAbuse_HOLD);
set_val(7, 0);   wait(SSCAimAbuse_RELEASE);
set_val(7, 100); wait(15);
}
function pumpsmgfunc(ps) {
 if (ps) {
    AimAbuse = FALSE;
    AimAbusePump = TRUE;
    SSCAimAbuse = FALSE;
    AimAssist = FALSE;
    oAimAssist = TRUE;
    } else {
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    SSCAimAbuse = FALSE;
    AimAssist = TRUE;
    oAimAssist = FALSE;
    }
   }
function funcSSCAB(sscab) {
 if (sscab) {
    SSCAimAbuse = TRUE;
    AimAbuse = FALSE;
    AimAbusePump = FALSE
    } else {
    SSCAimAbuse = FALSE;
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    }
   }
function funcreset(resett) {
 if (resett) {
    AimAssist = TRUE;
    oAimAssist = FALSE;
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    SSCAimAbuse = FALSE;
    PUMP_SMG = FALSE;
    RapidFire = FALSE;
    DropShot = FALSE;
    STICKY__AIM    = TRUE
    } else {
    AimAssist = TRUE;
    oAimAssist = FALSE;
    AimAbuse = TRUE;
    AimAbusePump = FALSE;
    SSCAimAbuse = FALSE;
    PUMP_SMG = FALSE;
    RapidFire = FALSE;
    DropShot = FALSE;
    STICKY__AIM    = TRUE
    }
   }
function LEDC(Colour) { LED = (Colour * 4) - 3;
set_led(LED_1, dbyte(LED));     set_led(LED_2, dbyte(LED + 1));
set_led(LED_3, dbyte(LED + 2)); set_led(LED_4, dbyte(LED + 3)); }
function xy_val(f_axis,f_val) {
    if(abs(get_val(f_axis)) < release)
    return f_val;
    return get_val(f_axis);
}
function get_double(B1,B2)
    {
    if(get_val(B1) && event_press(B2) && !doubleClick) combo_run(TAP_Combo);
    if(get_val(B1) && event_press(B2) &&  doubleClick) return TRUE;
    return FALSE;
    }
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Can someone make this work with T2 Thanks alot

Postby AFCA_FakSke410 » Sat Dec 15, 2018 5:26 pm

WHy isnt insta editing working ???
User avatar
AFCA_FakSke410
First Sergeant
First Sergeant
 
Posts: 60
Joined: Tue Jan 16, 2018 11:15 am

Re: Can someone make this work with T2 Thanks alot

Postby Scachi » Sat Dec 15, 2018 5:28 pm

You should ask the author of the script if you need support.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 31 guests