T1/CM to Titan Two Script Converter [v0.28r6 - 11/30/2020]

Tutorials, How-tos and FAQs for the Titan Two device.

Re: T1/CM to Titan Two Script Converter [v0.25r3 - 06/23/201

Postby lgbm » Tue Jul 09, 2019 9:36 pm

Nice work!

It's very close to create a GPC script minifier/obscure.
Owned Scripts:
- TheDivision
- COD WW2

XB1 - BR
User avatar
lgbm
Private First Class
Private First Class
 
Posts: 2
Joined: Thu Aug 02, 2018 10:33 pm

Please convert this

Postby MillzyDagz » Fri Aug 02, 2019 6:47 pm

Code: Select all
//Posted by WalterHMartinez, a member of the community in the device Forums - https://device.com/forums
 
//Posted : Friday 2nd of August, 2019 18:43 UTC
 
 
 
 
 
// ON - OFF :
// HOLD L2 and TAP R3
//HOLD R2 for Rapid Fire
 
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
);
//COLOR IDENTICIATION
int Col_ind;
 
 
int Rapid_onoff = FALSE;
define FIRE_BTN = PS4_R2;
define ADS_BTN = PS4_L2;
 
 
main {
 
 
if (get_val(ADS_BTN) && event_press(PS3_R3)) {
Rapid_onoff = !Rapid_onoff;
}
if (Rapid_onoff) colourled(Blue);
else colourled(Red);
if (Rapid_onoff) {
if (get_val(FIRE_BTN)) {
set_val(FIRE_BTN, 0);
combo_run(Rapid);
} else if (combo_running(Rapid)) {
combo_stop(Rapid);
}
}
 
 
}
combo Rapid {
set_val(FIRE_BTN, 100);
wait(30);
set_val(PS4_SQUARE, 100);
wait(30);
set_val(PS4_R2, 100);
wait(30);
set_val(PS4_TOUCH, 100);
wait(50);
}
 
 
// 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));
} // End
User avatar
MillzyDagz
Sergeant First Class
Sergeant First Class
 
Posts: 16
Joined: Fri Aug 02, 2019 9:41 am

Re: Please convert this

Postby Mad » Fri Aug 02, 2019 10:16 pm

ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

could someone convert this to titan 2 im new with this stuff

Postby tainam19 » Thu Aug 15, 2019 5:40 am

Code: Select all
// Version 1.5
/*--------------------------------------------------------------------------------------
  __  __                 _              ___           _          _  _         __  __    |
 |  \/  | _ _  ___  _ _ (_) ___  _ _   | __|___  _ _ | |_  _ _  (_)| |_  ___  \ \/ /    |
 | |\/| || '_|/ _ \| '_|| |/ _ \| ' \  | _|/ _ \| '_||  _|| ' \ | ||  _|/ -_)  >  <     |
 |_|  |_||_|  \___/|_|  |_|\___/|_||_| |_| \___/|_|   \__||_||_||_| \__|\___| /_/\_\    |
                                                                                        |
---------------------------------------------------------------------------------------*/

/* Big Thanks to the Wonderful magnificent hooman that is Batts. <3
/*-------------------------------------------------------------------|
  ___        _    _                _                            _    |
 | _ ) _  _ | |_ | |_  ___  _ _   | |    __ _  _  _  ___  _  _ | |_  |
 | _ \| || ||  _||  _|/ _ \| ' \  | |__ / _` || || |/ _ \| || ||  _| |
 |___/ \_,_| \__| \__|\___/|_||_| |____|\__,_| \_, |\___/ \_,_| \__| |
                                               |__/                  |
--------------------------------------------------------------------*/

define VIEW  =  1;
define MENU  =  2;
define RB_R1 =  3;
define RT_R2 =  4;
define RS_R3 =  5;
define LB_L1 =  6;
define LT_L2 =  7;
define LS_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 Y_TRI = 17;
define B_CIR = 18;
define A_CROSS= 19;
define X_SQUARE =20;
define Off      = 0;
/*-----------------------------------------------------------
  ___            _                   _    _                 |
 |_ _| _ _   ___| |_  _ _  _  _  __ | |_ (_) ___  _ _   ___ |
  | | | ' \ (_-<|  _|| '_|| || |/ _||  _|| |/ _ \| ' \ (_-< |
 |___||_||_|/__/ \__||_|   \_,_|\__| \__||_|\___/|_||_|/__/ |
                                                            |
Myth - Fortnite changes settings that affect aimabuse       |
values. Users constantly change values. Well this script    |
is a AimAbuse Progression that will start at the min wait   |
time & work it's way upto the Max wait time.                |                                             
            Progression AimAbuse                            |
                                                            |
Progression from min_hold(minimum time in ms that LT        |
will be held) to max_hold progression (maximum time in      |
ms that LT will be held)                                    |
held time will be increased by custom increments(inc_hold =)|
until it reaches it limit max_hold.                         |
                                                            |
Wait time progression for combo section (wait(ab_wait);)    |
min_wait  = minimum wait time in ms after LT release        |
max_wait = maximum time in ms after LT release              |
inc_wait  = value to inc/dec from wait time                 |
                                                            |
  int dir_hold = 1;  //-- 1 = increase / 0 = decrease       |
  int dir_wait = 1;                                         |
                                                            |
             1 = Starts from Min - Max                      |
             0 = Starts from max - Min                      |
                                                            |
        SingleShot = Hold L2_LT(ADS) + RB_R1                |
                                                            |
         DropShot = Hold L2_LT(ADS) + X_SQURAE              |
                                                            |
                                                            |
                                                            |
           Strafe = Hold LT_L2(ADS) + Left for 200ms        |
           to prevent toggle on-off while pinging           |
           enemies posistion.                               |
                                                            |
                                                            |
                                                            |
            RapidFire = LT_L2(ADS) + Right                  |       
                                                            |
                                                            |
                                                            |
            Build-mode = B/Circle - L'E'D's Flash           |
                    Suspend mods while                      |
            entering build mode so mods won't               |
            interfere with building and will                |
            resume once out of build by pressing B/Circle   |
                    Example... If                           |
            DropShot was active enter build mode DropShot   |
            will deacivate, then when exiting buildMode by  |
            pressing B/Circle. DropShot will activate       |
            AimAssist,SingleShot and AimAbuse               |
            will always be active even in build mode.       |
                                                            |
          Reset/Mods Off = View/Share + Down L.E.D = red    |
          Except AimAssist,AimAbuse,SingleShot.             |
          If L.E.D.s or buildmode out of sync               |
          reset.                                            |
                                                            |
                                                            |
                                                            |
/*----------------------------------------------------------------------------------------------------------------|
|  ___  ___   ___    ___  ___  ___  ___  ___  ___  ___   _  _     _    ___  __  __     _    ___  _   _  ___  ___  |
| | _ \| _ \ / _ \  / __|| _ \| __|/ __|/ __||_ _|/ _ \ | \| |   /_\  |_ _||  \/  |   /_\  | _ )| | | |/ __|| __| |
| |  _/|   /| (_) || (_ ||   /| _| \__ \\__ \ | || (_) || .` |  / _ \  | | | |\/| |  / _ \ | _ \| |_| |\__ \| _|  |
| |_|  |_|_\ \___/  \___||_|_\|___||___/|___/|___|\___/ |_|\_| /_/ \_\|___||_|  |_| /_/ \_\|___/ \___/ |___/|___| |
| ----------------------------------------------------------------------------------------------------------------*/

    define min_hold   = 180;   //--minimum time in ms that LT will be held
    define max_hold   = 400;   //--maximum time in ms that LT will be held
    define inc_hold   = 10;    //--value to inc/dec from hold time
 
 
    define min_wait  =  20;   //--minimum wait time in ms after LT release
    define max_wait  =  60;   //--maximum time in ms after LT release
    define inc_wait  =   5;   //--value to inc/dec from wait time
 
    int ab_hold = min_hold;  //--initial values
    int ab_wait = min_wait;
 
    int val_idx;
    int dir_hold = 1//-- 1 = increase / 0 = decrease
    int dir_wait = 1;
