tried to fix couldnt

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

tried to fix couldnt

Postby Eman69 » Sat Jan 26, 2019 12:11 am

Code: Select all
 
////////Anti Recoil/////////////////////////////////////////////////////////
int AntiRecoil     = FALSE;                                             ////
int antirecoil;                                                          ////
int antirecoilA      = 20;                                              ////
int antirecoilB      = 28;                                              ////
int delayA           = 12;                                              ////                             
                                                                        ////
////////Aim Assist Always on////////////////////////////////////////////////
int AimAssist = TRUE;                                                   ////
int aav  =15;// AIM ASSIST VALUES                                      ////
int aav2 = -19;//AIM ASSIST VALUES                                      ////
                                                                         ////
int value  = 21;                                                        ////
int value2 =-21;                                                        ////
int delay  =17;                                                         ////
                                                                        ////
////////Aim Abuse///////////////////////////////////////////////////////////
int  AimAbuse = TRUE;                                                   ////
int AimAbuse_HOLD =190; //How long you HOLD ADS Button                  ////
int AimAbuse_RELEASE = 20;//How long you release ADS Button             ////
                                                                        ////
/////100% Accuracy//////////////////////////////////////////////////////////
int PerfectAccuracy  = TRUE;                                            ////
                                                                        ////                                                                       
/////////Dropshot///////////////////////////////////////////////////////////
int Dropshot       = FALSE;                                                ////             
int DefenseMode=FALSE;                                                  ////
int AttackMode=TRUE;                                                     ////
int DropshotDown   = 130;             //Dropshot down values             ////
int DropshotUp     = 60;             //Dropshot up values                   ////
                                                                        ////
/////////Hair Trigger///////////////////////////////////////////////////////
int HairTrigger    = TRUE;                                              ////
                                                                        ////
/////////Rapid Fire/////////////////////////////////////////////////////////
int RapidFire      = FALSE;                                             ////     
                                                                        ////
////////Ghost Peek//////////////////////////////////////////////////////////
int GHOST_PEEK_NOABUSE;                                                  ////
int ghostpeek = TRUE;                                                    ////
int gpreset = 111;                                                        ////
                                                                        ////
//AutoRun///////////////////////////////////////////////////////////////////
int AutoRun = TRUE;                                                     ////
                                                                        ////
//////////Rumble////////////////////////////////////////////////////////////
int rumble_type = RUMBLE_A;                                             ////
int Notify = TRUE;                                                       ////
                                                                        ////
////Jitter//////////////////////////////////////////////////////////////////
int Jitter = FALSE;                                                    ////
                                                                        ////
//////Rapid Fire////////////////////////////////////////////////////////////
int shoot_rate         = 6;                                                ////
  int rapidfire;                                                        ////
                                                                          ////
//INSTA EDIT & INSTA RESET//////////////////////////////////////////////////
int EDIT_BUTTON       = BUILD_BTN;                                         ////
int EDIT_BUTTON_HOLD  = TRUE;                                              ////
int HOLD_TIME         = 200;                                              ////
int EDIT_RESET_BUTTON = CROUCH_BTN;                                        ////
                                                                        ////
////LED/////////////////////////////////////////////////////////////////////
int a; int b;                                                            ////
                                                                        ////
