Need help with some modifications in this Fortnite script

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

Need help with some modifications in this Fortnite script

Postby dorindain » Sun Nov 24, 2019 9:23 am

Hello,

This script's part allows us to confirm edit on releasing the select button and confirming the reset automatically after pressing the reset key. But since Epic has added the option of confirming edits on release, part of this script is useless now.

I was wondering if anyone here could modify this script and remove the edit confirm on release part, but add a new part where just pressing a single key would reset the edit. So, pressing a single key would enter the edit mode, reset the build, and confirm the reset.

I can't get my head around how to do it, but I believe pros here can do this without a problem. Thanks.

Code: Select all
/*
 = = = = = = = = = = = = = = = = = = =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = /\/\/\  Made By ItzSnack  /\/\/\  =
 = /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
 = = = = = = = = = = = = = = = = = = =
 
 ===================
 === Version 2.8 ===
 ===================
 
 ================
 === FEATURES ===
 ================
 Aim Abuse - Hold L2/LT All the way down
 Aim Assist
 ADS/FIRE Slowdown
 Ghost Peek
 Rapid Fire
 100% ACCURACY
 Drop Shot
 Jump Shot
 Insta Edit
 Auto Run
 Strafe
 
 =================
 === Important ===
 ========================================================================
 === Recommended you read all the text below to understand everything ===
 ========================================================================
 
 =============================================================
 === Must use Legacy Look Controls for Aim Abuse to work   ===
 =============================================================
 
 =====================
 === 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 D-PAD UP For Rapid Fire                                ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Hold/Tap R1/RB For 100% ACCURACY                             ===
 ===================================================================================
 === Hold L2/LT And Press D-PAD RIGHT For Drop Shot                              ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Hold/Tap D-PAD LEFT For Ghost Peek                           ===
 ===================================================================================
 === Hold L2/LT And Press D-PAD DOWN For Jump Shot                               ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Press R3/RS For Strafe                                       ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 === Hold L2/LT And Press TRIANGLE/Y For Anti Recoil                             ===
 === 1 Rumble = ON 2 = OFF                                                       ===
 ===================================================================================
 */
 
    define ON = TRUE;
    define OFF = FALSE;
 
    //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 R1L1 = OFF; //Change OFF TO ON If you want Flipped Triggers
    int ABT = OFF; //Change ON TO OFF If you don't want Aim Abuse
    int AST = OFF; //Change ON TO OFF If you don't want Aim Assist
    int ART = OFF; //Change OFF TO ON If you want Auto Run
    int CS = OFF; //Change OFF TO ON If you want ADS/FIRE Slowdown
 
    //Customize Toggles
    int Recoil = ON; //Change ON TO OFF If you don't want Anti Recoil ON By Defualt
    int RFT = OFF; //Change OFF TO ON If you want Rapid Fire ON By Defualt
    int DST = OFF; //Change OFF TO ON If you want Drop Shot ON By Defualt
    int JST = OFF; //Change OFF TO ON If you want Jump Shot ON By Defualt
    int STT = OFF; //Change OFF TO ON If you want Strafe ON By Defualt
 
    //Custom Buttons
    int Crouch_Button = R3; //Your Crouch Button
 
    //Speed Of Features
    int RF_Speed = 40; //Rapid Fire Speed
    int DS_Speed = 30; //Drop Shot Speed
    int JS_Speed = 40; //Jump Shot Speed
    int ST_Left = 160; //Left Strafe Speed
    int ST_Right = 160; //Right Strafe Speed
    /*NOTE:
    Higher values = Slower
    Lower values = Faster
    Everything is in milliseconds*/
 
    //Insta Edit
    int EDIT_BUTTON_HOLD = OFF; //Does your edit button has a hold delay? ON means Yes -- OFF mean No
    int HOLD_TIME = 100; //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 EDIT_BUTTON = RIGHT; //Your Edit Button
    int CONFIRM_BUTTON = CIRCLE; //Your Confirm Button
    int RESET_EDIT_BUTTON = L2; //Your Reset Edit Button
 
 
    //Aim Assist
    int AP = 17;
    int AM = -17;
    int Delay = 20;
    int Release = 18;
    /*NOTE:
    Increase AP & AM For more Assist but it can cause shake
    Decrease AP & AM If you feel shake and don't like it
    Release Is recommended to be 1 higher than AP & AM*/
 
 
    //Aim Abuse
    int HOLD = 230;
    int RELEASE = 20;
 
 
    //Anti Recoil
    int AR = 4; //Anti Recoil
 
    //ADS & FIRE Slowdown
    int ADS_FIRE_SENS = 80;
    /*NOTE
    Default = 100
    Ranges from 0 to 327*/
 
 
    //Toggles
    int ARS;
    int WAIT;
    int num,i,a;
    int button;
    int edit = OFF;
    int Remove_Block,Toggle_Rumble,Toggle_Menu,Build_Toggle;
 
 
    main {
 
 
    if(R1L1) {
    swap(R1,R2);
    swap(L1,L2);}
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
    RFT = OFF;
    DST = OFF;
    JST = OFF;
    STT = OFF;
    Recoil = OFF;
    Build_Toggle = OFF;
    Toggle_Menu = OFF;
    combo_run(Menu_Rumble);}
 
    LED(0,0,0,0);
 
    if(CS)
    if(get_val(L2) && get_val(R2)) {
    sensitivity(RY,NOT_USE,ADS_FIRE_SENS);
    sensitivity(RX,NOT_USE,ADS_FIRE_SENS);}
 
    if(event_press(CIRCLE)) {
    Build_Toggle=!Build_Toggle;}
 
    if(!Build_Toggle) {   
    if(JST && event_press(R2))
    combo_run(JumpShot);
    if(STT && get_val(L2) && get_val(R2))
    combo_run(Strafe);
    if(RFT && get_val(R2))
    combo_run(RapidFire);
    if(DST && get_val(L2) && get_val(R2))
    combo_run(DropShot);
    if(Recoil && get_val(L2) && get_val(R2))
    combo_run(cAR);
    if(ABT && get_val(L2)> 90)
    combo_run(AimAbuse);
    if(AST && get_val(L2)) combo_run(AS);
    if(get_val(L2) && get_val(LEFT)) {
    set_val(LEFT,0);
    combo_run(GhostPeek);}
    if(get_val(L2) && get_val(R1)) {
    set_val(R1,0);
    combo_run(PerfectAccuracy);
    } else {
    combo_stop(PerfectAccuracy);}}
    if(get_val(TRIANGLE))
    Build_Toggle = OFF;
 
    if(ART)
    if(get_val(LY) <-90) set_val(L3,100);
 
    if(get_val(OPTIONS) && event_press(UP)) {
    Toggle_Menu=!Toggle_Menu;
    Toggle_Rumble=!Toggle_Rumble;
    Build_Toggle = OFF;}
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
    combo_run(Rainbow_Flash);
 
    if(get_val(L2) && event_press(UP)) {
    RFT=!RFT;
    if(RFT)combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(RIGHT)) {
    DST=!DST;
    if(DST)combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(DOWN)) {
    JST=!JST;
    if(JST)combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(R3)) {
    STT=!STT;
    if(STT)combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2) && event_press(TRIANGLE)) {
    Recoil=!Recoil;
    if(Recoil)combo_run(Flash_ON);
    else combo_run(Flash_OFF);}
 
    if(get_val(L2)) {
    if(event_press(UP)) {
    Remove_Block=!Remove_Block;}
    if(event_press(RIGHT)) {
    Remove_Block=!Remove_Block;}
    if(event_press(DOWN)) {
    Remove_Block=!Remove_Block;}
    if(event_press(R3)) {
    Remove_Block=!Remove_Block;}
    if(event_press(TRIANGLE)) {
    Remove_Block=!Remove_Block;}
    set_val(UP,0);set_val(RIGHT,0);set_val(DOWN,0);set_val(R3,0);set_val(TRIANGLE,0);}}   
    if(get_val(OPTIONS)) {
    if(event_press(SHARE)) {
    Remove_Block=!Remove_Block;}
    set_val(SHARE,0);}
 
    if(event_release(L2)) combo_stop(AimAbuse);
    if(abs(get_val(RY)) > AR + 2 || abs(get_val(RX)) > AR + 2) {
    combo_stop(cAR);}
 
 
    if(EDIT_BUTTON_HOLD) {
    if(get_val(EDIT_BUTTON) && get_ptime(EDIT_BUTTON) > HOLD_TIME) {
    edit = ON;}}
    else if(!EDIT_BUTTON_HOLD) {
    if(get_val(EDIT_BUTTON)) {
    edit = ON; }}
    if(edit == ON) { 
    if(event_release(R2) || event_press(RESET_EDIT_BUTTON) || get_val(TRIANGLE)) {
    set_click(CONFIRM_BUTTON,1,0);
    edit = OFF;}}
    if(a) {
    if(i < num) {
    if(!combo_running(Reset)) {
    combo_run(Reset);}}
    else if
    (i > num) {a = OFF;}}}   
 
    combo GhostPeek {
    set_val(Crouch_Button,100);
    wait(20);
    wait(10);
    set_val(R2,100);
    wait(20);
    set_val(Crouch_Button,100);
    wait(15);
    wait(10);}
 
    combo Strafe {
    set_val(LX,-100);
    wait(ST_Left);
    set_val(LX,100);
    wait(ST_Right);}
 
    combo JumpShot {
    set_val(CROSS,100);
    wait(JS_Speed);}
 
 
    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)}
 
    combo cAR {
    ARS = get_val(RY) + AR;
    if(ARS > 100) ARS = 100;
    set_val(RY,ARS);}
 
    combo DropShot {
    set_val(Crouch_Button,100);
    wait(60);
    wait(DS_Speed);
    set_val(Crouch_Button,100);}
 
 
    combo PerfectAccuracy {
    set_val(R2,100);
    wait(100);
    wait(250);
    set_val(R2,100);}
 
    combo AimAbuse {
    set_val(L2,100);
    wait(HOLD);
    set_val(L2,0);
    wait(RELEASE);}
 
    combo RapidFire {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);}
 
    combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();
    reset_leds();}
 
    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();
    reset_leds();}
 
    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 Reset {
    wait(WAIT);
    set_val(button,100);
    wait(28);
    set_val(button,0);
    wait(28);
    i=i + 1;}
 
    function set_click(B,Num,Wait) {
    WAIT=Wait;
    i=0;
    button = B;
    num = Num;
    a = ON;}
 
    function a_f(p,m) {
    if(abs(get_val(p)) < Release)
    return m;
    return get_val(p);}
 
    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);}