/*--------------------------------------------------------------------------------------------------------------       
                                     \ \ / /__ _  _ _ (_) __ _ | |__ | | ___  ___                              |
                                      \ V // _` || '_|| |/ _` || '_ \| |/ -_)(_-<                              |
                                       \_/ \__,_||_|  |_|\__,_||_.__/|_|\___|/__/                              |
--------------------------------------------------------------------------------------------------------------*/

// SingleShot = Hold L2_LT(ADS) + RB_R1
int SingleShot = TRUE;
 
//DropShot Hold L2_LT(ADS) + X_SQURAE
int DropShot = FALSE;
int DS_BTN = RS_R3;
int DS_Time = 40;
 
//Strafe Hold LT_L2(ADS) + Left
int Strafe = FALSE;
int strafeLeft, strafeRight;
int Rand = 32767;
 
//InstaEdit
int EDIT_BTN  = RIGHT; //Your Custom edit Button
int RESET_BTN  = RS_R3;//Your Custom Reset edit button
int CONFIRM_BTN = RIGHT;//Your custom edit confirm button
int edit = FALSE;                                                                                                                                             
int WAIT;                                                                               
int num, i, a;
int button;
 
//AimAbuse - Make sure the one you want is set to TRUE set the other one to FALSE
int ADS_ONLY = TRUE// AimAbuse kicks in straight away with ADS only
int Press_Sensitive = FALSE; // AimAbuse press sensitive- for snipers use
 
//Aim Assist
int aa_p  = 24;
int aa_n = -24;
int aa_delay  = 20;
int release = 25;
 
//RapidFire LT_L2(ADS) + Right
int RapidFire = FALSE;
int RF_Time = 40;
 
/*
Build Mode Will suspend mods
when entering build mode and
resume once out of build mode*/

int Build_Mode;
 
// Reset Mods
int Reset
 
// Colour
int led_color;
int cycle_led
int  Col_ind
define Blue      = 1;
define Red       = 2;
define Green     = 3;
define Pink      = 4;
define SkyBlue   = 5;
define Yellow    = 6;
define White     = 7;
define Bright_Green = 17;
data(1,
  2,0,0,0, //1. Blue
  0,2,0,0, //2. Red
  0,0,2,0, //3. Lime/Green
  0,0,3,0, // Bright 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
 
 
);
 
/*-----------------------------------------------------------
  __  __        _        ___           _    _                |
 |  \/  | __ _ (_) _ _  / __| ___  __ | |_ (_) ___  _ _      |
 | |\/| |/ _` || || ' \ \__ \/ -_)/ _||  _|| |/ _ \| ' \     |
 |_|  |_|\__,_||_||_||_||___/\___|\__| \__||_|\___/|_||_|    |
------------------------------------------------------------*/
                                                       