///////////////Layout///////////////////////////////////////////////////////
define FIRE_BTN = 4; //XB1_RB //PS4_R2
define ADS_BTN = 7; //XB1_LB //PS4_L2
define CROUCH_BTN = 5; //XB1_RS //PS4_R3
define RELOAD_BTN = 20; //XB1_X //PS4_SQAURE
define SPRINT_BTN = 8; //XB1_LS //PS4_L3
define JUMP_BTN = 19; //XB1_A  //PS4_CROSS
define NEXT_PIECE = 3; //XB1_RT //PS4_R1
define RIGHT_BUMP = 3; // XB1_RB //PS4_R1
define LEFT_BUMP = 6; //ADS_BTN //PS4_L1
define SWAP_BTN = 17; //XB1_Y  //PS4_TRIANGLE
define BUILD_BTN = 18; //XB1_B  //PS4_CIRCLE
define R_X = 9; //XB1_R_X //PS4_R_X
define R_Y = 10; //XB1_R_Y //PS4_R_Y
define L_X = 11; //XB1_L_X //PS4_L_X
define L_Y = 12; //XB1_L_Y //PS4_L_Y
define UP = 13; //XB1_UP //PS4_UP
define DOWN = 14; //XB1_DOWN //PS4_DOWN
define LEFT = 15; //XB1_LEFT //PS4_LEFT
define RIGHT = 16; //XB1_RIGHT //PS4_RIGHT
 
 main {
 
 
//AIM ASSIST
if (AimAssist) {
   if (get_val(ADS_BTN)) {
   combo_run(cAimAssist);}}
   if (get_val(R_X)<value2||get_val(R_X)>value||get_val(R_Y)<value2||get_val(R_Y)>value||get_val(R_X)<value2||get_val(R_X)>value||get_val(R_Y)<value2||get_val(R_Y)>value){
         combo_stop(cAimAssist);}
 
 
//HAIR TRIGGER
if(HairTrigger){
   if(get_val(FIRE_BTN))
   set_val(FIRE_BTN, 100);
   }
 
//RAPID FIRE
   if(get_val(ADS_BTN) && event_press(RIGHT)){
   RapidFire =! RapidFire;
   if(RapidFire == TRUE){combo_run(cNotify);a=0;b=2;}
   if(RapidFire == FALSE){combo_run(cNotify);a=2;b=0;}
   }
   if(RapidFire){
     if(get_val(FIRE_BTN)){
        combo_run(cRapidfire);                                         
       }
     }
 
//ANTI-RECOIL     
if(AntiRecoil){
  if(get_val(FIRE_BTN)){combo_run(cAntirecoil);}
  if(get_rumble(RUMBLE_A) <= 50){antirecoil = antirecoilA;}
  if(get_rumble(RUMBLE_A) > 50){antirecoil = antirecoilB;}
  if(abs(get_val(R_Y)) >= antirecoil+ 10){combo_stop(cAntirecoil);}}
 
//100% ACCURACY
if (get_val(ADS_BTN) && get_val(RIGHT_BUMP)) {
  combo_run(cPerfectAccuracy);
  combo_run(cNotify);a=4;b=2;
set_val(RIGHT_BUMP, 0);
      } else {
  combo_stop(cPerfectAccuracy);
}
 
//AIM ABUSE
if(get_val(ADS_BTN) && event_press(LEFT)){
   AimAbuse =! AimAbuse;
   if(AimAbuse == TRUE){combo_run(cNotify);a=0;b=2;}
   if(AimAbuse == FALSE){combo_run(cNotify);a=2;b=0;}
    rumble_A_if_true(AimAbuse);
}
 
if(AimAbuse){
   if(get_val(ADS_BTN)> 95){
      combo_run(cAimAbuse);}
   if(event_release(ADS_BTN)){ combo_stop(cAimAbuse);
}
 
//Ghost Peek
if (get_val(ADS_BTN)) {
         if (event_press(LEFT_BUMP)) {
                combo_run(cGhostPeek);
                combo_run(cNotify);a=0;b=2;
       }
         set_val(LEFT_BUMP, 0);
         }
 
//Jitter
if (get_val(ADS_BTN) && event_press(DOWN)) {
        Jitter = !Jitter;
    }
 
    if (event_press(NEXT_PIECE) || event_press(LEFT_BUMP) || event_press(ADS_BTN)) {
        Jitter = FALSE;
    }
 
if (Jitter) {
        if(get_val(FIRE_BTN)){
            set_val(FIRE_BTN, 0);
            combo_run(cJitter);
        } else {
            combo_stop(cJitter);
        }
       }   
//InstaEdit & InstaReset
if (a) {                                                                           
 if (i < num) {                                                                     
  if (!combo_running(master))
  {                                                     
   combo_run(master);                                                                 
  } 
 
  }
  else if (i > num)
  {                                                           
       a = FALSE;                                                                   
  }                                                                               
    }                                                                                   
 
    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)
    {                                                                 
     resetPress(0,1,0,0,0,0);                                                         
   if (get_val(BUILD_BTN))
    {                                                       
     AimAssist = TRUE;                                                               
     AimAbuse  = TRUE;                                                               
    }   
 
     if (event_release(FIRE_BTN) || get_val(EDIT_RESET_BUTTON) || get_val(SWAP_BTN))
     {   
      set_click(BUILD_BTN, 1, 0);                                                 
      edit = FALSE;                                                               
      }                                                                               
       }
}
 
 
//AutoRun
if(AutoRun){if(get_val(L_Y) <= -20){set_val(SPRINT_BTN, 100);
}
 
//Dropshot
if(get_val(ADS_BTN) && event_press(RELOAD_BTN)){
   Dropshot =! Dropshot;
   if(Dropshot == TRUE){combo_run(cNotify);a=0;b=2;}
   if(Dropshot == FALSE){combo_run(cNotify);a=2;b=0;}
   }
   if(Dropshot){
      if(DefenseMode){if(get_val(FIRE_BTN)==0&&get_rumble(RUMBLE_A)||get_rumble(RUMBLE_B)){combo_run(cDropshot);}}
      if(AttackMode){if(get_val(ADS_BTN)&&get_val(FIRE_BTN)){combo_run(cDropshot);}}
      }
   }
}
 