User avatar
dorindain
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Sat Mar 23, 2019 6:47 pm

Re: Need help with some modifications in this Fortnite scrip

Postby J2Kbr » Sun Nov 24, 2019 8:49 pm

Commented the parts which were performing the actions you want removed. Please check:
Code: Select all
/*
= = = = = = = = = = = = = = = = = = =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= /\/\/\  Made By ItzSnack  /\/\/\  =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= = = = = = = = = = = = = = = = = = =
 
===================
=== Version 2.8 ===
===================
 
================
=== FEATURES ===
================
Aim Abuse - Hold L2/LT All the way down
Aim Assist
ADS/FIRE Slowdown
Ghost Peek
Rapid Fire
100% ACCURACY
Drop Shot
Jump Shot
Insta Edit
Auto Run
Strafe
 
=================
=== Important ===
========================================================================
=== Recommended you read all the text below to understand everything ===
========================================================================
 
=============================================================
=== Must use Legacy Look Controls for Aim Abuse to work   ===
=============================================================
 
=====================
=== 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 D-PAD UP For Rapid Fire                                ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap R1/RB For 100% ACCURACY                             ===
===================================================================================
=== Hold L2/LT And Press D-PAD RIGHT For Drop Shot                              ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap D-PAD LEFT For Ghost Peek                           ===
===================================================================================
=== Hold L2/LT And Press D-PAD DOWN For Jump Shot                               ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press R3/RS For Strafe                                       ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press TRIANGLE/Y For Anti Recoil                             ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
*/

 
define ON = TRUE;
define OFF = FALSE;
 
//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 R1L1 = OFF; //Change OFF TO ON If you want Flipped Triggers
int ABT = OFF; //Change ON TO OFF If you don't want Aim Abuse
int AST = OFF; //Change ON TO OFF If you don't want Aim Assist
int ART = OFF; //Change OFF TO ON If you want Auto Run
int CS = OFF; //Change OFF TO ON If you want ADS/FIRE Slowdown
 
//Customize Toggles
int Recoil = ON; //Change ON TO OFF If you don't want Anti Recoil ON By Defualt
int RFT = OFF; //Change OFF TO ON If you want Rapid Fire ON By Defualt
int DST = OFF; //Change OFF TO ON If you want Drop Shot ON By Defualt
int JST = OFF; //Change OFF TO ON If you want Jump Shot ON By Defualt
int STT = OFF; //Change OFF TO ON If you want Strafe ON By Defualt
 
//Custom Buttons
int Crouch_Button = R3; //Your Crouch Button
 