main{
 
    if ((!DropShot && !Strafe &&!RapidFire)) color_led(Red); //EVERYTHING IS OFF
    if ((DropShot &&  Strafe && RapidFire)) color_led(Green); //EVERYTHING IS ON
    if ((DropShot && !Strafe &&!RapidFire)) color_led(White); // Dropshot IS ON(LimeGreen)
    if ((!DropShot && Strafe && !RapidFire)) color_led(Yellow); // Strafe IS ON(LightBlue)
    if ((!DropShot && !Strafe && RapidFire)) color_led(Pink); // RapidFre IS ON(Green)
    if ((DropShot &&  Strafe &&!RapidFire)) color_led(SkyBlue); // Dropshot,Strafe ON   
    if ((DropShot &&  !Strafe && RapidFire)) color_led(Blue); // Dropshot,RapidFire ON(Blue)
    if ((!DropShot &&  Strafe && RapidFire)) color_led(Bright_Green); // Strafe,RapidFire ON(Purple)
 
 
 
/*----------------------------------------------------------------------------------------------------------------*
|  ___  ___   ___    ___  ___  ___  ___  ___  ___  ___   _  _     _    ___  __  __     _    ___  _   _  ___  ___  |
| | _ \| _ \ / _ \  / __|| _ \| __|/ __|/ __||_ _|/ _ \ | \| |   /_\  |_ _||  \/  |   /_\  | _ )| | | |/ __|| __| |
| |  _/|   /| (_) || (_ ||   /| _| \__ \\__ \ | || (_) || .` |  / _ \  | | | |\/| |  / _ \ | _ \| |_| |\__ \| _|  |
| |_|  |_|_\ \___/  \___||_|_\|___||___/|___/|___|\___/ |_|\_| /_/ \_\|___||_|  |_| /_/ \_\|___/ \___/ |___/|___| |
------------------------------------------------------------------------------------------------------------------|                                                                                                           
*/

    //--device monitor
    set_val(30,ab_hold / 10);
    set_val(31,ab_wait / 10);
 
    //--ads only
    if (ADS_ONLY)
    if(get_val(7)){
            if(!combo_running(AIM_ABUSE)) {
            ab_hold = progression(ab_hold,min_hold,max_hold,inc_hold,dir_hold,1);
            ab_wait = progression(ab_wait,min_wait,max_wait,inc_wait,dir_wait,2);
            combo_run(AIM_ABUSE);}
            }
 
    //-- ads press sensitive 95%
    if(Press_Sensitive)
    if(get_val(7) >95){
            if(!combo_running(AIM_ABUSE)) {
            ab_hold = progression(ab_hold,min_hold,max_hold,inc_hold,dir_hold,1);
            ab_wait = progression(ab_wait,min_wait,max_wait,inc_wait,dir_wait,2);
            combo_run(AIM_ABUSE);}
            }
/*-----------------------------------------------
  ___            _           ___     _  _  _     |
 |_ _| _ _   ___| |_  __ _  | __| __| |(_)| |_   |
  | | | ' \ (_-<|  _|/ _` | | _| / _` || ||  _|  |
 |___||_||_|/__/ \__|\__,_| |___|\__,_||_| \__|  |
------------------------------------------------*/

if(get_val(EDIT_BTN) && get_ptime(EDIT_BTN)){
    edit = TRUE;
    }
if(get_val(EDIT_BTN)){
    edit = TRUE;
    }
if (edit == TRUE) {
if(get_val(RESET_BTN)){
    {combo_run(wait1);}
    set_click(CONFIRM_BTN, 1, 100);
    edit = FALSE;
    }
if (event_release(RT_R2) || get_val(Y_TRI)){
    set_click(CONFIRM_BTN, 1, 0);edit = FALSE;}}
 
if (a) {
    if (i < num) {
  if (!combo_running(master)) {
   combo_run(master);
   }
  } else if
  (i > num) {a = FALSE;
  }
    }
/*----------------------------------------------------
  ___  _              _       ___  _          _       |
 / __|(_) _ _   __ _ | | ___ / __|| |_   ___ | |_     |
 \__ \| || ' \ / _` || |/ -_)\__ \| ' \ / _ \|  _|    |
 |___/|_||_||_|\__, ||_|\___||___/|_||_|\___/ \__|    |
               |___/                                  |
-----------------------------------------------------*/

if (get_val(LT_L2) && get_val(RB_R1)) {
   SingleShot = !SingleShot
      combo_run(SingleShot);
      set_val(RB_R1, 0);
      } else {
     combo_stop(SingleShot);
       }
 
/*--------------------------------------------
    ___                   ___  _          _  |
 |   \  _ _  ___  _ __ / __|| |_   ___ | |_  |
 | |) || '_|/ _ \| '_ \\__ \| ' \ / _ \|  _| |
 |___/ |_|  \___/| .__/|___/|_||_|\___/ \__| |
                 |                           |
--------------------------------------------*/

if(get_val(LT_L2) && event_press(X_SQUARE)){
DropShot =!DropShot;
}
 
/*---------------------------------
  ___  _                __         |
 / __|| |_  _ _  __ _  / _| ___    |
 \__ \|  _|| '_|/ _` ||  _|/ -_)   |
 |___/ \__||_|  \__,_||_|  \___|   |
--------------------------------- */

if(get_val(LT_L2)){
if(get_val(LEFT) && get_ptime(LEFT) > 200){Strafe=!Strafe;}
}
 
 
/*-----------------------------------------------
    _    _            _            _      _     |
   /_\  (_) _ __     /_\   ___ ___(_) ___| |_   |
  / _ \ | || '  \   / _ \ (_-<(_-<| |(_-<|  _|  |
 /_/ \_\|_||_|_|_| /_/ \_\/__//__/|_|/__/ \__|  |
-----------------------------------------------*/

   if (get_val(7)> 98){                   
     combo_run(AimAssist);
   if (abs(get_val(9)) > 21 || abs(get_val(10)) > 21){
       combo_stop(AimAssist);
          }
       }
 
/*---------------------------------------------
  ___              _     _  ___  _            |
 | _ \ __ _  _ __ (_) __| || __|(_) _ _  ___  |
 |   // _` || '_ \| |/ _` || _| | || '_|/ -_) |
 |_|_\\__,_|| .__/|_|\__,_||_|  |_||_|  \___| |
            |_|                               |
---------------------------------------------*/

 if(get_val(LT_L2) && event_press(RIGHT))
  RapidFire = !RapidFire;
 
/*-------------------------------------------
  ___      _ _    _   __  __         _      |
 | _ )_  _(_) |__| | |  \/  |___  __| |___  |
 | _ \ || | | / _` | | |\/| / _ \/ _` / -_) |
 |___/\_,_|_|_\__,_| |_|  |_\___/\__,_\___| |
--------------------------------------------*/
                                           
    if(event_press(B_CIR)) {
        Build_Mode = !Build_Mode;
       }
    if(Build_Mode) {
           cycle_led = 5;
           led_color = White;
           if(cycle_led) combo_run(CYCLE_LEDS);
    }else{
 
        if(Strafe) {
         if((get_val(LT_L2)) && (get_val(RT_R2))){       
              combo_run(AutoStrafe);}
              }
 
        if(DropShot) {
          if((get_val(LT_L2)) && (get_val(RT_R2))){       
              combo_run(DropShot);}
              }
 
        if(RapidFire) {
          if((get_val(LT_L2)) && (get_val(RT_R2))){       
              combo_run(RapidFire);}
              }
 
/*
-------------------------------
  ___             _           |
 | _ \___ ___ ___| |_         |
 |   / -_|_-</ -_)  _|        |
 |_|_\___/__/\___|\__|        |
                              |
------------------------------*/

if(get_val(VIEW) && event_press(DOWN)){
Reset =!Reset;
if(Reset){
Strafe = FALSE;
DropShot = FALSE;
RapidFire = FALSE;
Build_Mode = FALSE;
}
}
/*--------------------------------------------------------------------------
|  ___  ___   __  __  ___   ___    ___  ___  ___  _____  ___  ___   _  _    |
| / __|/ _ \ |  \/  || _ ) / _ \  / __|| __|/ __||_   _||_ _|/ _ \ | \| |   |
|| (__| (_) || |\/| || _ \| (_) | \__ \| _|| (__   | |   | || (_) || .` |   |
| \___|\___/ |_|  |_||___/ \___/  |___/|___|\___|  |_|  |___|\___/ |_|\_|   |
---------------------------------------------------------------------------*/

}
}
combo AIM_ABUSE {                                                                         
set_val(7, 100);                                                                 
wait(ab_hold);                                                                     
set_val(7, 0);                                                                     
wait(ab_wait);                                                                     
}
combo SingleShot {
set_val(4,100);
wait(100);
wait(250);
set_val(4,100);}
 
combo DropShot {
set_val(DS_BTN,100);                                                                     
wait(40);                                                                         
wait(DS_Time);}
 
combo AutoStrafe {
strafeRight = Rand(500, 1000);
set_val(PS4_LX, 40);
wait(strafeRight);
strafeLeft = Rand(500, 1000);
set_val(PS4_LX, inv(40));
wait(strafeLeft);
set_val(PS4_LX, 40);
}
 