//LEDs.
// If the LED flashes Green, you have enabled a modification.
// If the LED flashes Red, you have disabled a modification.
// If the LED flashes Yellow, you are using an un-togglable modification.
 
combo cNotify {
if(Notify){set_rumble(RUMBLE_B,65);}
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(550);
set_led(LED_1, 0);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(250);
reset_leds();
}
 
combo cDropshot{
set_val(CROUCH_BTN,100);
wait(DropshotDown);                                                                     
wait(DropshotUp);
set_val(CROUCH_BTN,100);
}
 
combo cAimAssist {
set_val(R_Y, (aav));
wait(delay)
set_val(R_X, (aav));
wait(delay)
set_val(R_Y, (aav2));
wait(delay)
set_val(R_X, (aav2));
wait(delay)
set_val(R_Y, (aav));
wait(delay)
set_val(R_X, (aav));
wait(delay)
set_val(R_Y, (aav2));
wait(delay)
set_val(R_X, (aav2));
wait(delay)
 
}
combo cPerfectAccuracy {
set_val(FIRE_BTN,100);
wait(100);
wait(250);
set_val(FIRE_BTN,100);
}
 
combo cAimAbuse {
set_val(ADS_BTN, 100);
wait(AimAbuse_HOLD);
set_val(ADS_BTN, 0);
wait(AimAbuse_RELEASE);
}
 
combo cRapidfire {
      set_val(FIRE_BTN, 100);
      wait(rapidfire);
      set_val(FIRE_BTN, 0);
}
 
combo cJitter {                   
    set_val(FIRE_BTN,  100);     
    wait(200);     
    set_val(RIGHT_BUMP,100);     
    wait(320);     
    set_val(FIRE_BTN,100);   
    wait(200);
    set_val(LEFT_BUMP,100)
    wait(320)
}
 
combo cGhostPeek {
set_val(CROUCH_BTN, 100);
wait(15);
set_val(CROUCH_BTN, 0);
wait(15);
set_val(FIRE_BTN, 100);
wait(15);
set_val(FIRE_BTN, 0);
wait(50);
set_val(CROUCH_BTN, 100);
wait(15);
set_val(CROUCH_BTN, 0);
}
 
 
combo Vibrate {
set_rumble(rumble_type, 100);
wait(300);
reset_rumble();
}
 
combo cAntirecoil {
set_val(R_Y, antirecoil);
wait(delayA);
set_val(R_Y, antirecoil);
wait(delayA);
}
 
function rumble_A_if_true(var) {
if (var) rumble_type = RUMBLE_A;
else rumble_type = RUMBLE_B;
combo_run(cVibrate);
}
combo master {                                                                           
wait(WAIT);                                                                             
set_val(button, 100);                                                                   
wait(28);                                                                               
set_val(button, 0);                                                                     
wait(28);                                                                               
i = i + 1;                                                                             
}                                                                                       
function resetPress(P0,P1,P2,P3,T,S) {                                             
if(!P0){pressedIt[0] = FALSE;}    else if(P0) {pressedIt[0] = TRUE;}                     
if(!P1){pressedIt[1] = FALSE;}    else if(P1) {pressedIt[1] = TRUE;}                       
if(!P2){pressedIt[2] = FALSE;}    else if(P2) {pressedIt[2] = TRUE;}                       
if(!P3){pressedIt[3] = FALSE;}    else if(P3) {pressedIt[3] = TRUE;}                     
}                                                                                       
 
function set_click(B, Num, Wait) {                                                     
    WAIT = Wait;                                                                           
    i = 0;                                                                                   
button = B;                                                                             
num = Num;                                                                               
a = TRUE;                                                                               
}                                                                                       
int edit = FALSE;                                                                       
int pressedIt[6];                                                                       
int WAIT;                                                                               
int num, i;                                                                           
int button;
User avatar
Eman69
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Fri Apr 20, 2018 1:51 am

Re: tried to fix couldnt

Postby J2Kbr » Wed Jan 30, 2019 1:34 pm