//Speed Of Features
int RF_Speed = 40; //Rapid Fire Speed
int DS_Speed = 30; //Drop Shot Speed
int JS_Speed = 40; //Jump Shot Speed
int ST_Left = 160; //Left Strafe Speed
int ST_Right = 160; //Right Strafe Speed
/*NOTE:
Higher values = Slower
Lower values = Faster
Everything is in milliseconds*/

 
//Insta Edit
//int EDIT_BUTTON_HOLD = OFF; //Does your edit button has a hold delay? ON means Yes -- OFF mean No
//int HOLD_TIME = 100; //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 EDIT_BUTTON = RIGHT; //Your Edit Button
//int CONFIRM_BUTTON = CIRCLE; //Your Confirm Button
//int RESET_EDIT_BUTTON = L2; //Your Reset Edit Button
 
//Aim Assist
int AP = 17;
int AM = -17;
int Delay = 20;
int Release = 18;
/*NOTE:
Increase AP & AM For more Assist but it can cause shake
Decrease AP & AM If you feel shake and don't like it
Release Is recommended to be 1 higher than AP & AM*/

 
//Aim Abuse
int HOLD = 230;
int RELEASE = 20;
 
//Anti Recoil
int AR = 4; //Anti Recoil
 
//ADS & FIRE Slowdown
int ADS_FIRE_SENS = 80;
/*NOTE
Default = 100
Ranges from 0 to 327*/

 
//Toggles
int ARS;
int WAIT;
int num,i,a;
int button;
int edit = OFF;
int Remove_Block,Toggle_Rumble,Toggle_Menu,Build_Toggle;
 
main {
    if(R1L1) {
        swap(R1,R2);
        swap(L1,L2);
    }
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
        RFT = OFF;
        DST = OFF;
        JST = OFF;
        STT = OFF;
        Recoil = OFF;
        Build_Toggle = OFF;
        Toggle_Menu = OFF;
        combo_run(Menu_Rumble);
    }
 
    LED(0,0,0,0);
 
    if(CS)
    if(get_val(L2) && get_val(R2)) {
        sensitivity(RY,NOT_USE,ADS_FIRE_SENS);
        sensitivity(RX,NOT_USE,ADS_FIRE_SENS);
    }
 
    if(event_press(CIRCLE)) {
        Build_Toggle=!Build_Toggle;
    }
 
    if(!Build_Toggle) {   
        if(JST && event_press(R2))
        combo_run(JumpShot);
        if(STT && get_val(L2) && get_val(R2))
        combo_run(Strafe);
        if(RFT && get_val(R2))
        combo_run(RapidFire);
        if(DST && get_val(L2) && get_val(R2))
        combo_run(DropShot);
        if(Recoil && get_val(L2) && get_val(R2))
        combo_run(cAR);
        if(ABT && get_val(L2)> 90)
        combo_run(AimAbuse);
        if(AST && get_val(L2)) combo_run(AS);
        if(get_val(L2) && get_val(LEFT)) {
            set_val(LEFT,0);
            combo_run(GhostPeek);
        }
        if(get_val(L2) && get_val(R1)) {
            set_val(R1,0);
            combo_run(PerfectAccuracy);
        } else {
            combo_stop(PerfectAccuracy);
        }
    }
    if(get_val(TRIANGLE))
    Build_Toggle = OFF;
 
    if(ART)
    if(get_val(LY) <-90) set_val(L3,100);
 
    if(get_val(OPTIONS) && event_press(UP)) {
        Toggle_Menu=!Toggle_Menu;
        Toggle_Rumble=!Toggle_Rumble;
        Build_Toggle = OFF;
    }
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
        combo_run(Rainbow_Flash);
 
        if(get_val(L2) && event_press(UP)) {
            RFT=!RFT;
            if(RFT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(RIGHT)) {
            DST=!DST;
            if(DST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(DOWN)) {
            JST=!JST;
            if(JST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(R3)) {
            STT=!STT;
            if(STT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(TRIANGLE)) {
            Recoil=!Recoil;
            if(Recoil)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2)) {
            if(event_press(UP)) {
                Remove_Block=!Remove_Block;}
            if(event_press(RIGHT)) {
                Remove_Block=!Remove_Block;}
            if(event_press(DOWN)) {
                Remove_Block=!Remove_Block;}
            if(event_press(R3)) {
                Remove_Block=!Remove_Block;}
            if(event_press(TRIANGLE)) {
                Remove_Block=!Remove_Block;}
            set_val(UP,0);set_val(RIGHT,0);set_val(DOWN,0);set_val(R3,0);set_val(TRIANGLE,0);
        }
    }   
    if(get_val(OPTIONS)) {
        if(event_press(SHARE)) {
            Remove_Block=!Remove_Block;
        }
        set_val(SHARE,0);
    }
 
    if(event_release(L2)) combo_stop(AimAbuse);
    if(abs(get_val(RY)) > AR + 2 || abs(get_val(RX)) > AR + 2) {
        combo_stop(cAR);
    }
 
    /*
    if(EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON) && get_ptime(EDIT_BUTTON) > HOLD_TIME) {
            edit = ON;
        }
    }
    else if(!EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON)) {
            edit = ON;
        }
    }
    if(edit == ON) {
        if(event_release(R2) || event_press(RESET_EDIT_BUTTON) || get_val(TRIANGLE)) {
            set_click(CONFIRM_BUTTON,1,0);
            edit = OFF;
        }
    }
    */

 
    if(a) {
        if(i < num) {
            if(!combo_running(Reset)) {
                combo_run(Reset);
            }
        }
        else if
        (i > num) {
            a = OFF;
        }
    }
}   
 
combo GhostPeek {
    set_val(Crouch_Button,100);
    wait(20);
    wait(10);
    set_val(R2,100);
    wait(20);
    set_val(Crouch_Button,100);
    wait(15);
    wait(10);
}
 
combo Strafe {
    set_val(LX,-100);
    wait(ST_Left);
    set_val(LX,100);
    wait(ST_Right);
}
 
combo JumpShot {
    set_val(CROSS,100);
    wait(JS_Speed);
}
 
 
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);
}
 
combo cAR {
    ARS = get_val(RY) + AR;
    if(ARS > 100) ARS = 100;
    set_val(RY,ARS);}
 
combo DropShot {
    set_val(Crouch_Button,100);
    wait(60);
    wait(DS_Speed);
    set_val(Crouch_Button,100);
}
 
 
combo PerfectAccuracy {
    set_val(R2,100);
    wait(100);
    wait(250);
    set_val(R2,100);
}
 
combo AimAbuse {
    set_val(L2,100);
    wait(HOLD);
    set_val(L2,0);
    wait(RELEASE);
}
 