combo AimAssist{
set_val(10,xy_val(10,aa_p));
wait(aa_delay)
set_val(9,xy_val(9,aa_p));
wait(aa_delay)
set_val(10,xy_val(10,aa_n));
wait(aa_delay)
set_val(9,xy_val(9,aa_n));
wait(aa_delay)
}
 
combo RapidFire {
set_val(4,100);
wait(RF_Time);
set_val(4,0);
wait(RF_Time);
}
 
combo CYCLE_LEDS {
color_led(i);
wait(200);
i++;
if (i == 8) {
cycle_led--;
i = 1;
}
if(!cycle_led) {
color_led(led_color);
i = 1;
}
}
 
combo wait1 {
wait(50);
wait(55);
}
combo master {
wait(WAIT);
set_val(button, 100);
wait(28);
set_val(button, 0);
wait(28);
i = i + 1;
}
/*---------------------------------------------
   __                  _    _                  |
  / _| _  _  _ _   __ | |_ (_) ___  _ _   ___  |
 |  _|| || || ' \ / _||  _|| |/ _ \| ' \ (_-<  |
 |_|   \_,_||_||_|\__| \__||_|\___/|_||_|/__/  |
----------------------------------------------*/
                                             
 
function progression(f_val,f_min,f_max,f_inc,f_dir,f_idx) {
    //--adding to val
    if(f_dir) {
        f_val += f_inc;
        if(f_val <= f_max) 
            return f_val;
        //--max reached
        if(f_val > f_max) {
            //--change direction
            val_idx[f_idx] = 0;
            return f_val - f_inc;
        }
    //--subtracting
    }else{
        f_val -= f_inc;   
        if(f_val >= f_min) 
            return f_val;
        //--min reached
        if(f_val < f_min) {
            //--change direction
            val_idx[f_idx] = 1;
            return f_val + f_inc;
        }
    }
    return FALSE;   
}
 
function xy_val(f_axis,f_val) {
    if(abs(get_val(f_axis)) < release)
        return f_val;
    return get_val(f_axis);
}
 
function set_click(B, Num, Wait) {
    WAIT = Wait;
    i = 0;
    button = B;
    num = Num;
    a = TRUE;
}
 
function Rand(min,max){
 Rand = Rand *8403 % 32767;
 if (min>= Off && max >= Off)
 return abs(min + (Rand && (max - min)));
 return min + (Rand % (max - min));
}
 
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));
}
User avatar
tainam19
Corporal
Corporal
 
Posts: 5
Joined: Thu Jan 17, 2019 3:31 am

Re: could someone convert this to titan 2 im new with this s

Postby Mad » Thu Aug 15, 2019 6:44 am

Check out buffy's converter viewtopic.php?f=26&t=12027