Errors fixed:
Code: Select all
///////////////Layout///////////////////////////////////////////////////////
define FIRE_BTN = 4; //XB1_RB //PS4_R2
define ADS_BTN = 7; //XB1_LB //PS4_L2
define CROUCH_BTN = 5; //XB1_RS //PS4_R3
define RELOAD_BTN = 20; //XB1_X //PS4_SQAURE
define SPRINT_BTN = 8; //XB1_LS //PS4_L3
define JUMP_BTN = 19; //XB1_A  //PS4_CROSS
define NEXT_PIECE = 3; //XB1_RT //PS4_R1
define RIGHT_BUMP = 3; // XB1_RB //PS4_R1
define LEFT_BUMP = 6; //ADS_BTN //PS4_L1
define SWAP_BTN = 17; //XB1_Y  //PS4_TRIANGLE
define BUILD_BTN = 18; //XB1_B  //PS4_CIRCLE
define R_X = 9; //XB1_R_X //PS4_R_X
define R_Y = 10; //XB1_R_Y //PS4_R_Y
define L_X = 11; //XB1_L_X //PS4_L_X
define L_Y = 12; //XB1_L_Y //PS4_L_Y
define UP = 13; //XB1_UP //PS4_UP
define DOWN = 14; //XB1_DOWN //PS4_DOWN
define LEFT = 15; //XB1_LEFT //PS4_LEFT
define RIGHT = 16; //XB1_RIGHT //PS4_RIGHT
 
int edit = FALSE;                                                                       
int pressedIt[6];                                                                       
int WAIT;                                                                               
int num, i;                                                                           
int button;
 
////////Anti Recoil/////////////////////////////////////////////////////////
int AntiRecoil     = FALSE;                                             ////
int antirecoil;                                                          ////
int antirecoilA      = 20;                                              ////
int antirecoilB      = 28;                                              ////
int delayA           = 12;                                              ////                             
                                                                        ////
////////Aim Assist Always on////////////////////////////////////////////////
int AimAssist = TRUE;                                                   ////
int aav  =15;// AIM ASSIST VALUES                                      ////
int aav2 = -19;//AIM ASSIST VALUES                                      ////
                                                                         ////
int value  = 21;                                                        ////
int value2 =-21;                                                        ////
int delay  =17;                                                         ////
                                                                        ////
////////Aim Abuse///////////////////////////////////////////////////////////
int  AimAbuse = TRUE;                                                   ////
int AimAbuse_HOLD =190; //How long you HOLD ADS Button                  ////
int AimAbuse_RELEASE = 20;//How long you release ADS Button             ////
                                                                        ////
/////100% Accuracy//////////////////////////////////////////////////////////
int PerfectAccuracy  = TRUE;                                            ////
                                                                        ////                                                                       
/////////Dropshot///////////////////////////////////////////////////////////
int Dropshot       = FALSE;                                                ////             
int DefenseMode=FALSE;                                                  ////
int AttackMode=TRUE;                                                     ////
int DropshotDown   = 130;             //Dropshot down values             ////
int DropshotUp     = 60;             //Dropshot up values                   ////
                                                                        ////
/////////Hair Trigger///////////////////////////////////////////////////////
int HairTrigger    = TRUE;                                              ////
                                                                        ////
/////////Rapid Fire/////////////////////////////////////////////////////////
int RapidFire      = FALSE;                                             ////     
                                                                        ////
////////Ghost Peek//////////////////////////////////////////////////////////
int GHOST_PEEK_NOABUSE;                                                  ////
int ghostpeek = TRUE;                                                    ////
int gpreset = 111;                                                        ////
                                                                        ////
//AutoRun///////////////////////////////////////////////////////////////////
int AutoRun = TRUE;                                                     ////
                                                                        ////
//////////Rumble////////////////////////////////////////////////////////////
int rumble_type = RUMBLE_A;                                             ////
int Notify = TRUE;                                                       ////
                                                                        ////
////Jitter//////////////////////////////////////////////////////////////////
int Jitter = FALSE;                                                    ////
                                                                        ////
//////Rapid Fire////////////////////////////////////////////////////////////
int shoot_rate         = 6;                                                ////
  int rapidfire;                                                        ////
                                                                          ////
//INSTA EDIT & INSTA RESET//////////////////////////////////////////////////
int EDIT_BUTTON       = BUILD_BTN;                                         ////
int EDIT_BUTTON_HOLD  = TRUE;                                              ////
int HOLD_TIME         = 200;                                              ////
int EDIT_RESET_BUTTON = CROUCH_BTN;                                        ////
                                                                        ////