combo RapidFire {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);
}
 
combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();
    reset_leds();
}
 
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();
    reset_leds();
}
 
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 Reset {
    wait(WAIT);
    set_val(button,100);
    wait(28);
    set_val(button,0);
    wait(28);
    i=i + 1;
}
 
function set_click(B,Num,Wait) {
    WAIT=Wait;
    i=0;
    button = B;
    num = Num;
    a = ON;
}
 
function a_f(p,m) {
    if(abs(get_val(p)) < Release)
    return m;
    return get_val(p);
}
 
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);
}
 
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: Need help with some modifications in this Fortnite scrip

Postby dorindain » Mon Nov 25, 2019 5:36 pm

J2Kbr wrote:Commented the parts which were performing the actions you want removed. Please check:
Code: Select all
/*
= = = = = = = = = = = = = = = = = = =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= /\/\/\  Made By ItzSnack  /\/\/\  =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= = = = = = = = = = = = = = = = = = =
 
===================
=== Version 2.8 ===
===================
 
================
=== FEATURES ===
================
Aim Abuse - Hold L2/LT All the way down
Aim Assist
ADS/FIRE Slowdown
Ghost Peek
Rapid Fire
100% ACCURACY
Drop Shot
Jump Shot
Insta Edit
Auto Run
Strafe
 
=================
=== Important ===
========================================================================
=== Recommended you read all the text below to understand everything ===
========================================================================
 
=============================================================
=== Must use Legacy Look Controls for Aim Abuse to work   ===
=============================================================
 
=====================
=== 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 D-PAD UP For Rapid Fire                                ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap R1/RB For 100% ACCURACY                             ===
===================================================================================
=== Hold L2/LT And Press D-PAD RIGHT For Drop Shot                              ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap D-PAD LEFT For Ghost Peek                           ===
===================================================================================
=== Hold L2/LT And Press D-PAD DOWN For Jump Shot                               ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press R3/RS For Strafe                                       ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press TRIANGLE/Y For Anti Recoil                             ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
*/

 
define ON = TRUE;
define OFF = FALSE;
 
//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 R1L1 = OFF; //Change OFF TO ON If you want Flipped Triggers
int ABT = OFF; //Change ON TO OFF If you don't want Aim Abuse
int AST = OFF; //Change ON TO OFF If you don't want Aim Assist
int ART = OFF; //Change OFF TO ON If you want Auto Run
int CS = OFF; //Change OFF TO ON If you want ADS/FIRE Slowdown
 
//Customize Toggles
int Recoil = ON; //Change ON TO OFF If you don't want Anti Recoil ON By Defualt
int RFT = OFF; //Change OFF TO ON If you want Rapid Fire ON By Defualt
int DST = OFF; //Change OFF TO ON If you want Drop Shot ON By Defualt
int JST = OFF; //Change OFF TO ON If you want Jump Shot ON By Defualt
int STT = OFF; //Change OFF TO ON If you want Strafe ON By Defualt
 
//Custom Buttons
int Crouch_Button = R3; //Your Crouch Button
 
//Speed Of Features
int RF_Speed = 40; //Rapid Fire Speed
int DS_Speed = 30; //Drop Shot Speed
int JS_Speed = 40; //Jump Shot Speed
int ST_Left = 160; //Left Strafe Speed
int ST_Right = 160; //Right Strafe Speed
/*NOTE:
Higher values = Slower
Lower values = Faster
Everything is in milliseconds*/

 
//Insta Edit
//int EDIT_BUTTON_HOLD = OFF; //Does your edit button has a hold delay? ON means Yes -- OFF mean No
//int HOLD_TIME = 100; //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 EDIT_BUTTON = RIGHT; //Your Edit Button
//int CONFIRM_BUTTON = CIRCLE; //Your Confirm Button
//int RESET_EDIT_BUTTON = L2; //Your Reset Edit Button
 
//Aim Assist
int AP = 17;
int AM = -17;
int Delay = 20;
int Release = 18;
/*NOTE:
Increase AP & AM For more Assist but it can cause shake
Decrease AP & AM If you feel shake and don't like it
Release Is recommended to be 1 higher than AP & AM*/

 
//Aim Abuse
int HOLD = 230;
int RELEASE = 20;
 
//Anti Recoil
int AR = 4; //Anti Recoil
 
//ADS & FIRE Slowdown
int ADS_FIRE_SENS = 80;
/*NOTE
Default = 100
Ranges from 0 to 327*/

 
//Toggles
int ARS;
int WAIT;
int num,i,a;
int button;
int edit = OFF;
int Remove_Block,Toggle_Rumble,Toggle_Menu,Build_Toggle;
 