Code: Select all
#pragma METAINFO("c.gpc", 1, 0, "Buffy's GPC Converter v0.25r3")
#include <titanone.gph>
 
 
// Version 1.5
/*--------------------------------------------------------------------------------------
  __  __                 _              ___           _          _  _         __  __    |
 |  \/  | _ _  ___  _ _ (_) ___  _ _   | __|___  _ _ | |_  _ _  (_)| |_  ___  \ \/ /    |
 | |\/| || '_|/ _ \| '_|| |/ _ \| ' \  | _|/ _ \| '_||  _|| ' \ | ||  _|/ -_)  >  <     |
 |_|  |_||_|  \___/|_|  |_|\___/|_||_| |_| \___/|_|   \__||_||_||_| \__|\___| /_/\_\    |
                                                                                        |
---------------------------------------------------------------------------------------**/
/* Big Thanks to the Wonderful magnificent hooman that is Batts. <3
/*-------------------------------------------------------------------|
  ___        _    _                _                            _    |
 | _ ) _  _ | |_ | |_  ___  _ _   | |    __ _  _  _  ___  _  _ | |_  |
 | _ \| || ||  _||  _|/ _ \| ' \  | |__ / _` || || |/ _ \| || ||  _| |
 |___/ \_,_| \__| \__|\___/|_||_| |____|\__,_| \_, |\___/ \_,_| \__| |
                                               |__/                  |
--------------------------------------------------------------------**/
/*-----------------------------------------------------------
  ___            _                   _    _                 |
 |_ _| _ _   ___| |_  _ _  _  _  __ | |_ (_) ___  _ _   ___ |
  | | | ' \ (_-<|  _|| '_|| || |/ _||  _|| |/ _ \| ' \ (_-< |
 |___||_||_|/__/ \__||_|   \_,_|\__| \__||_|\___/|_||_|/__/ |
                                                            |
Myth - Fortnite changes settings that affect aimabuse       |
values. Users constantly change values. Well this script    |
is a AimAbuse Progression that will start at the min wait   |
time & work it's way upto the Max wait time.                |                                             
            Progression AimAbuse                            |
                                                            |
Progression from min_hold(minimum time in ms that LT        |
will be held) to max_hold progression (maximum time in      |
ms that LT will be held)                                    |
held time will be increased by custom increments(inc_hold =)|
until it reaches it limit max_hold.                         |
                                                            |
Wait time progression for combo section (wait(ab_wait);)    |
min_wait  = minimum wait time in ms after LT release        |
max_wait = maximum time in ms after LT release              |
inc_wait  = value to inc/dec from wait time                 |
                                                            |
  int dir_hold = 1;  //-- 1 = increase / 0 = decrease       |
  int dir_wait = 1;                                         |
                                                            |
             1 = Starts from Min - Max                      |
             0 = Starts from max - Min                      |
                                                            |
        SingleShot = Hold L2_LT(ADS) + RB_R1                |
                                                            |
         DropShot = Hold L2_LT(ADS) + X_SQURAE              |
                                                            |
                                                            |
                                                            |
           Strafe = Hold LT_L2(ADS) + Left for 200ms        |
           to prevent toggle on-off while pinging           |
           enemies posistion.                               |
                                                            |
                                                            |
                                                            |
            RapidFire = LT_L2(ADS) + Right                  |       
                                                            |
                                                            |
                                                            |
            Build-mode = B/Circle - L'E'D's Flash           |
                    Suspend mods while                      |
            entering build mode so mods won't               |
            interfere with building and will                |
            resume once out of build by pressing B/Circle   |
                    Example... If                           |
            DropShot was active enter build mode DropShot   |
            will deacivate, then when exiting buildMode by  |
            pressing B/Circle. DropShot will activate       |
            AimAssist,SingleShot and AimAbuse               |
            will always be active even in build mode.       |
                                                            |
          Reset/Mods Off = View/Share + Down L.E.D = red    |
          Except AimAssist,AimAbuse,SingleShot.             |
          If L.E.D.s or buildmode out of sync               |
          reset.                                            |
                                                            |
                                                            |
                                                            |
/*----------------------------------------------------------------------------------------------------------------|
|  ___  ___   ___    ___  ___  ___  ___  ___  ___  ___   _  _     _    ___  __  __     _    ___  _   _  ___  ___  |
| | _ \| _ \ / _ \  / __|| _ \| __|/ __|/ __||_ _|/ _ \ | \| |   /_\  |_ _||  \/  |   /_\  | _ )| | | |/ __|| __| |
| |  _/|   /| (_) || (_ ||   /| _| \__ \\__ \ | || (_) || .` |  / _ \  | | | |\/| |  / _ \ | _ \| |_| |\__ \| _|  |
| |_|  |_|_\ \___/  \___||_|_\|___||___/|___/|___|\___/ |_|\_| /_/ \_\|___||_|  |_| /_/ \_\|___/ \___/ |___/|___| |
| ----------------------------------------------------------------------------------------------------------------**/
//--minimum time in ms that LT will be held
//--maximum time in ms that LT will be held
//--value to inc/dec from hold time
//--minimum wait time in ms after LT release
//--maximum time in ms after LT release
//--value to inc/dec from wait time
//--initial values
//-- 1 = increase / 0 = decrease
/*--------------------------------------------------------------------------------------------------------------       
                                     \ \ / /__ _  _ _ (_) __ _ | |__ | | ___  ___                              |
                                      \ V // _` || '_|| |/ _` || '_ \| |/ -_)(_-<                              |
                                       \_/ \__,_||_|  |_|\__,_||_.__/|_|\___|/__/                              |
--------------------------------------------------------------------------------------------------------------**/
// SingleShot = Hold L2_LT(ADS) + RB_R1
//DropShot Hold L2_LT(ADS) + X_SQURAE
//Strafe Hold LT_L2(ADS) + Left
//InstaEdit
//Your Custom edit Button
//Your Custom Reset edit button
//Your custom edit confirm button
//AimAbuse - Make sure the one you want is set to TRUE set the other one to FALSE
// AimAbuse kicks in straight away with ADS only
// AimAbuse press sensitive- for snipers use
//Aim Assist
//RapidFire LT_L2(ADS) + Right
/*
Build Mode Will suspend mods
when entering build mode and
resume once out of build mode**/
// Reset Mods
// Colour
//1. Blue
//2. Red
//3. Lime/Green
// Bright Green
//4. Fuchsia/Pink
//5. SkyBlue
//6. Yellow
//7. White
/*-----------------------------------------------------------
  __  __        _        ___           _    _                |
 |  \/  | __ _ (_) _ _  / __| ___  __ | |_ (_) ___  _ _      |
 | |\/| |/ _` || || ' \ \__ \/ -_)/ _||  _|| |/ _ \| ' \     |
 |_|  |_|\__,_||_||_||_||___/\___|\__| \__||_|\___/|_||_|    |
------------------------------------------------------------**/
//EVERYTHING IS OFF
//EVERYTHING IS ON
// Dropshot IS ON(LimeGreen)
// Strafe IS ON(LightBlue)
// RapidFre IS ON(Green)
// Dropshot,Strafe ON   
// Dropshot,RapidFire ON(Blue)
// Strafe,RapidFire ON(Purple)
/*----------------------------------------------------------------------------------------------------------------*
|  ___  ___   ___    ___  ___  ___  ___  ___  ___  ___   _  _     _    ___  __  __     _    ___  _   _  ___  ___  |
| | _ \| _ \ / _ \  / __|| _ \| __|/ __|/ __||_ _|/ _ \ | \| |   /_\  |_ _||  \/  |   /_\  | _ )| | | |/ __|| __| |
| |  _/|   /| (_) || (_ ||   /| _| \__ \\__ \ | || (_) || .` |  / _ \  | | | |\/| |  / _ \ | _ \| |_| |\__ \| _|  |
| |_|  |_|_\ \___/  \___||_|_\|___||___/|___/|___|\___/ |_|\_| /_/ \_\|___||_|  |_| /_/ \_\|___/ \___/ |___/|___| |
------------------------------------------------------------------------------------------------------------------|                                                                                                           
**/
//--device monitor
//--ads only
//-- ads press sensitive 95%
/*-----------------------------------------------
  ___            _           ___     _  _  _     |
 |_ _| _ _   ___| |_  __ _  | __| __| |(_)| |_   |
  | | | ' \ (_-<|  _|/ _` | | _| / _` || ||  _|  |
 |___||_||_|/__/ \__|\__,_| |___|\__,_||_| \__|  |
------------------------------------------------**/
/*----------------------------------------------------
  ___  _              _       ___  _          _       |
 / __|(_) _ _   __ _ | | ___ / __|| |_   ___ | |_     |
 \__ \| || ' \ / _` || |/ -_)\__ \| ' \ / _ \|  _|    |
 |___/|_||_||_|\__, ||_|\___||___/|_||_|\___/ \__|    |
               |___/                                  |
-----------------------------------------------------**/
/*--------------------------------------------
    ___                   ___  _          _  |
 |   \  _ _  ___  _ __ / __|| |_   ___ | |_  |
 | |) || '_|/ _ \| '_ \\__ \| ' \ / _ \|  _| |
 |___/ |_|  \___/| .__/|___/|_||_|\___/ \__| |
                 |                           |
--------------------------------------------**/
/*---------------------------------
  ___  _                __         |
 / __|| |_  _ _  __ _  / _| ___    |
 \__ \|  _|| '_|/ _` ||  _|/ -_)   |
 |___/ \__||_|  \__,_||_|  \___|   |
--------------------------------- **/
/*-----------------------------------------------
    _    _            _            _      _     |
   /_\  (_) _ __     /_\   ___ ___(_) ___| |_   |
  / _ \ | || '  \   / _ \ (_-<(_-<| |(_-<|  _|  |
 /_/ \_\|_||_|_|_| /_/ \_\/__//__/|_|/__/ \__|  |
-----------------------------------------------**/
/*---------------------------------------------
  ___              _     _  ___  _            |
 | _ \ __ _  _ __ (_) __| || __|(_) _ _  ___  |
 |   // _` || '_ \| |/ _` || _| | || '_|/ -_) |
 |_|_\\__,_|| .__/|_|\__,_||_|  |_||_|  \___| |
            |_|                               |
---------------------------------------------**/
/*-------------------------------------------
  ___      _ _    _   __  __         _      |
 | _ )_  _(_) |__| | |  \/  |___  __| |___  |
 | _ \ || | | / _` | | |\/| / _ \/ _` / -_) |
 |___/\_,_|_|_\__,_| |_|  |_\___/\__,_\___| |
--------------------------------------------**/
/*
-------------------------------
  ___             _           |
 | _ \___ ___ ___| |_         |
 |   / -_|_-</ -_)  _|        |
 |_|_\___/__/\___|\__|        |
                              |
------------------------------**/
/*--------------------------------------------------------------------------
|  ___  ___   __  __  ___   ___    ___  ___  ___  _____  ___  ___   _  _    |
| / __|/ _ \ |  \/  || _ ) / _ \  / __|| __|/ __||_   _||_ _|/ _ \ | \| |   |
|| (__| (_) || |\/| || _ \| (_) | \__ \| _|| (__   | |   | || (_) || .` |   |
| \___|\___/ |_|  |_||___/ \___/  |___/|___|\___|  |_|  |___|\___/ |_|\_|   |
---------------------------------------------------------------------------**/
/*---------------------------------------------
   __                  _    _                  |
  / _| _  _  _ _   __ | |_ (_) ___  _ _   ___  |
 |  _|| || || ' \ / _||  _|| |/ _ \| ' \ (_-<  |
 |_|   \_,_||_||_|\__| \__||_|\___/|_||_|/__/  |
----------------------------------------------**/
//--adding to val
//--max reached
//--change direction
//--subtracting
//--min reached
//--change direction
 
 
 
 
define VIEW = 1;
define MENU = 2;
define RB_R1 = 3;
define RT_R2 = 4;
define RS_R3 = 5;
define LB_L1 = 6;
define LT_L2 = 7;
define LS_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 Y_TRI = 17;
define B_CIR = 18;
define A_CROSS = 19;
define X_SQUARE = 20;
define Off = 0;
define min_hold = 180;
define max_hold = 400;
define inc_hold = 10;
define min_wait = 20;
define max_wait = 60;
define inc_wait = 5;
define Blue = 1;
define Red = 2;
define Green = 3;
define Pink = 4;
define SkyBlue = 5;
define Yellow = 6;
define White = 7;
define Bright_Green = 17;
 