////LED/////////////////////////////////////////////////////////////////////
int a; int b;                                                            ////
                                                                        ////
 
 main {
 
 
//AIM ASSIST
if (AimAssist) {
   if (get_val(ADS_BTN)) {
   combo_run(cAimAssist);}}
   if (get_val(R_X)<value2||get_val(R_X)>value||get_val(R_Y)<value2||get_val(R_Y)>value||get_val(R_X)<value2||get_val(R_X)>value||get_val(R_Y)<value2||get_val(R_Y)>value){
         combo_stop(cAimAssist);}
 
 
//HAIR TRIGGER
if(HairTrigger){
   if(get_val(FIRE_BTN))
   set_val(FIRE_BTN, 100);
   }
 
//RAPID FIRE
   if(get_val(ADS_BTN) && event_press(RIGHT)){
   RapidFire =! RapidFire;
   if(RapidFire == TRUE){combo_run(cNotify);a=0;b=2;}
   if(RapidFire == FALSE){combo_run(cNotify);a=2;b=0;}
   }
   if(RapidFire){
     if(get_val(FIRE_BTN)){
        combo_run(cRapidfire);                                         
       }
     }
 
//ANTI-RECOIL     
if(AntiRecoil){
  if(get_val(FIRE_BTN)){combo_run(cAntirecoil);}
  if(get_rumble(RUMBLE_A) <= 50){antirecoil = antirecoilA;}
  if(get_rumble(RUMBLE_A) > 50){antirecoil = antirecoilB;}
  if(abs(get_val(R_Y)) >= antirecoil+ 10){combo_stop(cAntirecoil);}}
 
//100% ACCURACY
if (get_val(ADS_BTN) && get_val(RIGHT_BUMP)) {
  combo_run(cPerfectAccuracy);
  combo_run(cNotify);a=4;b=2;
set_val(RIGHT_BUMP, 0);
      } else {
  combo_stop(cPerfectAccuracy);
}
 
//AIM ABUSE
if(get_val(ADS_BTN) && event_press(LEFT)){
   AimAbuse =! AimAbuse;
   if(AimAbuse == TRUE){combo_run(cNotify);a=0;b=2;}
   if(AimAbuse == FALSE){combo_run(cNotify);a=2;b=0;}
    rumble_A_if_true(AimAbuse);
}
 
if(AimAbuse){
   if(get_val(ADS_BTN)> 95){
      combo_run(cAimAbuse);}
   if(event_release(ADS_BTN)){ combo_stop(cAimAbuse);
}
 
//Ghost Peek
if (get_val(ADS_BTN)) {
         if (event_press(LEFT_BUMP)) {
                combo_run(cGhostPeek);
                combo_run(cNotify);a=0;b=2;
       }
         set_val(LEFT_BUMP, 0);
         }
 
//Jitter
if (get_val(ADS_BTN) && event_press(DOWN)) {
        Jitter = !Jitter;
    }
 
    if (event_press(NEXT_PIECE) || event_press(LEFT_BUMP) || event_press(ADS_BTN)) {
        Jitter = FALSE;
    }
 
if (Jitter) {
        if(get_val(FIRE_BTN)){
            set_val(FIRE_BTN, 0);
            combo_run(cJitter);
        } else {
            combo_stop(cJitter);
        }
       }   
//InstaEdit & InstaReset
if (a) {                                                                           
 if (i < num) {                                                                     
  if (!combo_running(master))
  {                                                     
   combo_run(master);                                                                 
  } 
 
  }
  else if (i > num)
  {                                                           
       a = FALSE;                                                                   
  }                                                                               
    }                                                                                   
 
    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)
    {                                                                 
     resetPress(0,1,0,0,0,0);                                                         
   if (get_val(BUILD_BTN))
    {                                                       
     AimAssist = TRUE;                                                               
     AimAbuse  = TRUE;                                                               
    }   
 
     if (event_release(FIRE_BTN) || get_val(EDIT_RESET_BUTTON) || get_val(SWAP_BTN))
     {   
      set_click(BUILD_BTN, 1, 0);                                                 
      edit = FALSE;                                                               
      }                                                                               
       }
}
 
 
//AutoRun
if(AutoRun){if(get_val(L_Y) <= -20){set_val(SPRINT_BTN, 100);
}
 
//Dropshot
if(get_val(ADS_BTN) && event_press(RELOAD_BTN)){
   Dropshot =! Dropshot;
   if(Dropshot == TRUE){combo_run(cNotify);a=0;b=2;}
   if(Dropshot == FALSE){combo_run(cNotify);a=2;b=0;}
   }
   if(Dropshot){
      if(DefenseMode){if(get_val(FIRE_BTN)==0&&get_rumble(RUMBLE_A)||get_rumble(RUMBLE_B)){combo_run(cDropshot);}}
      if(AttackMode){if(get_val(ADS_BTN)&&get_val(FIRE_BTN)){combo_run(cDropshot);}}
      }
   }
}
 