main {
    if(R1L1) {
        swap(R1,R2);
        swap(L1,L2);
    }
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
        RFT = OFF;
        DST = OFF;
        JST = OFF;
        STT = OFF;
        Recoil = OFF;
        Build_Toggle = OFF;
        Toggle_Menu = OFF;
        combo_run(Menu_Rumble);
    }
 
    LED(0,0,0,0);
 
    if(CS)
    if(get_val(L2) && get_val(R2)) {
        sensitivity(RY,NOT_USE,ADS_FIRE_SENS);
        sensitivity(RX,NOT_USE,ADS_FIRE_SENS);
    }
 
    if(event_press(CIRCLE)) {
        Build_Toggle=!Build_Toggle;
    }
 
    if(!Build_Toggle) {   
        if(JST && event_press(R2))
        combo_run(JumpShot);
        if(STT && get_val(L2) && get_val(R2))
        combo_run(Strafe);
        if(RFT && get_val(R2))
        combo_run(RapidFire);
        if(DST && get_val(L2) && get_val(R2))
        combo_run(DropShot);
        if(Recoil && get_val(L2) && get_val(R2))
        combo_run(cAR);
        if(ABT && get_val(L2)> 90)
        combo_run(AimAbuse);
        if(AST && get_val(L2)) combo_run(AS);
        if(get_val(L2) && get_val(LEFT)) {
            set_val(LEFT,0);
            combo_run(GhostPeek);
        }
        if(get_val(L2) && get_val(R1)) {
            set_val(R1,0);
            combo_run(PerfectAccuracy);
        } else {
            combo_stop(PerfectAccuracy);
        }
    }
    if(get_val(TRIANGLE))
    Build_Toggle = OFF;
 
    if(ART)
    if(get_val(LY) <-90) set_val(L3,100);
 
    if(get_val(OPTIONS) && event_press(UP)) {
        Toggle_Menu=!Toggle_Menu;
        Toggle_Rumble=!Toggle_Rumble;
        Build_Toggle = OFF;
    }
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
        combo_run(Rainbow_Flash);
 
        if(get_val(L2) && event_press(UP)) {
            RFT=!RFT;
            if(RFT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(RIGHT)) {
            DST=!DST;
            if(DST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(DOWN)) {
            JST=!JST;
            if(JST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(R3)) {
            STT=!STT;
            if(STT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(TRIANGLE)) {
            Recoil=!Recoil;
            if(Recoil)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2)) {
            if(event_press(UP)) {
                Remove_Block=!Remove_Block;}
            if(event_press(RIGHT)) {
                Remove_Block=!Remove_Block;}
            if(event_press(DOWN)) {
                Remove_Block=!Remove_Block;}
            if(event_press(R3)) {
                Remove_Block=!Remove_Block;}
            if(event_press(TRIANGLE)) {
                Remove_Block=!Remove_Block;}
            set_val(UP,0);set_val(RIGHT,0);set_val(DOWN,0);set_val(R3,0);set_val(TRIANGLE,0);
        }
    }   
    if(get_val(OPTIONS)) {
        if(event_press(SHARE)) {
            Remove_Block=!Remove_Block;
        }
        set_val(SHARE,0);
    }
 
    if(event_release(L2)) combo_stop(AimAbuse);
    if(abs(get_val(RY)) > AR + 2 || abs(get_val(RX)) > AR + 2) {
        combo_stop(cAR);
    }
 
    /*
    if(EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON) && get_ptime(EDIT_BUTTON) > HOLD_TIME) {
            edit = ON;
        }
    }
    else if(!EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON)) {
            edit = ON;
        }
    }
    if(edit == ON) {
        if(event_release(R2) || event_press(RESET_EDIT_BUTTON) || get_val(TRIANGLE)) {
            set_click(CONFIRM_BUTTON,1,0);
            edit = OFF;
        }
    }
    */

 
    if(a) {
        if(i < num) {
            if(!combo_running(Reset)) {
                combo_run(Reset);
            }
        }
        else if
        (i > num) {
            a = OFF;
        }
    }
}   
 
combo GhostPeek {
    set_val(Crouch_Button,100);
    wait(20);
    wait(10);
    set_val(R2,100);
    wait(20);
    set_val(Crouch_Button,100);
    wait(15);
    wait(10);
}
 
combo Strafe {
    set_val(LX,-100);
    wait(ST_Left);
    set_val(LX,100);
    wait(ST_Right);
}
 
combo JumpShot {
    set_val(CROSS,100);
    wait(JS_Speed);
}
 
 
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);
}
 
combo cAR {
    ARS = get_val(RY) + AR;
    if(ARS > 100) ARS = 100;
    set_val(RY,ARS);}
 
combo DropShot {
    set_val(Crouch_Button,100);
    wait(60);
    wait(DS_Speed);
    set_val(Crouch_Button,100);
}
 
 
combo PerfectAccuracy {
    set_val(R2,100);
    wait(100);
    wait(250);
    set_val(R2,100);
}
 
combo AimAbuse {
    set_val(L2,100);
    wait(HOLD);
    set_val(L2,0);
    wait(RELEASE);
}
 
combo RapidFire {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);
}
 
combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();
    reset_leds();
}
 
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();
    reset_leds();
}
 
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 Reset {
    wait(WAIT);
    set_val(button,100);
    wait(28);
    set_val(button,0);
    wait(28);
    i=i + 1;
}
 
function set_click(B,Num,Wait) {
    WAIT=Wait;
    i=0;
    button = B;
    num = Num;
    a = ON;
}
 
function a_f(p,m) {
    if(abs(get_val(p)) < Release)
    return m;
    return get_val(p);
}
 
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);
}
 


Yes, these parts of the script aren't useful anymore. But being able to reset with the press of a single key would be really helpful.
User avatar
dorindain
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Sat Mar 23, 2019 6:47 pm

Re: Need help with some modifications in this Fortnite scrip

Postby dorindain » Wed Nov 27, 2019 5:06 pm

J2Kbr wrote:Commented the parts which were performing the actions you want removed. Please check:
Code: Select all
/*
= = = = = = = = = = = = = = = = = = =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= /\/\/\  Made By ItzSnack  /\/\/\  =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= = = = = = = = = = = = = = = = = = =
 
===================
=== Version 2.8 ===
===================
 
================
=== FEATURES ===
================
Aim Abuse - Hold L2/LT All the way down
Aim Assist
ADS/FIRE Slowdown
Ghost Peek
Rapid Fire
100% ACCURACY
Drop Shot
Jump Shot
Insta Edit
Auto Run
Strafe
 
=================
=== Important ===
========================================================================
=== Recommended you read all the text below to understand everything ===
========================================================================
 
=============================================================
=== Must use Legacy Look Controls for Aim Abuse to work   ===
=============================================================
 
=====================
=== 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 D-PAD UP For Rapid Fire                                ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap R1/RB For 100% ACCURACY                             ===
===================================================================================
=== Hold L2/LT And Press D-PAD RIGHT For Drop Shot                              ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap D-PAD LEFT For Ghost Peek                           ===
===================================================================================
=== Hold L2/LT And Press D-PAD DOWN For Jump Shot                               ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press R3/RS For Strafe                                       ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press TRIANGLE/Y For Anti Recoil                             ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
*/

 
define ON = TRUE;
define OFF = FALSE;
 
//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 R1L1 = OFF; //Change OFF TO ON If you want Flipped Triggers
int ABT = OFF; //Change ON TO OFF If you don't want Aim Abuse
int AST = OFF; //Change ON TO OFF If you don't want Aim Assist
int ART = OFF; //Change OFF TO ON If you want Auto Run
int CS = OFF; //Change OFF TO ON If you want ADS/FIRE Slowdown
 
//Customize Toggles
int Recoil = ON; //Change ON TO OFF If you don't want Anti Recoil ON By Defualt
int RFT = OFF; //Change OFF TO ON If you want Rapid Fire ON By Defualt
int DST = OFF; //Change OFF TO ON If you want Drop Shot ON By Defualt
int JST = OFF; //Change OFF TO ON If you want Jump Shot ON By Defualt
int STT = OFF; //Change OFF TO ON If you want Strafe ON By Defualt
 
//Custom Buttons
int Crouch_Button = R3; //Your Crouch Button
 