data(1,
2, 0, 0, 0,
0, 2, 0, 0,
0, 0, 2, 0,
0, 0, 3, 0,
0, 0, 0, 2,
2, 0, 2, 0,
0, 2, 2, 0,
2, 2, 2, 2
);
 
int ab_hold = min_hold;
int ab_wait = min_wait;
int val_idx;
int dir_hold = 1;
int dir_wait = 1;
int SingleShot = TRUE;
int DropShot = FALSE;
int DS_BTN = RS_R3;
int DS_Time = 40;
int Strafe = FALSE;
int strafeLeft,  strafeRight;
int Rand = 32767;
int EDIT_BTN = RIGHT;
int RESET_BTN = RS_R3;
int CONFIRM_BTN = RIGHT;
int edit = FALSE;
int WAIT;
int num,  i,  a;
int button;
int ADS_ONLY = TRUE;
int Press_Sensitive = FALSE;
int aa_p = 24;
int aa_n =- 24;
int aa_delay = 20;
int release = 25;
int RapidFire = FALSE;
int RF_Time = 40;
int Build_Mode;
int Reset;
int led_color;
int cycle_led;
int Col_ind;
 
main {
    if ((!DropShot && !Strafe && !RapidFire)) f_color_led(Red);
    if ((DropShot && Strafe && RapidFire)) f_color_led(Green);
    if ((DropShot && !Strafe && !RapidFire)) f_color_led(White);
    if ((!DropShot && Strafe && !RapidFire)) f_color_led(Yellow);
    if ((!DropShot && !Strafe && RapidFire)) f_color_led(Pink);
    if ((DropShot && Strafe && !RapidFire)) f_color_led(SkyBlue);
    if ((DropShot && !Strafe && RapidFire)) f_color_led(Blue);
    if ((!DropShot && Strafe && RapidFire)) f_color_led(Bright_Green);
    set_val(30, ab_hold / 10);
    set_val(31, ab_wait / 10);
    if (ADS_ONLY) if (get_val(7)) {
        if (!combo_running(c_AIM_ABUSE)) {
            ab_hold = f_progression(ab_hold, min_hold, max_hold, inc_hold, dir_hold, 1);
            ab_wait = f_progression(ab_wait, min_wait, max_wait, inc_wait, dir_wait, 2);
            combo_run(c_AIM_ABUSE);
        }
    }
    if (Press_Sensitive) if (get_val(7) > 95) {
        if (!combo_running(c_AIM_ABUSE)) {
            ab_hold = f_progression(ab_hold, min_hold, max_hold, inc_hold, dir_hold, 1);
            ab_wait = f_progression(ab_wait, min_wait, max_wait, inc_wait, dir_wait, 2);
            combo_run(c_AIM_ABUSE);
        }
    }
    if (get_val(EDIT_BTN) && get_ptime(EDIT_BTN)) {
        edit = TRUE;
    }
    if (get_val(EDIT_BTN)) {
        edit = TRUE;
    }
    if (edit == TRUE) {
        if (get_val(RESET_BTN)) {
            combo_run(c_wait1);
            f_set_click(CONFIRM_BTN, 1, 100);
            edit = FALSE;
        }
        if (event_release(RT_R2) || get_val(Y_TRI)) {
            f_set_click(CONFIRM_BTN, 1, 0);
            edit = FALSE;
        }
    }
    if (a) {
        if (i < num) {
            if (!combo_running(c_master)) {
                combo_run(c_master);
            }
        }
        else if (i > num) {
            a = FALSE;
        }
    }
    if (get_val(LT_L2) && get_val(RB_R1)) {
        SingleShot =! SingleShot;
        combo_run(c_SingleShot);
        set_val(RB_R1, 0);
    }
    else {
        combo_stop(c_SingleShot);
    }
    if (get_val(LT_L2) && event_press(X_SQUARE)) {
        DropShot =! DropShot;
    }
    if (get_val(LT_L2)) {
        if (get_val(LEFT) && get_ptime(LEFT) > 200) {
            Strafe =! Strafe;
        }
    }
    if (get_val(7) > 98) {
        combo_run(c_AimAssist);
        if (abs(get_val(9)) > 21 || abs(get_val(10)) > 21) {
            combo_stop(c_AimAssist);
        }
    }
    if (get_val(LT_L2) && event_press(RIGHT)) RapidFire =! RapidFire;
    if (event_press(B_CIR)) {
        Build_Mode =! Build_Mode;
    }
    if (Build_Mode) {
        cycle_led = 5;
        led_color = White;
        if (cycle_led) combo_run(c_CYCLE_LEDS);
    }
    else {
        if (Strafe) {
            if ((get_val(LT_L2)) && (get_val(RT_R2))) {
                combo_run(c_AutoStrafe);
            }
        }
        if (DropShot) {
            if ((get_val(LT_L2)) && (get_val(RT_R2))) {
                combo_run(c_DropShot);
            }
        }
        if (RapidFire) {
            if ((get_val(LT_L2)) && (get_val(RT_R2))) {
                combo_run(c_RapidFire);
            }
        }
        if (get_val(VIEW) && event_press(DOWN)) {
            Reset =! Reset;
            if (Reset) {
                Strafe = FALSE;
                DropShot = FALSE;
                RapidFire = FALSE;
                Build_Mode = FALSE;
            }
        }
    }
}
 
 
combo c_AIM_ABUSE {
    set_val(7, 100);
    wait(ab_hold);
    set_val(7, 0);
    wait(ab_wait);
}
 