//LEDs.
// If the LED flashes Green, you have enabled a modification.
// If the LED flashes Red, you have disabled a modification.
// If the LED flashes Yellow, you are using an un-togglable modification.
 
combo cNotify {
if(Notify){set_rumble(RUMBLE_B,65);}
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(550);
set_led(LED_1, 0);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, 0);
set_led(LED_3, 0);
set_led(LED_4, 0);
wait(250);
set_led(LED_1, 0);
set_led(LED_2, a);
set_led(LED_3, b);
set_led(LED_4, 0);
wait(250);
reset_leds();
}
 
combo cDropshot{
set_val(CROUCH_BTN,100);
wait(DropshotDown);                                                                     
wait(DropshotUp);
set_val(CROUCH_BTN,100);
}
 
combo cAimAssist {
set_val(R_Y, (aav));
wait(delay)
set_val(R_X, (aav));
wait(delay)
set_val(R_Y, (aav2));
wait(delay)
set_val(R_X, (aav2));
wait(delay)
set_val(R_Y, (aav));
wait(delay)
set_val(R_X, (aav));
wait(delay)
set_val(R_Y, (aav2));
wait(delay)
set_val(R_X, (aav2));
wait(delay)
 
}
combo cPerfectAccuracy {
set_val(FIRE_BTN,100);
wait(100);
wait(250);
set_val(FIRE_BTN,100);
}
 
combo cAimAbuse {
set_val(ADS_BTN, 100);
wait(AimAbuse_HOLD);
set_val(ADS_BTN, 0);
wait(AimAbuse_RELEASE);
}
 
combo cRapidfire {
      set_val(FIRE_BTN, 100);
      wait(rapidfire);
      set_val(FIRE_BTN, 0);
}
 
combo cJitter {                   
    set_val(FIRE_BTN,  100);     
    wait(200);     
    set_val(RIGHT_BUMP,100);     
    wait(320);     
    set_val(FIRE_BTN,100);   
    wait(200);
    set_val(LEFT_BUMP,100)
    wait(320)
}
 
combo cGhostPeek {
set_val(CROUCH_BTN, 100);
wait(15);
set_val(CROUCH_BTN, 0);
wait(15);
set_val(FIRE_BTN, 100);
wait(15);
set_val(FIRE_BTN, 0);
wait(50);
set_val(CROUCH_BTN, 100);
wait(15);
set_val(CROUCH_BTN, 0);
}
 
 
combo Vibrate {
set_rumble(rumble_type, 100);
wait(300);
reset_rumble();
}
 
combo cAntirecoil {
set_val(R_Y, antirecoil);
wait(delayA);
set_val(R_Y, antirecoil);
wait(delayA);
}
 
combo master {                                                                           
wait(WAIT);                                                                             
set_val(button, 100);                                                                   
wait(28);                                                                               
set_val(button, 0);                                                                     
wait(28);                                                                               
i = i + 1;                                                                             
}                                                                                       
 
function rumble_A_if_true(var) {
if (var) rumble_type = RUMBLE_A;
else rumble_type = RUMBLE_B;
//combo_run(cVibrate);
}
 
function resetPress(P0,P1,P2,P3,T,S) {                                             
if(!P0){pressedIt[0] = FALSE;}    else if(P0) {pressedIt[0] = TRUE;}                     
if(!P1){pressedIt[1] = FALSE;}    else if(P1) {pressedIt[1] = TRUE;}                       
if(!P2){pressedIt[2] = FALSE;}    else if(P2) {pressedIt[2] = TRUE;}                       
if(!P3){pressedIt[3] = FALSE;}    else if(P3) {pressedIt[3] = TRUE;}                     
}                                                                                       
 
function set_click(B, Num, Wait) {                                                     
    WAIT = Wait;                                                                           
    i = 0;                                                                                   
button = B;                                                                             
num = Num;                                                                               
a = TRUE;                                                                               
}                                                                                       
 
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 100 guests