//Speed Of Features
int RF_Speed = 40; //Rapid Fire Speed
int DS_Speed = 30; //Drop Shot Speed
int JS_Speed = 40; //Jump Shot Speed
int ST_Left = 160; //Left Strafe Speed
int ST_Right = 160; //Right Strafe Speed
/*NOTE:
Higher values = Slower
Lower values = Faster
Everything is in milliseconds*/

 
//Insta Edit
//int EDIT_BUTTON_HOLD = OFF; //Does your edit button has a hold delay? ON means Yes -- OFF mean No
//int HOLD_TIME = 100; //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 EDIT_BUTTON = RIGHT; //Your Edit Button
//int CONFIRM_BUTTON = CIRCLE; //Your Confirm Button
//int RESET_EDIT_BUTTON = L2; //Your Reset Edit Button
 
//Aim Assist
int AP = 17;
int AM = -17;
int Delay = 20;
int Release = 18;
/*NOTE:
Increase AP & AM For more Assist but it can cause shake
Decrease AP & AM If you feel shake and don't like it
Release Is recommended to be 1 higher than AP & AM*/

 
//Aim Abuse
int HOLD = 230;
int RELEASE = 20;
 
//Anti Recoil
int AR = 4; //Anti Recoil
 
//ADS & FIRE Slowdown
int ADS_FIRE_SENS = 80;
/*NOTE
Default = 100
Ranges from 0 to 327*/

 
//Toggles
int ARS;
int WAIT;
int num,i,a;
int button;
int edit = OFF;
int Remove_Block,Toggle_Rumble,Toggle_Menu,Build_Toggle;
 
main {
    if(R1L1) {
        swap(R1,R2);
        swap(L1,L2);
    }
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
        RFT = OFF;
        DST = OFF;
        JST = OFF;
        STT = OFF;
        Recoil = OFF;
        Build_Toggle = OFF;
        Toggle_Menu = OFF;
        combo_run(Menu_Rumble);
    }
 
    LED(0,0,0,0);
 
    if(CS)
    if(get_val(L2) && get_val(R2)) {
        sensitivity(RY,NOT_USE,ADS_FIRE_SENS);
        sensitivity(RX,NOT_USE,ADS_FIRE_SENS);
    }
 
    if(event_press(CIRCLE)) {
        Build_Toggle=!Build_Toggle;
    }
 
    if(!Build_Toggle) {   
        if(JST && event_press(R2))
        combo_run(JumpShot);
        if(STT && get_val(L2) && get_val(R2))
        combo_run(Strafe);
        if(RFT && get_val(R2))
        combo_run(RapidFire);
        if(DST && get_val(L2) && get_val(R2))
        combo_run(DropShot);
        if(Recoil && get_val(L2) && get_val(R2))
        combo_run(cAR);
        if(ABT && get_val(L2)> 90)
        combo_run(AimAbuse);
        if(AST && get_val(L2)) combo_run(AS);
        if(get_val(L2) && get_val(LEFT)) {
            set_val(LEFT,0);
            combo_run(GhostPeek);
        }
        if(get_val(L2) && get_val(R1)) {
            set_val(R1,0);
            combo_run(PerfectAccuracy);
        } else {
            combo_stop(PerfectAccuracy);
        }
    }
    if(get_val(TRIANGLE))
    Build_Toggle = OFF;
 
    if(ART)
    if(get_val(LY) <-90) set_val(L3,100);
 
    if(get_val(OPTIONS) && event_press(UP)) {
        Toggle_Menu=!Toggle_Menu;
        Toggle_Rumble=!Toggle_Rumble;
        Build_Toggle = OFF;
    }
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
        combo_run(Rainbow_Flash);
 
        if(get_val(L2) && event_press(UP)) {
            RFT=!RFT;
            if(RFT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(RIGHT)) {
            DST=!DST;
            if(DST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(DOWN)) {
            JST=!JST;
            if(JST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(R3)) {
            STT=!STT;
            if(STT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(TRIANGLE)) {
            Recoil=!Recoil;
            if(Recoil)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2)) {
            if(event_press(UP)) {
                Remove_Block=!Remove_Block;}
            if(event_press(RIGHT)) {
                Remove_Block=!Remove_Block;}
            if(event_press(DOWN)) {
                Remove_Block=!Remove_Block;}
            if(event_press(R3)) {
                Remove_Block=!Remove_Block;}
            if(event_press(TRIANGLE)) {
                Remove_Block=!Remove_Block;}
            set_val(UP,0);set_val(RIGHT,0);set_val(DOWN,0);set_val(R3,0);set_val(TRIANGLE,0);
        }
    }   
    if(get_val(OPTIONS)) {
        if(event_press(SHARE)) {
            Remove_Block=!Remove_Block;
        }
        set_val(SHARE,0);
    }
 
    if(event_release(L2)) combo_stop(AimAbuse);
    if(abs(get_val(RY)) > AR + 2 || abs(get_val(RX)) > AR + 2) {
        combo_stop(cAR);
    }
 
    /*
    if(EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON) && get_ptime(EDIT_BUTTON) > HOLD_TIME) {
            edit = ON;
        }
    }
    else if(!EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON)) {
            edit = ON;
        }
    }
    if(edit == ON) {
        if(event_release(R2) || event_press(RESET_EDIT_BUTTON) || get_val(TRIANGLE)) {
            set_click(CONFIRM_BUTTON,1,0);
            edit = OFF;
        }
    }
    */

 
    if(a) {
        if(i < num) {
            if(!combo_running(Reset)) {
                combo_run(Reset);
            }
        }
        else if
        (i > num) {
            a = OFF;
        }
    }
}   
 
combo GhostPeek {
    set_val(Crouch_Button,100);
    wait(20);
    wait(10);
    set_val(R2,100);
    wait(20);
    set_val(Crouch_Button,100);
    wait(15);
    wait(10);
}
 
combo Strafe {
    set_val(LX,-100);
    wait(ST_Left);
    set_val(LX,100);
    wait(ST_Right);
}
 
combo JumpShot {
    set_val(CROSS,100);
    wait(JS_Speed);
}
 
 
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);
}
 
combo cAR {
    ARS = get_val(RY) + AR;
    if(ARS > 100) ARS = 100;
    set_val(RY,ARS);}
 
combo DropShot {
    set_val(Crouch_Button,100);
    wait(60);
    wait(DS_Speed);
    set_val(Crouch_Button,100);
}
 
 
combo PerfectAccuracy {
    set_val(R2,100);
    wait(100);
    wait(250);
    set_val(R2,100);
}
 
combo AimAbuse {
    set_val(L2,100);
    wait(HOLD);
    set_val(L2,0);
    wait(RELEASE);
}
 
combo RapidFire {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);
}
 
combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();
    reset_leds();
}
 
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();
    reset_leds();
}
 
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 Reset {
    wait(WAIT);
    set_val(button,100);
    wait(28);
    set_val(button,0);
    wait(28);
    i=i + 1;
}
 