combo c_SingleShot {
    set_val(4, 100);
    wait(100);
    wait(250);
    set_val(4, 100);
}
 
combo c_DropShot {
    set_val(DS_BTN, 100);
    wait(40);
    wait(DS_Time);
}
 
combo c_AutoStrafe {
    strafeRight = f_Rand(500, 1000);
    set_val(PS4_LX, 40);
    wait(strafeRight);
    strafeLeft = f_Rand(500, 1000);
    set_val(PS4_LX, inv(40));
    wait(strafeLeft);
    set_val(PS4_LX, 40);
}
 
combo c_AimAssist {
    set_val(10, f_xy_val(10, aa_p));
    wait(aa_delay);
    set_val(9, f_xy_val(9, aa_p));
    wait(aa_delay);
    set_val(10, f_xy_val(10, aa_n));
    wait(aa_delay);
    set_val(9, f_xy_val(9, aa_n));
    wait(aa_delay);
}
 
combo c_RapidFire {
    set_val(4, 100);
    wait(RF_Time);
    set_val(4, 0);
    wait(RF_Time);
}
 
combo c_CYCLE_LEDS {
    f_color_led(i);
    wait(200);
    i ++ ;
    if (i == 8) {
        cycle_led -- ;
        i = 1;
    }
    if (!cycle_led) {
        f_color_led(led_color);
        i = 1;
    }
}
 
combo c_wait1 {
    wait(50);
    wait(55);
}
 
combo c_master {
    wait(WAIT);
    set_val(button, 100);
    wait(28);
    set_val(button, 0);
    wait(28);
    i = i + 1;
}
 
 
function f_progression(f_val, f_min, f_max, f_inc, f_dir, f_idx) {
    if (f_dir) {
        f_val += f_inc;
        if (f_val <= f_max)
            return f_val;
        if (f_val > f_max) {
            val_idx[ - (f_idx)] = 0;
            return f_val - f_inc;
        }
    }
    else {
        f_val -= f_inc;
        if (f_val >= f_min)
            return f_val;
        if (f_val < f_min) {
            val_idx[ - (f_idx)] = 1;
            return f_val + f_inc;
        }
    }
    return FALSE;
}
 
function f_xy_val(f_axis, f_val) {
    if (abs(get_val(f_axis)) < release)
        return f_val;
    return get_val(f_axis);
}
 
function f_set_click(B, Num, Wait) {
    WAIT = Wait;
    i = 0;
    button = B;
    num = Num;
    a = TRUE;
}
 
function f_Rand(t1_min, t1_max) {
    Rand = Rand * 8403 % 32767;
    if (t1_min >= Off && t1_max >= Off)
        return abs(t1_min + (Rand && (t1_max - t1_min)));
    return t1_min + (Rand % (t1_max - t1_min));
}
 
function f_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));
}
 
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

How to convert device max scripts to titan two?

Postby neuravita » Sun Aug 25, 2019 6:41 pm

I know there was an easy method someone mentioned before, however upon searching it does not turn up. Can someone enlighten me please? (Had something to do with adding a prefix or suffix to the existing code)
User avatar
neuravita
First Sergeant
First Sergeant
 
Posts: 51
Joined: Sun Dec 16, 2018 10:53 pm

Re: How to convert device max scripts to titan two?

Postby Buffy » Sun Aug 25, 2019 6:49 pm

ConsoleTuner Support Team || Discord || Custom Scripts
User avatar
Buffy
Lieutenant
Lieutenant
 
Posts: 422
Joined: Wed Jul 20, 2016 5:23 am

2 gpc error any help

Postby xphyz » Sun Aug 25, 2019 8:45 pm