function set_click(B,Num,Wait) {
    WAIT=Wait;
    i=0;
    button = B;
    num = Num;
    a = ON;
}
 
function a_f(p,m) {
    if(abs(get_val(p)) < Release)
    return m;
    return get_val(p);
}
 
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);
}
 


Anyone? :icon_frown: :icon_frown: :ashamed:
User avatar
dorindain
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Sat Mar 23, 2019 6:47 pm

Re: Need help with some modifications in this Fortnite scrip

Postby dorindain » Thu Nov 28, 2019 7:54 pm

J2Kbr wrote:Commented the parts which were performing the actions you want removed. Please check:
Code: Select all
/*
= = = = = = = = = = = = = = = = = = =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= /\/\/\  Made By ItzSnack  /\/\/\  =
= /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\  =
= = = = = = = = = = = = = = = = = = =
 
===================
=== Version 2.8 ===
===================
 
================
=== FEATURES ===
================
Aim Abuse - Hold L2/LT All the way down
Aim Assist
ADS/FIRE Slowdown
Ghost Peek
Rapid Fire
100% ACCURACY
Drop Shot
Jump Shot
Insta Edit
Auto Run
Strafe
 
=================
=== Important ===
========================================================================
=== Recommended you read all the text below to understand everything ===
========================================================================
 
=============================================================
=== Must use Legacy Look Controls for Aim Abuse to work   ===
=============================================================
 
=====================
=== 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 D-PAD UP For Rapid Fire                                ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap R1/RB For 100% ACCURACY                             ===
===================================================================================
=== Hold L2/LT And Press D-PAD RIGHT For Drop Shot                              ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Hold/Tap D-PAD LEFT For Ghost Peek                           ===
===================================================================================
=== Hold L2/LT And Press D-PAD DOWN For Jump Shot                               ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press R3/RS For Strafe                                       ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
=== Hold L2/LT And Press TRIANGLE/Y For Anti Recoil                             ===
=== 1 Rumble = ON 2 = OFF                                                       ===
===================================================================================
*/

 
define ON = TRUE;
define OFF = FALSE;
 
//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 R1L1 = OFF; //Change OFF TO ON If you want Flipped Triggers
int ABT = OFF; //Change ON TO OFF If you don't want Aim Abuse
int AST = OFF; //Change ON TO OFF If you don't want Aim Assist
int ART = OFF; //Change OFF TO ON If you want Auto Run
int CS = OFF; //Change OFF TO ON If you want ADS/FIRE Slowdown
 
//Customize Toggles
int Recoil = ON; //Change ON TO OFF If you don't want Anti Recoil ON By Defualt
int RFT = OFF; //Change OFF TO ON If you want Rapid Fire ON By Defualt
int DST = OFF; //Change OFF TO ON If you want Drop Shot ON By Defualt
int JST = OFF; //Change OFF TO ON If you want Jump Shot ON By Defualt
int STT = OFF; //Change OFF TO ON If you want Strafe ON By Defualt
 
//Custom Buttons
int Crouch_Button = R3; //Your Crouch Button
 
//Speed Of Features
int RF_Speed = 40; //Rapid Fire Speed
int DS_Speed = 30; //Drop Shot Speed
int JS_Speed = 40; //Jump Shot Speed
int ST_Left = 160; //Left Strafe Speed
int ST_Right = 160; //Right Strafe Speed
/*NOTE:
Higher values = Slower
Lower values = Faster
Everything is in milliseconds*/

 
//Insta Edit
//int EDIT_BUTTON_HOLD = OFF; //Does your edit button has a hold delay? ON means Yes -- OFF mean No
//int HOLD_TIME = 100; //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 EDIT_BUTTON = RIGHT; //Your Edit Button
//int CONFIRM_BUTTON = CIRCLE; //Your Confirm Button
//int RESET_EDIT_BUTTON = L2; //Your Reset Edit Button
 
//Aim Assist
int AP = 17;
int AM = -17;
int Delay = 20;
int Release = 18;
/*NOTE:
Increase AP & AM For more Assist but it can cause shake
Decrease AP & AM If you feel shake and don't like it
Release Is recommended to be 1 higher than AP & AM*/

 
//Aim Abuse
int HOLD = 230;
int RELEASE = 20;
 
//Anti Recoil
int AR = 4; //Anti Recoil
 
//ADS & FIRE Slowdown
int ADS_FIRE_SENS = 80;
/*NOTE
Default = 100
Ranges from 0 to 327*/

 
//Toggles
int ARS;
int WAIT;
int num,i,a;
int button;
int edit = OFF;
int Remove_Block,Toggle_Rumble,Toggle_Menu,Build_Toggle;
 
main {
    if(R1L1) {
        swap(R1,R2);
        swap(L1,L2);
    }
 
    if(get_val(OPTIONS) && event_press(SHARE)) {
        RFT = OFF;
        DST = OFF;
        JST = OFF;
        STT = OFF;
        Recoil = OFF;
        Build_Toggle = OFF;
        Toggle_Menu = OFF;
        combo_run(Menu_Rumble);
    }
 
    LED(0,0,0,0);
 
    if(CS)
    if(get_val(L2) && get_val(R2)) {
        sensitivity(RY,NOT_USE,ADS_FIRE_SENS);
        sensitivity(RX,NOT_USE,ADS_FIRE_SENS);
    }
 
    if(event_press(CIRCLE)) {
        Build_Toggle=!Build_Toggle;
    }
 
    if(!Build_Toggle) {   
        if(JST && event_press(R2))
        combo_run(JumpShot);
        if(STT && get_val(L2) && get_val(R2))
        combo_run(Strafe);
        if(RFT && get_val(R2))
        combo_run(RapidFire);
        if(DST && get_val(L2) && get_val(R2))
        combo_run(DropShot);
        if(Recoil && get_val(L2) && get_val(R2))
        combo_run(cAR);
        if(ABT && get_val(L2)> 90)
        combo_run(AimAbuse);
        if(AST && get_val(L2)) combo_run(AS);
        if(get_val(L2) && get_val(LEFT)) {
            set_val(LEFT,0);
            combo_run(GhostPeek);
        }
        if(get_val(L2) && get_val(R1)) {
            set_val(R1,0);
            combo_run(PerfectAccuracy);
        } else {
            combo_stop(PerfectAccuracy);
        }
    }
    if(get_val(TRIANGLE))
    Build_Toggle = OFF;
 
    if(ART)
    if(get_val(LY) <-90) set_val(L3,100);
 
    if(get_val(OPTIONS) && event_press(UP)) {
        Toggle_Menu=!Toggle_Menu;
        Toggle_Rumble=!Toggle_Rumble;
        Build_Toggle = OFF;
    }
    if(Toggle_Rumble)
    combo_run(Menu_Rumble);
 
    if(Toggle_Menu) {
        combo_run(Rainbow_Flash);
 
        if(get_val(L2) && event_press(UP)) {
            RFT=!RFT;
            if(RFT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(RIGHT)) {
            DST=!DST;
            if(DST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(DOWN)) {
            JST=!JST;
            if(JST)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(R3)) {
            STT=!STT;
            if(STT)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2) && event_press(TRIANGLE)) {
            Recoil=!Recoil;
            if(Recoil)combo_run(Flash_ON);
            else combo_run(Flash_OFF);
        }
 
        if(get_val(L2)) {
            if(event_press(UP)) {
                Remove_Block=!Remove_Block;}
            if(event_press(RIGHT)) {
                Remove_Block=!Remove_Block;}
            if(event_press(DOWN)) {
                Remove_Block=!Remove_Block;}
            if(event_press(R3)) {
                Remove_Block=!Remove_Block;}
            if(event_press(TRIANGLE)) {
                Remove_Block=!Remove_Block;}
            set_val(UP,0);set_val(RIGHT,0);set_val(DOWN,0);set_val(R3,0);set_val(TRIANGLE,0);
        }
    }   
    if(get_val(OPTIONS)) {
        if(event_press(SHARE)) {
            Remove_Block=!Remove_Block;
        }
        set_val(SHARE,0);
    }
 
    if(event_release(L2)) combo_stop(AimAbuse);
    if(abs(get_val(RY)) > AR + 2 || abs(get_val(RX)) > AR + 2) {
        combo_stop(cAR);
    }
 
    /*
    if(EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON) && get_ptime(EDIT_BUTTON) > HOLD_TIME) {
            edit = ON;
        }
    }
    else if(!EDIT_BUTTON_HOLD) {
        if(get_val(EDIT_BUTTON)) {
            edit = ON;
        }
    }
    if(edit == ON) {
        if(event_release(R2) || event_press(RESET_EDIT_BUTTON) || get_val(TRIANGLE)) {
            set_click(CONFIRM_BUTTON,1,0);
            edit = OFF;
        }
    }
    */

 
    if(a) {
        if(i < num) {
            if(!combo_running(Reset)) {
                combo_run(Reset);
            }
        }
        else if
        (i > num) {
            a = OFF;
        }
    }
}   
 
combo GhostPeek {
    set_val(Crouch_Button,100);
    wait(20);
    wait(10);
    set_val(R2,100);
    wait(20);
    set_val(Crouch_Button,100);
    wait(15);
    wait(10);
}
 
combo Strafe {
    set_val(LX,-100);
    wait(ST_Left);
    set_val(LX,100);
    wait(ST_Right);
}
 
combo JumpShot {
    set_val(CROSS,100);
    wait(JS_Speed);
}
 
 
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);
}
 
combo cAR {
    ARS = get_val(RY) + AR;
    if(ARS > 100) ARS = 100;
    set_val(RY,ARS);}
 
combo DropShot {
    set_val(Crouch_Button,100);
    wait(60);
    wait(DS_Speed);
    set_val(Crouch_Button,100);
}
 
 
combo PerfectAccuracy {
    set_val(R2,100);
    wait(100);
    wait(250);
    set_val(R2,100);
}
 
combo AimAbuse {
    set_val(L2,100);
    wait(HOLD);
    set_val(L2,0);
    wait(RELEASE);
}
 
combo RapidFire {
    set_val(R2,100);
    wait(40);
    set_val(R2,0);
    wait(RF_Speed);
}
 
combo Flash_ON {
    LED(0,0,2,0);
    set_rumble(RUMBLE_A,100);
    wait(400);
    reset_rumble();
    reset_leds();
}
 
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();
    reset_leds();
}
 
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 Reset {
    wait(WAIT);
    set_val(button,100);
    wait(28);
    set_val(button,0);
    wait(28);
    i=i + 1;
}
 
function set_click(B,Num,Wait) {
    WAIT=Wait;
    i=0;
    button = B;
    num = Num;
    a = ON;
}
 
function a_f(p,m) {
    if(abs(get_val(p)) < Release)
    return m;
    return get_val(p);
}
 
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);
}
 


I wrote the following part but it only works when you press the key two times. Any help would be really appreciated.

Code: Select all
if(get_val(CEMU_EXTRA1)) {
    combo_run(rere);
        }

combo rere {
    set_val(EDIT_BUTTON,100);
    set_val(RESET_EDIT_BUTTON,100);
    set_val(CONFIRM_BUTTON,100);
User avatar
dorindain
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Sat Mar 23, 2019 6:47 pm

Re: Need help with some modifications in this Fortnite scrip

Postby Mad » Thu Nov 28, 2019 8:34 pm

dorindain wrote:I wrote the following part but it only works when you press the key two times. Any help would be really appreciated.


Code: Select all
if(event_press(CEMU_EXTRA1)) {
    combo_run(rere);
}
 
combo rere {
    set_val(EDIT_BUTTON,100);
    wait(60);
    set_val(RESET_EDIT_BUTTON,100);
    wait(60);
    set_val(CONFIRM_BUTTON,100);
    wait(60);
}
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: Need help with some modifications in this Fortnite scrip

Postby dorindain » Fri Nov 29, 2019 4:54 pm

Mad wrote:
dorindain wrote:I wrote the following part but it only works when you press the key two times. Any help would be really appreciated.


Code: Select all
if(event_press(CEMU_EXTRA1)) {
    combo_run(rere);
}
 
combo rere {
    set_val(EDIT_BUTTON,100);
    wait(60);
    set_val(RESET_EDIT_BUTTON,100);
    wait(60);
    set_val(CONFIRM_BUTTON,100);
    wait(60);
}


This works great. Thank you so much.
User avatar
dorindain
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Sat Mar 23, 2019 6:47 pm

Re: Need help with some modifications in this Fortnite scrip

Postby Mad » Fri Nov 29, 2019 9:03 pm

You're welcome :smile0517:
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: Need help with some modifications in this Fortnite scrip

Postby dorindain » Sat Nov 30, 2019 4:23 pm

Mad wrote:You're welcome :smile0517:


Sorry for bothering you again, but there's still one bug that I can't fix. When you press the Cemu key 1 on a non-build area, it enters the build mode and doesn't exit it. Is there any way to make it so if you press the key accidentally, it doesn't stay in the build mode? Thanks.
User avatar
dorindain
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Sat Mar 23, 2019 6:47 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 64 guests