Code: Select all
// GPC Online Library
// modern_warfare_ultimate.gpc
 
 
 /*
 = = = = = = = = = = = = = = = = = = =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = /\/\/\  Made By ItzSnack  /\/\/\  =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = = = = = = = = = = = = = = = = = = =
 
 ==========================
 === ☞ Version 1.1 ☜ ===
 ==========================
 
 ================                                                       
 === FEATURES ===
 ================
 Aim Assist
 Anti Recoil
 Auto Run
 Drop Shot
 Jump On Shot
 Strafe
 Drop On Shot
 Hair Trigger
 Hold Breath
 Custom Sensitivity
 
 =================
 === Important ===
 =============================================================
 === Some features will have to be turned on in the script ===
 =============================================================
 
 =====================
 === Reset Toggles ===
 ==================================================
 === OPTIONS/MENU + SHARE/VIEW to reset toggles ===
 ==================================================
 
 ===================
 === Toggle Menu ===
 =============================================================================================================
 === Before being able to turn ON/OFF toggles you will have to open the toggle menu by doing the following ===
 === OPTIONS/MENU + D-PAD UP                                                                               ===
 === When ON your LED will flash Rainbow now you able to turn on any features you want                     ===
 === After you done make sure to disable the toggle menu                                                   ===
 === Your LED will be Black when your out of the toggle menu                                               ===
 =============================================================================================================
 
 ===================================================================================
 ===                          TOGGLES YOU CAN ACTIVATE                           ===
 ===================================================================================
 === Hold L2/LT And Press R3/RS For Rapid Fire                                   ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Press UP For Jump On Shot                                    ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Press DOWN For Drop Shot                                     ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Press LEFT For Strafe                                        ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Press RIGHT For Drop On Shot                                 ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 */

 
    //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;
 
    //Customize
    int Flipped = OFF; //Change OFF TO ON If you play with Flipped Triggers
    int AS = ON; //Change ON TO OFF If you don't want Aim Assist
    int RECOIL = ON; //Change ON TO OFF If you don't want Anti Recoil
    int RUN = OFF; //Change ON TO OFF If you don't want Auto Run
    int HT = ON; //Change ON TO OFF If you don't want Hair Trigger
    int HBT = OFF; //Change OFF TO ON If you want Hold Breath
    int CS = OFF; //Change ON TO OFF If you don't want Custom Sensitivity
 
    //Custom Buttons
    int Crouch_Button = CIRCLE; //Your crouch button
 
    //Speed Of Features
    int RF_Speed = 40; //Rapid Fire Speed
    int DS_Speed = 80; //Drop Shot Speed
    /*NOTE:
    Higher values = Slower
    Lower values = Faster*/

 
    //Anti Recoil
    int AR = 10; //Anti Recoil
    int Release = 10; //Maximum 10+ Higher than Anti Recoil
    int ARS;
 
    //Aim Assist
    int AP = 20;
    int AM = -20;
    int Delay = 20
    int ARelease = 21;
 
    //Custom Sensitivity
    int GEN_SENS = 100;
    int ADS_SENS = 100;
    int FIRE_SENS = 100;
    int ADS_FIRE_SENS = 100;
    int GRENADE_SENS = 100;
    int USE_SENS;
    /*NOTE:
    Default = 100
    Ranges from 0 to 327*/
   
 
    //Strafe
    int RIGHT_Speed = 200; //How long to go RIGHT
    int LEFT_Speed = 200; //How long to go LEFT
 
    //Toggles
    int RF_Toggle;
    int JS_Toggle;
    int DS_Toggle;
    int SS_Toggle;
    int STRAFE_Toggle;
    int Toggle_Menu;
    int Toggle_Rumble;
 
    main {
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
    RF_Toggle = OFF;
    JS_Toggle = OFF;
    DS_Toggle = OFF;
    SS_Toggle = OFF;
    STRAFE_Toggle = OFF;
    Toggle_Menu = OFF;
    combo_run(Menu_Rumble);}
 
    if(CS)
    if(!get_val(L2) && !get_val(R2)) {
    USE_SENS=GEN_SENS;}
    else if(get_val(L2) && !get_val(R2)) {
    USE_SENS=ADS_SENS;}   
    else if(!get_val(L2) && get_val(R2)) {
    USE_SENS=FIRE_SENS;}
    else if(get_val(L2) && get_val(R2)) {
    USE_SENS=ADS_FIRE_SENS;}
    else if(get_val(R1)) {
    USE_SENS=GRENADE_SENS;}
    sensitivity(RY,NOT_USE,USE_SENS);
    sensitivity(RX,NOT_USE,USE_SENS);
 
    if(Flipped) {
    swap(R1,R2);
    swap(L1,L2);}
 
    LED(0,0,0,0);
 
    if(HBT)
    if(get_val(L2))
    set_val(L3,100);
 
    if(HT)
    deadzone(L2,R2,100,100);
 
    if(RUN)
    if(get_val(LY)<-90)
    set_val(L3,100);
 
    if(AS)
    if(get_val(L2)) combo_run(AS);
 
    if(RECOIL)
    if(get_val(L2) && get_val(R2))
    combo_run(AR);
 
    if(RF_Toggle && get_val(R2))
    combo_run(RF);
 
    if(SS_Toggle && event_press(R2))
    set_val(CIRCLE,100);
 
    if(JS_Toggle && get_val(R2))
    set_val(CROSS,100);
 
    if(DS_Toggle && get_val(R2))
    combo_run(DS);
 
    if(STRAFE_Toggle && get_val(L2) && get_val(R2))
    combo_run(Strafe);else combo_stop(Strafe);
 
    if(get_val(OPTIONS) && event_press(UP)) {
    Toggle_Menu=!Toggle_Menu;
    Toggle_Rumble=!Toggle_Rumble;}
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
    combo_run(Rainbow_Flash);
 
    if(get_val(L2) && event_press(R3)) {
    RF_Toggle=!RF_Toggle;
    if(RF_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(UP)) {
    JS_Toggle=!JS_Toggle;
    if(JS_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(DOWN)) {
    DS_Toggle=!DS_Toggle;
    if(DS_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(RIGHT)) {
    SS_Toggle=!SS_Toggle;
    if(SS_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(LEFT)) {
    STRAFE_Toggle=!STRAFE_Toggle;
    if(STRAFE_Toggle) combo_run(Flash_ON);
    else combo_run(Flash_OFF);}}
 
    if(abs(get_val(RY)) > Release || abs(get_val(RX)) > Release) {
    combo_stop(AR);}}
 
    combo AR {
    ARS = get_val(RY) + AR;
    if(ARS > 100) ARS = 100;
    set_val(RY,ARS);}
 
    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 DS {
    set_val(Crouch_Button,100);
    wait(40);
    set_val(Crouch_Button,0);
    wait(DS_Speed);}
 
    combo Strafe {
    set_val(11,100);
    wait(RIGHT_Speed);
    set_val(11,-100);
    wait(LEFT_Speed);}
 
    combo RF {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);}
 
    combo Rainbow_Flash {
    LED(2,0,2,0);
    wait(100);
    LED(0,0,0,0);
    wait(100);
    LED(0,0,0,2);
    wait(100);
    LED(0,0,0,0);
    wait(100);
    LED(0,2,2,0);
    wait(100);
    LED(0,0,0,0);
    wait(100);}
 
    combo Menu_Rumble {
    set_rumble(RUMBLE_B,100);
    wait(200);
    reset_rumble();
    Toggle_Rumble = OFF;}
 
    combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();}
 
    combo Flash_OFF {
    LED(0,2,0,0);
    set_rumble(RUMBLE_B,100);
    wait(200);
    reset_rumble();
    LED(0,0,0,0);
    wait(100);
    set_rumble(RUMBLE_B,100);
    LED(0,2,0,0);
    wait(200);
    reset_rumble();}
 
    function LED(a,b,c,d) {
    set_led(LED_1,a);
    set_led(LED_2,b);
    set_led(LED_3,c);
    set_led(LED_4,d);}
 
    define ON = TRUE;
    define OFF = FALSE;

GPC error: full customs.gpc(251): Invalid symbol redefinition 'AR'
GPC error: full customs.gpc(256): Invalid symbol redefinition 'AS'
User avatar
xphyz
Private
Private
 
Posts: 1
Joined: Sun Aug 25, 2019 8:42 pm

Re: 2 gpc error any help

Postby Mad » Sun Aug 25, 2019 10:22 pm

You need to convert it to work on the titan two: viewtopic.php?f=26&t=12027
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: T1/CM to Titan Two Script Converter [v0.26 - 08/26/2019]

Postby Buffy » Tue Aug 27, 2019 4:07 am

With the new "external" tools, I've added instructions on how to set the converter up (v0.26 or newer) to work with GtunerIV's External Tools. Very cool feature!
ConsoleTuner Support Team || Discord || Custom Scripts
User avatar
Buffy
Lieutenant
Lieutenant
 
Posts: 422
Joined: Wed Jul 20, 2016 5:23 am

PreviousNext

Return to Tutorials and FAQs

Who is online

Users browsing this forum: No registered users and 43 guests