can someone make this into a titan one script please

Titan One general support. Questions, firmware update, feature request.

can someone make this into a titan one script please

Postby Eman69 » Fri Dec 28, 2018 7:39 pm

Code: Select all
/*
*V2.6 xs / AFTER THE MAJOR UPDATE IN DECEMBER
Built for device / works with all consoles
Added WW2 reload times / so script can be used with WW2 as well
 
 __                     __   ___     __       ___     
/  `  /\  |    |       /  \ |__     |  \ |  |  |  \ /
\__, /~~\ |___ |___    \__/ |       |__/ \__/  |   | 
 
 __             __           __   __   __             
|__) |     /\  /  ` |__/    /  \ |__) /__`    | \  / 
|__) |___ /~~\ \__, |  \    \__/ |    .__/    |  \/                                           
 
    _  _ ____    ____ ___  _ ___ _ ____ _  _
     \/  [__     |___ |  \ |  |  | |  | |\ |
    _/\_ ___]    |___ |__/ |  |  | |__| | \|
 
            A GPC Power Script By
     __                                       
    /   __ _ __     _ |V| _       | | _  _  __
    \__ | (_)| ||_|_> | |(_|>< ___|_|_> (/_ |
 
 
Credits: Excalibur, Batts, Spegeli and others here at device!
 
--------------------------------------------------------------------------------------------------------
                                                                     ,---------------------------.
  INSTRUCTIONS: https://tinyurl.com/scriptinstructions        __@  ' | READ THE INSTRUCTIONS !!! |
                                                             ( ..)  -_)--------------------------'
---------------------------------------------------------ooO--(_)--Ooo----------------------------------
    !!To read the intructions you need to open the link above in your internet browser!!
 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |U|S|E|R| |C|O|N|F|I|G|U|R|A|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
 
       IN THE USER CONFIG SECTION YOU CAN SET THE DEFAULT SETTINGS
       FOR YOUR SCRIPT, SO WHICH MODS SHOULD BE LOADED BY DEFAULT 
       AND WHICH NOT. CHANGE "TRUE" TO "FALSE" AND VICE VERSA.     
       "TRUE" MEANS ON BY DEFAULT, "FALSE" MEANS OFF BY DEFAULT.
 
//---------------------------/ START USER CONFIG---------------------------------------*/

 
define AIM__INVERTED=FALSE;        // IF YOU PLAY WITH AIM INVERTED SET "TRUE;"
define EASY__RUN=TRUE;            // EASY RUN
define RUN__SENS=-25;            // SENSITIVITY WHEN EASY RUN SHOULD ACTIVATE
define CNCL__RELOAD=TRUE;        // AUTO CANCEL RELOAD
define RELOAD__TIME=2000;        // SET LONGEST RELOAD TIME IN YOUR SCRIPT
define EASY__MELEE=TRUE;        // EASY MELEE
 
define turbo__trigger=TRUE;        // HAIR TRIGGERS ON BY DEFAULT FOR BOTH TRIGGERS
define EASY__SLIDE_DROP=TRUE;    // TAP PRONE BTN TO CROUCH. HOLD FOR A SECOND TO PRONE
define Time__b__Prone=150;        // YOU CAN CHANGE THE TIME BEFORE PRONE HERE (SO FOR HOW
/*                                   LONG YOU MUST PRESS THE PRONE BTN FOR EASY SLIDE/DROP)
                                   IF FILL OUT VALUE 0, YOU WILL IMMEDIATELY SLIDE OR PRONE
                                   (BUT YOU WILL NOT BE ABLE TO PRONE AT ALL IN THE GAME)
/*
       THE MODS BELOW ("INT") ARE VARIABLES WITH TOGGLES THAT YOU CAN
       SWITCH OFF AND ON IN THE GAME. THE TOGGLES ARE EXPLAINED IN THE
       MANUAL (SEE TINY URL AT THE TOP OF THE SCRIPT). LIKE ABOVE YOU
       CAN SET THEM ON AND OFF BY DEFAULT, BUT THE TOGGLES WILL STILL WORK
       EVEN IF YOU SET THE OFF BY DEFAULT. */
       
 
int       NO__RECOIL=FALSE;        // ANTI RECOIL
int    STICKY__AIM=TRUE;        // AIM ASSIST - THE STRONGEST AIM ASSIST YOU WILL FIND ANYWHERE...100% .
int    AIM__CORRECT=TRUE;        // WILL MAKE AIM ASSIST STRONGER WHEN ADS, AND STRONGEST WHEN FIRING + AIMING.
int       AKIMBO__AUTO_AIM=FALSE;    // AKIMBO / AUTO AIM, PRESSING FIRE WILL AUTO PRESS AIM
/*
       AUTO HEALING: WITH THE MEDIC EQUIPMENT SELECTED AS GEAR IN THE GAME YOU CAN HAVE YOUR
       CHARACTER AUTO HEAL HIM/HER SELF. THERE ARE THREE OPTIONS BELOW. TWO FOR MULTIPLAYER, ONE FOR BLACK
       OUT. FIRE AND HEAL IS FOR MULTIPLAYER, IT WILL HEAL EVERY TIME YOU RELEASE THE FIRE BUTTON. THE OTHER
       HEAL FUNCTIONS, WILL AUTO HEAL AFTER YOU RELOADED YOUR WEAPON (BUT ONLY IF YOU RELOAD WITHIN 6000ms
       AFTER FIRING YOUR WEAPON). ALL HEAL FUNCTIONS CAN BE SWITCHED ON/OFF DURING THE GAME. THE SCRIPT WILL
       RUN ONLY ONE HEAL FUNCTION AT A TIME, SO SWITCHING ON A HEAL FUNCTION WILL SWITCH OFF ANY 
       OTHER HEAL FUNCTION.
*/

int    AUTO__HEAL=FALSE;        //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R2 / XB1_RT   
int    A__HEAL_BLACK_OUT=FALSE; //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R1 / XB1_RB
int       FIRE_AND_HEAL=FALSE;        //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R3 / XB1_RS
 
/*     AIM CORRECTION SENSITIVITY VALUES:
       ADS SENS = SENS WHEN AIMING
       GEN SENS = GENERAL STICK SENS
       HIP SENS = SENS WHEN HIP FIRING
       ADS FIRE SENS = SENS WHEN AIMING AND FIRING WEAPON
       DO NOT CHANGE MIDPOINT
 
AIM CORRECTION SENSITIVITY VALUES:  */

int ADS_SENS=95, GEN_SENS=100, HIP_SENS=100, ADS_FIRE_SENS=85, Use_sens, midpoint=50;
 
/*     BELOW YOU CAN SET THE SWITCH FOR ACTIVATING A KILL STREAK and THE SPECIAL POWER
       OF YOUR CHARACTER. THIS WILL ALLOW YOU TO ACTIVATE EITHER OF THEM WITH JUST ONE TAP
       OFF A BUTTON. CHOOSE ONE OF THESE BUTTON:
       13 = D-PAD UP
       14 = D-PAD DOWN
       15 = D-PAD LEFT
       16 = D-PAD RIGHT
       6 = PS4_L1 / XB1_LB
       26 = OFF (SO YOU ACTIVATE THE KILLS STREAK AND SUPER POWER MANUALLY IN THE GAME)
 
ACTIVATION SWITCH FOR SUPER POWER & KILL STREAK: */

define SUPER__POWER__SW=13;
define KILL__STREAK__SW=15;
 
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |C|O|N|T|R|O|L|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/

define HOME=0;            //PS4_PS / XB1_XBOX
define VIEW_reset=1;    //PS4_SHARE / XB1_VIEW
define MENU_save=2;        //PS4_OPTIONS / XB1_MENU
define LETHAL=3;        //PS4_R1 / XB1_RB
define FIRE=4;            //PS4_R2 / XB1_RT
define PRONE=5;            //PS4_R3 / XB1_RS
define TACTICAL=6;        //PS4_L1 / XB1_LB
define ADS=7;            //PS4_L2 / XB1_LT
define SPRINT=8;        //PS4_L3 / XB1_LS
define RX=9;            //PS4_RX / XB1_RX
define RY=10;            //PS4_RY / XB1_RY
define LX=11;            //PS4_LX / XB1_LX
define LY=12;            //PS4_LY / XB1_LY
define UP=13;            //PS4_UP / XB1_UP
define DOWN=14;            //PS4_DOWN / XB1_DOWN
define LEFT=15;            //PS4_LEFT / XB1_LEFT
define RIGHT=16;        //PS4_RIGHT / XB1_RIGHT
define SW_WEAPON=17;    //PS4_TRIANGLE / XB1_Y
define MELEE=18;        //PS4_CIRCLE / XB1_B
define JUMP=19;            //PS4_CROSS / XB1_A
define RELOAD=20;        //PS4_SQUARE / XB1_X
define GYROX_PR1=24;    //PS4_GYROX / XB1_PR1
define GYROY_PR2=25;    //PS4_GYROY / XB1_PR2
define GYROZ_PL1=26;    //PS4_GYROZ / XB1_PL1
define TOUCH_PL2=27;    //PS4_TOUCH / XB1_PL2
/*
----------------------/ END USER CONFIG /-----------------------------------------------
 
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

int    q;
int    double__tap[30];
int    recoil__y, recoil__x;
int    NO__RECOIL__Y, NO__RECOIL__X;
int    G__M=TRUE;
int    hold_time=35;
int    rest_time=35;
int    PrimaryWeapon=TRUE;
int    RF_KS=FALSE;
int    R2F_K2S=FALSE;
int    b_reload;
int    aa__shake=24;
int    aa_delay=20;
int    release=25;
int    Secondary=FALSE; //set to TRUE if you preffer to load the script with rapid fire for seconday weapon by default.
int    TimelimitA=6000; // 1 timer
int    TimerA=0;
int    easy_run_KS=FALSE;
int    reload__WW2;
int    KS_time;
int    A__H_time=40;
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |I|N|I|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

init {
    while(q < 30) {
        double__tap[q] = -1;       
        q++;
    }   
    NO__RECOIL__Y       = get_pvar(SPVAR_8,-100,+100,+38)
    NO__RECOIL__X       = get_pvar(SPVAR_9,-100,+100,0);           
    aa__shake            = get_pvar(SPVAR_7,-50,+50,24);
 
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |M|A|I|N| |B|L|O|C|K| |S|T|A|R|T|S| |H|E|R|E| | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

main {
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |L|O|A|D| |M|O|D|E|S| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

  if(get_val(DOWN)) {//HOLD DOWN
    if (double_click(2)) { //DOUBLE TAP PS4_OPTIONS / XB1_MENU
        G__M = !G__M;
      if (G__M) combo_run (Rumb);
      if (!G__M) combo_run (RumbTwo);
    }
    set_val(2,0);
    }
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | |M|E|N|U| |A|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(get_val(ADS)){//hold ADS button
 
//--RESET EPROM TO DEFAULT VALUES
 
    if(get_val(VIEW_reset)&&get_ptime(VIEW_reset)>600){
        RESET_Defaults();
    }
//--RAPID FIRE ON SECONDARY
    if(event_press(UP)){//D-pad UP
        PrimaryWeapon=TRUE;
        RF_KS=FALSE;
        R2F_K2S=TRUE;
        Secondary=TRUE;
        if (Secondary) combo_run (RumbTwo);
        }
//--RAPID FIRE OFF
    if(event_press(DOWN)){//D-pad DOWN
        PrimaryWeapon=TRUE;
        RF_KS=FALSE;
        R2F_K2S=FALSE;
        Secondary=FALSE;   
        if (!R2F_K2S) combo_run (Rumb);
}
//--RAPID FIRE ON
    if(event_press(RIGHT)){//D-pad RIGHT
        PrimaryWeapon=TRUE;
        RF_KS=TRUE;       
        R2F_K2S=TRUE;
        Secondary=FALSE;   
        if (RF_KS) combo_run (RumbTwo);
}
//--AKIMBO
    if(event_press(LEFT)){//D-pad LEFT
        AKIMBO__AUTO_AIM = !AKIMBO__AUTO_AIM;
             if (AKIMBO__AUTO_AIM) combo_run (RumbTwo);
            if (!AKIMBO__AUTO_AIM) combo_run (Rumb);
            PrimaryWeapon=TRUE;
            Secondary=TRUE;           
}
    set_val(1,0);
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |T|O|G|G|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 if(get_val(DOWN) && get_val (ADS)){
     if (event_press (19)){//TAP A
         NO__RECOIL = !NO__RECOIL;
         if (NO__RECOIL) combo_run (RumbTwo);
         if (!NO__RECOIL) combo_run (Rumb);    
     }
 
     if (event_press (18)){//TAP B
         AIM__CORRECT = !AIM__CORRECT;
         if (AIM__CORRECT) combo_run (RumbTwo);
         if (!AIM__CORRECT) combo_run (Rumb);
     }
 
     if (event_press (17)){//TAP Y
         STICKY__AIM = !STICKY__AIM;
         if (STICKY__AIM) combo_run (RumbTwo);
         if (!STICKY__AIM) combo_run (Rumb);
    }
 
     if (event_press (20)){//TAP X
         reload__WW2 = !reload__WW2;
         if (reload__WW2) combo_run (RumbTwo);
         if (!reload__WW2) combo_run (Rumb);    
     }    
     if (event_press (FIRE)){//FIRE BTN
         AKIMBO__AUTO_AIM = !AKIMBO__AUTO_AIM;
         if (AKIMBO__AUTO_AIM) combo_run (RumbTwo);
        if (!AKIMBO__AUTO_AIM) combo_run (Rumb);
    }
    if (double_click(3)){//RB
        A__HEAL_BLACK_OUT = !A__HEAL_BLACK_OUT;   
        FIRE_AND_HEAL=FALSE;
        if (A__HEAL_BLACK_OUT)  combo_run (RumbTwo);
         if (!A__HEAL_BLACK_OUT) combo_run (Rumb);
    }
    if (double_click(4)){//RT
        AUTO__HEAL = !AUTO__HEAL;
        A__HEAL_BLACK_OUT=FALSE;
        FIRE_AND_HEAL=FALSE;
        if (AUTO__HEAL) combo_run (RumbTwo);
         if (!AUTO__HEAL) combo_run (Rumb);
     }   
   if (double_click(5)){//RS
           FIRE_AND_HEAL=!FIRE_AND_HEAL;
        AUTO__HEAL=FALSE;
        A__HEAL_BLACK_OUT=FALSE;   
        if (FIRE_AND_HEAL) combo_run (RumbTwo);
         if (!FIRE_AND_HEAL) combo_run (Rumb);
    }   
    set_val (FIRE,0);set_val (TACTICAL,0);set_val(19,0);set_val (18,0);set_val (17,0); set_val (20,0)
    }
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |S|L|I|D|E| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if(EASY__SLIDE_DROP){
if (event_release(PRONE) && get_ptime(PRONE)> Time__b__Prone){
        combo_run(DROP_SHOT);
    }
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|K|I|M|B|O| |/|A|U|T|O| |A|I|M| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 if(AKIMBO__AUTO_AIM) {   
      if(PrimaryWeapon && get_val(FIRE))
             set_val(ADS,100);         
       }                               
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|E|L|O|A|D| |T|I|M|E|S| |W|W|2| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (reload__WW2){
    KS_time= 2000;}
    else KS_time=0;
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |T|U|R|B|O| |B|T|N| |A|.|K|.| |H|A|I|R| |T|R|I|G|G|E|R|S| | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
turbo(FIRE);
turbo(ADS);
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|I|M| | |C|O|R|R|E|C|T|I|O|N|S| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
if(AIM__CORRECT){
Aim__Correction (Use_sens);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|U|T|O| |H|E|A|L| |B|L|A|C|K| |O|U|T| | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (A__HEAL_BLACK_OUT){
    AUTO__HEAL=TRUE;
    A__H_time= 4000;}
    else A__H_time= 40;   
/*
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|U|T|O| |H|E|A|L| | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (event_release (FIRE)) {TimerA=TimelimitA;}
 if (TimerA>0)
     {
     TimerA=TimerA - get_rtime();
     if (TimerA<=6000 && event_press (RELOAD)){ combo_run (Heal);}
     }
if (FIRE_AND_HEAL){
 if (event_release (FIRE)) combo_run (Fire_and_Heal);
 }
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
 if (NO__RECOIL){
No__recoil(NO__RECOIL__X, NO__RECOIL__Y);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |M|O|D|E| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
       
 P__M(G__M)
 /*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (EASY__RUN){
    if (!easy_run_KS && get_val(LY) < RUN__SENS && !get_val(ADS)) {
     combo_run (EASY_RUN);}
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (EASY__MELEE){
  if (get_val(SPRINT)) set_val(MELEE, 100);}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|A|P|I|D| |F|I|R|E| |&| |J|I|T|T|E|R| | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
//-- RF PRIMARY 
 
if (PrimaryWeapon && RF_KS && get_val(FIRE))combo_run (RAPID_FIRE);   
 
//- RF SECONDARY
 
 if(!PrimaryWeapon && R2F_K2S)   
  if(get_val(FIRE)) {
      combo_run (RAPID_FIRE);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(event_release(RELOAD) && get_ptime(RELOAD)> 200 &&(Secondary)){ PrimaryWeapon = TRUE; combo_run (Rumb);} 
 
if (Secondary){
    if(event_release(SW_WEAPON)&& get_ptime(SW_WEAPON)< 200  && !get_val (14)){ 
      PrimaryWeapon = !PrimaryWeapon;
      if (!PrimaryWeapon) combo_run (RumbTwo);
  }
}
 /*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
 if (CNCL__RELOAD) {
     if(event_press(FIRE)  && b_reload){combo_run(CANCEL_RLD); }
     if(event_press(ADS)  && b_reload){combo_run(CANCEL_RLD);}
         if(event_release(RELOAD) && get_ptime(RELOAD)< 200){
          combo_run (STOP_SPRINT); combo_run(RELOAD_END); }
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|I|M| |A|S|S|I|S|T| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(STICKY__AIM){
    if(get_val(ADS)) combo_run(AA_XY);
      else combo_stop(AA_XY);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |K|I|L|L| |S|W|I|T|C|H| |&| |S|U|P|E|R| |P|W| |S|W|I|T|C|H| | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

//switches are prepared to work normally even if Jitter mod is used by adding a little press time.
if(event_press (SUPER__POWER__SW) && !get_val (ADS) && get_ptime(SUPER__POWER__SW)< 15 && G__M) { combo_run(SPECIAL);}
if(event_press (KILL__STREAK__SW) &&  !get_val (ADS) && get_ptime(KILL__STREAK__SW)< 15 && G__M) { combo_run(KILL);
}
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |C|O|M|B|O| |S|E|C|T|I|O|N| | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

combo AA_XY {
    set_val(10,xy_val(10,aa__shake));
    wait(aa_delay);
    set_val(9,xy_val(9,aa__shake));
    set_val(11,xy_val(11,aa__shake));
    wait(aa_delay);
    set_val(10,xy_val(10,aa__shake * -1));
    wait(aa_delay);
    set_val(9,xy_val(9,aa__shake * -1));
    set_val(11,xy_val(11,aa__shake * -1));
    wait(aa_delay);
}
combo Rumb{
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
     wait(150);
     reset_rumble();
}
combo RumbTwo {
    wait(300);
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
    wait (150);
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
    wait(150);
    reset_rumble();
}
combo STOP_SPRINT {     
    easy_run_KS = TRUE
    wait(KS_time);
    easy_run_KS = FALSE;
}
combo Fire_and_Heal {    
    set_val(TACTICAL,100);
    wait(40);   
}
combo RAPID_FIRE {
    set_val(FIRE,100);
    wait(hold_time);
    set_val(FIRE,  0);
    wait(rest_time);
}
combo RELOAD_END {
    b_reload=TRUE;
    wait(RELOAD__TIME);
    b_reload=FALSE;
}
combo Heal {    
    wait (RELOAD__TIME);
    if (AUTO__HEAL)
    set_val(TACTICAL,100);
    wait(A__H_time);
}
combo CANCEL_RLD {
    set_val(SW_WEAPON, 100);
    wait(30);
    set_val(SW_WEAPON, 0);
    wait(20);
    set_val(SW_WEAPON, 100);
    wait(30);
    set_val(SW_WEAPON, 0);
    wait(20);
    b_reload=FALSE;
}
combo SPECIAL {
    set_val(LETHAL,100)
    set_val(TACTICAL,100);
    wait(100);
    wait(40);
} 
combo KILL {
    set_val (SW_WEAPON, 100);
    wait(400);
    set_val (SW_WEAPON,0);
    wait(40);
}
combo DROP_SHOT{
    set_val(PRONE,100);
    wait(700)
}
combo EASY_RUN {
    set_val(SPRINT,100);
    wait(30);   
    wait(100);
}
function P__M(program__mode) {
    if (program__mode) return;
        if (get_val(UP)) {
        NO__RECOIL__Y = Variable__Var(NO__RECOIL__Y, -100, 100, 3, 4);
        NO__RECOIL__X = Variable__Var(NO__RECOIL__X, -100, 100, 6, 7);
        aa__shake = Variable__Var(aa__shake, -50, 50, 1, 2);
        set_val (1,0); set_val (2,0); set_val (3,0); set_val (4,0); set_val (6,0); set_val (7,0);
 
        } 
        save_pvars();
}
function Variable__Var(var__val, min_val, max_val, btn_up, btn_down) {
    if(event_press(btn_up) && var__val < max_val) {
        var__val++;
        combo_run (Rumb);
    }       
    if(event_press(btn_down) && var__val > min_val) {
        var__val--;
        combo_run (Rumb);
    }
    return var__val;
}
function Aim__Correction (Use_sens){
 
  if(get_val(FIRE) && get_val(ADS)) {
    Use_sens = ADS_FIRE_SENS;
  }
  if(get_val(FIRE) && !get_val(ADS)) {
    Use_sens = HIP_SENS;
  }
  if(!get_val(FIRE) && !get_val(ADS)) {
    Use_sens = GEN_SENS;
  }
  if(!get_val(FIRE) && get_val(ADS)) {
    Use_sens = ADS_SENS;
  }
    sensitivity(9, midpoint ,Use_sens);
    sensitivity(10, midpoint ,Use_sens);
}
function RESET_Defaults () {
    combo_run (Rumb);   
    NO__RECOIL__Y       = +38;
    NO__RECOIL__X       = 0;
    aa__shake           = 24;
    save_pvars();
}
function turbo(btn) {
    if (!turbo__trigger || !get_val(btn)) return;
    set_val(btn, 100);
    }
function No__recoil(No__recoil__x, No__recoil__y) {
    if (get_val(FIRE)) {
    if (isqrt(pow(get_val(RX), 2) + pow(get_val(RY), 2)) <= abs(No__recoil__y)) {   
        if (abs(get_val(RY)) <= abs(No__recoil__y)) {
            recoil__x = (get_val(RX) + (No__recoil__x*(100-abs(get_val(RX))))/100);
            set_val(RX, recoil__x);           
            if (AIM__INVERTED)
                recoil__y = (get_val(RY) - (No__recoil__y*(100-abs(get_val(RY))))/100); // Y-axis invert
            else
                recoil__y = (get_val(RY) + (No__recoil__y*(100-abs(get_val(RY))))/100);
            if (recoil__y > No__recoil__y) recoil__y = No__recoil__y;
            set_val(RY, recoil__y);             
             }
         }
     }
 }
 function xy_val(f_axis,f_val) {
    if(abs(get_val(f_axis)) < release)
    return f_val;
    return get_val(f_axis);
}
function double_click(button) {       
    if (double__tap[button] >= 0) {                   
        double__tap[button] += get_rtime();
        if (double__tap[button] > 450)
            double__tap[button] = -1;                                                                                       
    }           
    if (event_release(button) && get_ptime(button) <= 200) {
        if (double__tap[button] < 0) {                   
            double__tap[button] = 0;                       
        } else {             
            double__tap[button] = -1;                       
            return 1;                                   
        }                                                     
    }                                                 
    return 0;
    }
function save_pvars() {
    set_pvar(SPVAR_8, NO__RECOIL__Y);
    set_pvar(SPVAR_9, NO__RECOIL__X);
    set_pvar(SPVAR_7, aa__shake);
    }
User avatar
Eman69
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Fri Apr 20, 2018 1:51 am

Re: can someone make this into a titan one script please

Postby J2Kbr » Sat Dec 29, 2018 10:07 am

Errors fixed:
Code: Select all
/*
*V2.6 xs / AFTER THE MAJOR UPDATE IN DECEMBER
Built for device / works with all consoles
Added WW2 reload times / so script can be used with WW2 as well
 
 __                     __   ___     __       ___     
/  `  /\  |    |       /  \ |__     |  \ |  |  |  \ /
\__, /~~\ |___ |___    \__/ |       |__/ \__/  |   | 
 
 __             __           __   __   __             
|__) |     /\  /  ` |__/    /  \ |__) /__`    | \  / 
|__) |___ /~~\ \__, |  \    \__/ |    .__/    |  \/                                           
 
    _  _ ____    ____ ___  _ ___ _ ____ _  _
     \/  [__     |___ |  \ |  |  | |  | |\ |
    _/\_ ___]    |___ |__/ |  |  | |__| | \|
 
            A GPC Power Script By
     __                                       
    /   __ _ __     _ |V| _       | | _  _  __
    \__ | (_)| ||_|_> | |(_|>< ___|_|_> (/_ |
 
 
Credits: Excalibur, Batts, Spegeli and others here at device!
 
--------------------------------------------------------------------------------------------------------
                                                                     ,---------------------------.
  INSTRUCTIONS: https://tinyurl.com/scriptinstructions        __@  ' | READ THE INSTRUCTIONS !!! |
                                                             ( ..)  -_)--------------------------'
---------------------------------------------------------ooO--(_)--Ooo----------------------------------
    !!To read the intructions you need to open the link above in your internet browser!!
 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |U|S|E|R| |C|O|N|F|I|G|U|R|A|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
 
       IN THE USER CONFIG SECTION YOU CAN SET THE DEFAULT SETTINGS
       FOR YOUR SCRIPT, SO WHICH MODS SHOULD BE LOADED BY DEFAULT 
       AND WHICH NOT. CHANGE "TRUE" TO "FALSE" AND VICE VERSA.     
       "TRUE" MEANS ON BY DEFAULT, "FALSE" MEANS OFF BY DEFAULT.
 
//---------------------------/ START USER CONFIG---------------------------------------*/

 
define AIM__INVERTED=FALSE;        // IF YOU PLAY WITH AIM INVERTED SET "TRUE;"
define EASY__RUN=TRUE;            // EASY RUN
define RUN__SENS=25;            // SENSITIVITY WHEN EASY RUN SHOULD ACTIVATE
define CNCL__RELOAD=TRUE;        // AUTO CANCEL RELOAD
define RELOAD__TIME=2000;        // SET LONGEST RELOAD TIME IN YOUR SCRIPT
define EASY__MELEE=TRUE;        // EASY MELEE
 
define turbo__trigger=TRUE;        // HAIR TRIGGERS ON BY DEFAULT FOR BOTH TRIGGERS
define EASY__SLIDE_DROP=TRUE;    // TAP PRONE BTN TO CROUCH. HOLD FOR A SECOND TO PRONE
define Time__b__Prone=150;        // YOU CAN CHANGE THE TIME BEFORE PRONE HERE (SO FOR HOW
/*                                   LONG YOU MUST PRESS THE PRONE BTN FOR EASY SLIDE/DROP)
                                   IF FILL OUT VALUE 0, YOU WILL IMMEDIATELY SLIDE OR PRONE
                                   (BUT YOU WILL NOT BE ABLE TO PRONE AT ALL IN THE GAME)
/*
       THE MODS BELOW ("INT") ARE VARIABLES WITH TOGGLES THAT YOU CAN
       SWITCH OFF AND ON IN THE GAME. THE TOGGLES ARE EXPLAINED IN THE
       MANUAL (SEE TINY URL AT THE TOP OF THE SCRIPT). LIKE ABOVE YOU
       CAN SET THEM ON AND OFF BY DEFAULT, BUT THE TOGGLES WILL STILL WORK
       EVEN IF YOU SET THE OFF BY DEFAULT. */
       
 
int       NO__RECOIL=FALSE;        // ANTI RECOIL
int    STICKY__AIM=TRUE;        // AIM ASSIST - THE STRONGEST AIM ASSIST YOU WILL FIND ANYWHERE...100% .
int    AIM__CORRECT=TRUE;        // WILL MAKE AIM ASSIST STRONGER WHEN ADS, AND STRONGEST WHEN FIRING + AIMING.
int       AKIMBO__AUTO_AIM=FALSE;    // AKIMBO / AUTO AIM, PRESSING FIRE WILL AUTO PRESS AIM
/*
       AUTO HEALING: WITH THE MEDIC EQUIPMENT SELECTED AS GEAR IN THE GAME YOU CAN HAVE YOUR
       CHARACTER AUTO HEAL HIM/HER SELF. THERE ARE THREE OPTIONS BELOW. TWO FOR MULTIPLAYER, ONE FOR BLACK
       OUT. FIRE AND HEAL IS FOR MULTIPLAYER, IT WILL HEAL EVERY TIME YOU RELEASE THE FIRE BUTTON. THE OTHER
       HEAL FUNCTIONS, WILL AUTO HEAL AFTER YOU RELOADED YOUR WEAPON (BUT ONLY IF YOU RELOAD WITHIN 6000ms
       AFTER FIRING YOUR WEAPON). ALL HEAL FUNCTIONS CAN BE SWITCHED ON/OFF DURING THE GAME. THE SCRIPT WILL
       RUN ONLY ONE HEAL FUNCTION AT A TIME, SO SWITCHING ON A HEAL FUNCTION WILL SWITCH OFF ANY 
       OTHER HEAL FUNCTION.
*/

int    AUTO__HEAL=FALSE;        //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R2 / XB1_RT   
int    A__HEAL_BLACK_OUT=FALSE; //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R1 / XB1_RB
int       FIRE_AND_HEAL=FALSE;        //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R3 / XB1_RS
 
/*     AIM CORRECTION SENSITIVITY VALUES:
       ADS SENS = SENS WHEN AIMING
       GEN SENS = GENERAL STICK SENS
       HIP SENS = SENS WHEN HIP FIRING
       ADS FIRE SENS = SENS WHEN AIMING AND FIRING WEAPON
       DO NOT CHANGE MIDPOINT
 
AIM CORRECTION SENSITIVITY VALUES:  */

int ADS_SENS=95, GEN_SENS=100, HIP_SENS=100, ADS_FIRE_SENS=85, Use_sens, midpoint=50;
 
/*     BELOW YOU CAN SET THE SWITCH FOR ACTIVATING A KILL STREAK and THE SPECIAL POWER
       OF YOUR CHARACTER. THIS WILL ALLOW YOU TO ACTIVATE EITHER OF THEM WITH JUST ONE TAP
       OFF A BUTTON. CHOOSE ONE OF THESE BUTTON:
       13 = D-PAD UP
       14 = D-PAD DOWN
       15 = D-PAD LEFT
       16 = D-PAD RIGHT
       6 = PS4_L1 / XB1_LB
       26 = OFF (SO YOU ACTIVATE THE KILLS STREAK AND SUPER POWER MANUALLY IN THE GAME)
 
ACTIVATION SWITCH FOR SUPER POWER & KILL STREAK: */

define SUPER__POWER__SW=13;
define KILL__STREAK__SW=15;
 
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |C|O|N|T|R|O|L|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/

define HOME=0;            //PS4_PS / XB1_XBOX
define VIEW_reset=1;    //PS4_SHARE / XB1_VIEW
define MENU_save=2;        //PS4_OPTIONS / XB1_MENU
define LETHAL=3;        //PS4_R1 / XB1_RB
define FIRE=4;            //PS4_R2 / XB1_RT
define PRONE=5;            //PS4_R3 / XB1_RS
define TACTICAL=6;        //PS4_L1 / XB1_LB
define ADS=7;            //PS4_L2 / XB1_LT
define SPRINT=8;        //PS4_L3 / XB1_LS
define RX=9;            //PS4_RX / XB1_RX
define RY=10;            //PS4_RY / XB1_RY
define LX=11;            //PS4_LX / XB1_LX
define LY=12;            //PS4_LY / XB1_LY
define UP=13;            //PS4_UP / XB1_UP
define DOWN=14;            //PS4_DOWN / XB1_DOWN
define LEFT=15;            //PS4_LEFT / XB1_LEFT
define RIGHT=16;        //PS4_RIGHT / XB1_RIGHT
define SW_WEAPON=17;    //PS4_TRIANGLE / XB1_Y
define MELEE=18;        //PS4_CIRCLE / XB1_B
define JUMP=19;            //PS4_CROSS / XB1_A
define RELOAD=20;        //PS4_SQUARE / XB1_X
define GYROX_PR1=24;    //PS4_GYROX / XB1_PR1
define GYROY_PR2=25;    //PS4_GYROY / XB1_PR2
define GYROZ_PL1=26;    //PS4_GYROZ / XB1_PL1
define TOUCH_PL2=27;    //PS4_TOUCH / XB1_PL2
/*
----------------------/ END USER CONFIG /-----------------------------------------------
 
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

int    q;
int    double__tap[30];
int    recoil__y, recoil__x;
int    NO__RECOIL__Y, NO__RECOIL__X;
int    G__M=TRUE;
int    hold_time=35;
int    rest_time=35;
int    PrimaryWeapon=TRUE;
int    RF_KS=FALSE;
int    R2F_K2S=FALSE;
int    b_reload;
int    aa__shake=24;
int    aa_delay=20;
int    release=25;
int    Secondary=FALSE; //set to TRUE if you preffer to load the script with rapid fire for seconday weapon by default.
int    TimelimitA=6000; // 1 timer
int    TimerA=0;
int    easy_run_KS=FALSE;
int    reload__WW2;
int    KS_time;
int    A__H_time=40;
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |I|N|I|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

init {
    while(q < 30) {
        double__tap[q] = -1;       
        q++;
    }   
    NO__RECOIL__Y       = get_pvar(SPVAR_8,-100,+100,+38)
    NO__RECOIL__X       = get_pvar(SPVAR_9,-100,+100,0);           
    aa__shake            = get_pvar(SPVAR_7,-50,+50,24);
 
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |M|A|I|N| |B|L|O|C|K| |S|T|A|R|T|S| |H|E|R|E| | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

main {
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |L|O|A|D| |M|O|D|E|S| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

  if(get_val(DOWN)) {//HOLD DOWN
    if (double_click(2)) { //DOUBLE TAP PS4_OPTIONS / XB1_MENU
        G__M = !G__M;
      if (G__M) combo_run (Rumb);
      if (!G__M) combo_run (RumbTwo);
    }
    set_val(2,0);
    }
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | |M|E|N|U| |A|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(get_val(ADS)){//hold ADS button
 
//--RESET EPROM TO DEFAULT VALUES
 
    if(get_val(VIEW_reset)&&get_ptime(VIEW_reset)>600){
        RESET_Defaults();
    }
//--RAPID FIRE ON SECONDARY
    if(event_press(UP)){//D-pad UP
        PrimaryWeapon=TRUE;
        RF_KS=FALSE;
        R2F_K2S=TRUE;
        Secondary=TRUE;
        if (Secondary) combo_run (RumbTwo);
        }
//--RAPID FIRE OFF
    if(event_press(DOWN)){//D-pad DOWN
        PrimaryWeapon=TRUE;
        RF_KS=FALSE;
        R2F_K2S=FALSE;
        Secondary=FALSE;   
        if (!R2F_K2S) combo_run (Rumb);
}
//--RAPID FIRE ON
    if(event_press(RIGHT)){//D-pad RIGHT
        PrimaryWeapon=TRUE;
        RF_KS=TRUE;       
        R2F_K2S=TRUE;
        Secondary=FALSE;   
        if (RF_KS) combo_run (RumbTwo);
}
//--AKIMBO
    if(event_press(LEFT)){//D-pad LEFT
        AKIMBO__AUTO_AIM = !AKIMBO__AUTO_AIM;
             if (AKIMBO__AUTO_AIM) combo_run (RumbTwo);
            if (!AKIMBO__AUTO_AIM) combo_run (Rumb);
            PrimaryWeapon=TRUE;
            Secondary=TRUE;           
}
    set_val(1,0);
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |T|O|G|G|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 if(get_val(DOWN) && get_val (ADS)){
     if (event_press (19)){//TAP A
         NO__RECOIL = !NO__RECOIL;
         if (NO__RECOIL) combo_run (RumbTwo);
         if (!NO__RECOIL) combo_run (Rumb);     
     }
 
     if (event_press (18)){//TAP B
         AIM__CORRECT = !AIM__CORRECT;
         if (AIM__CORRECT) combo_run (RumbTwo);
         if (!AIM__CORRECT) combo_run (Rumb);
     }
 
     if (event_press (17)){//TAP Y
         STICKY__AIM = !STICKY__AIM;
         if (STICKY__AIM) combo_run (RumbTwo);
         if (!STICKY__AIM) combo_run (Rumb);
    }
 
     if (event_press (20)){//TAP X
         reload__WW2 = !reload__WW2;
         if (reload__WW2) combo_run (RumbTwo);
         if (!reload__WW2) combo_run (Rumb);     
     }     
     if (event_press (FIRE)){//FIRE BTN
         AKIMBO__AUTO_AIM = !AKIMBO__AUTO_AIM;
         if (AKIMBO__AUTO_AIM) combo_run (RumbTwo);
        if (!AKIMBO__AUTO_AIM) combo_run (Rumb);
    }
    if (double_click(3)){//RB
        A__HEAL_BLACK_OUT = !A__HEAL_BLACK_OUT;   
        FIRE_AND_HEAL=FALSE;
        if (A__HEAL_BLACK_OUT)  combo_run (RumbTwo);
         if (!A__HEAL_BLACK_OUT) combo_run (Rumb);
    }
    if (double_click(4)){//RT
        AUTO__HEAL = !AUTO__HEAL;
        A__HEAL_BLACK_OUT=FALSE;
        FIRE_AND_HEAL=FALSE;
        if (AUTO__HEAL) combo_run (RumbTwo);
         if (!AUTO__HEAL) combo_run (Rumb);
     }   
   if (double_click(5)){//RS
           FIRE_AND_HEAL=!FIRE_AND_HEAL;
        AUTO__HEAL=FALSE;
        A__HEAL_BLACK_OUT=FALSE;   
        if (FIRE_AND_HEAL) combo_run (RumbTwo);
         if (!FIRE_AND_HEAL) combo_run (Rumb);
    }   
    set_val (FIRE,0);set_val (TACTICAL,0);set_val(19,0);set_val (18,0);set_val (17,0); set_val (20,0)
    }
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |S|L|I|D|E| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if(EASY__SLIDE_DROP){
if (event_release(PRONE) && get_ptime(PRONE)> Time__b__Prone){
        combo_run(DROP_SHOT);
    }
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|K|I|M|B|O| |/|A|U|T|O| |A|I|M| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 if(AKIMBO__AUTO_AIM) {   
      if(PrimaryWeapon && get_val(FIRE))
             set_val(ADS,100);         
       }                               
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|E|L|O|A|D| |T|I|M|E|S| |W|W|2| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (reload__WW2){
    KS_time= 2000;}
    else KS_time=0;
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |T|U|R|B|O| |B|T|N| |A|.|K|.| |H|A|I|R| |T|R|I|G|G|E|R|S| | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
turbo(FIRE);
turbo(ADS);
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|I|M| | |C|O|R|R|E|C|T|I|O|N|S| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
if(AIM__CORRECT){
Aim__Correction (Use_sens);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|U|T|O| |H|E|A|L| |B|L|A|C|K| |O|U|T| | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (A__HEAL_BLACK_OUT){
    AUTO__HEAL=TRUE;
    A__H_time= 4000;}
    else A__H_time= 40;   
/*
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|U|T|O| |H|E|A|L| | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (event_release (FIRE)) {TimerA=TimelimitA;}
 if (TimerA>0)
     {
     TimerA=TimerA - get_rtime();
     if (TimerA<=6000 && event_press (RELOAD)){ combo_run (Heal);}
     }
if (FIRE_AND_HEAL){
 if (event_release (FIRE)) combo_run (Fire_and_Heal);
 }
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
 if (NO__RECOIL){
No__recoil(NO__RECOIL__X, NO__RECOIL__Y);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |M|O|D|E| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
       
 P__M(G__M)
 /*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (EASY__RUN){
    if (!easy_run_KS && get_val(LY) < -RUN__SENS && !get_val(ADS)) {
     combo_run (EASY_RUN);}
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (EASY__MELEE){
  if (get_val(SPRINT)) set_val(MELEE, 100);}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|A|P|I|D| |F|I|R|E| |&| |J|I|T|T|E|R| | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
//-- RF PRIMARY 
 
if (PrimaryWeapon && RF_KS && get_val(FIRE))combo_run (RAPID_FIRE);   
 
//- RF SECONDARY
 
 if(!PrimaryWeapon && R2F_K2S)   
  if(get_val(FIRE)) {
      combo_run (RAPID_FIRE);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(event_release(RELOAD) && get_ptime(RELOAD)> 200 &&(Secondary)){ PrimaryWeapon = TRUE; combo_run (Rumb);} 
 
if (Secondary){
    if(event_release(SW_WEAPON)&& get_ptime(SW_WEAPON)< 200  && !get_val (14)){ 
      PrimaryWeapon = !PrimaryWeapon;
      if (!PrimaryWeapon) combo_run (RumbTwo);
  }
}
 /*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
 if (CNCL__RELOAD) {
     if(event_press(FIRE)  && b_reload){combo_run(CANCEL_RLD); }
     if(event_press(ADS)  && b_reload){combo_run(CANCEL_RLD);}
         if(event_release(RELOAD) && get_ptime(RELOAD)< 200){
          combo_run (STOP_SPRINT); combo_run(RELOAD_END); }
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|I|M| |A|S|S|I|S|T| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(STICKY__AIM){
    if(get_val(ADS)) combo_run(AA_XY);
      else combo_stop(AA_XY);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |K|I|L|L| |S|W|I|T|C|H| |&| |S|U|P|E|R| |P|W| |S|W|I|T|C|H| | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

//switches are prepared to work normally even if Jitter mod is used by adding a little press time.
if(event_press (SUPER__POWER__SW) && !get_val (ADS) && get_ptime(SUPER__POWER__SW)< 15 && G__M) { combo_run(SPECIAL);}
if(event_press (KILL__STREAK__SW) &&  !get_val (ADS) && get_ptime(KILL__STREAK__SW)< 15 && G__M) { combo_run(KILL);
}
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |C|O|M|B|O| |S|E|C|T|I|O|N| | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

combo AA_XY {
    set_val(10,xy_val(10,aa__shake));
    wait(aa_delay);
    set_val(9,xy_val(9,aa__shake));
    set_val(11,xy_val(11,aa__shake));
    wait(aa_delay);
    set_val(10,xy_val(10,aa__shake * -1));
    wait(aa_delay);
    set_val(9,xy_val(9,aa__shake * -1));
    set_val(11,xy_val(11,aa__shake * -1));
    wait(aa_delay);
}
combo Rumb{
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
     wait(150);
     reset_rumble();
}
combo RumbTwo {
    wait(300);
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
    wait (150);
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
    wait(150);
    reset_rumble();
}
combo STOP_SPRINT {     
    easy_run_KS = TRUE
    wait(KS_time);
    easy_run_KS = FALSE;
}
combo Fire_and_Heal {     
    set_val(TACTICAL,100);
    wait(40);   
}
combo RAPID_FIRE {
    set_val(FIRE,100);
    wait(hold_time);
    set_val(FIRE,  0);
    wait(rest_time);
}
combo RELOAD_END {
    b_reload=TRUE;
    wait(RELOAD__TIME);
    b_reload=FALSE;
}
combo Heal {     
    wait (RELOAD__TIME);
    if (AUTO__HEAL)
    set_val(TACTICAL,100);
    wait(A__H_time);
}
combo CANCEL_RLD {
    set_val(SW_WEAPON, 100);
    wait(30);
    set_val(SW_WEAPON, 0);
    wait(20);
    set_val(SW_WEAPON, 100);
    wait(30);
    set_val(SW_WEAPON, 0);
    wait(20);
    b_reload=FALSE;
}
combo SPECIAL {
    set_val(LETHAL,100)
    set_val(TACTICAL,100);
    wait(100);
    wait(40);
} 
combo KILL {
    set_val (SW_WEAPON, 100);
    wait(400);
    set_val (SW_WEAPON,0);
    wait(40);
}
combo DROP_SHOT{
    set_val(PRONE,100);
    wait(700)
}
combo EASY_RUN {
    set_val(SPRINT,100);
    wait(30);   
    wait(100);
}
function P__M(program__mode) {
    if (program__mode) return;
        if (get_val(UP)) {
        NO__RECOIL__Y = Variable__Var(NO__RECOIL__Y, -100, 100, 3, 4);
        NO__RECOIL__X = Variable__Var(NO__RECOIL__X, -100, 100, 6, 7);
        aa__shake = Variable__Var(aa__shake, -50, 50, 1, 2);
        set_val (1,0); set_val (2,0); set_val (3,0); set_val (4,0); set_val (6,0); set_val (7,0);
 
        } 
        save_pvars();
}
function Variable__Var(var__val, min_val, max_val, btn_up, btn_down) {
    if(event_press(btn_up) && var__val < max_val) {
        var__val++;
        combo_run (Rumb);
    }       
    if(event_press(btn_down) && var__val > min_val) {
        var__val--;
        combo_run (Rumb);
    }
    return var__val;
}
function Aim__Correction (Use_sens){
 
  if(get_val(FIRE) && get_val(ADS)) {
    Use_sens = ADS_FIRE_SENS;
  }
  if(get_val(FIRE) && !get_val(ADS)) {
    Use_sens = HIP_SENS;
  }
  if(!get_val(FIRE) && !get_val(ADS)) {
    Use_sens = GEN_SENS;
  }
  if(!get_val(FIRE) && get_val(ADS)) {
    Use_sens = ADS_SENS;
  }
    sensitivity(9, midpoint ,Use_sens);
    sensitivity(10, midpoint ,Use_sens);
}
function RESET_Defaults () {
    combo_run (Rumb);   
    NO__RECOIL__Y       = +38;
    NO__RECOIL__X       = 0;
    aa__shake           = 24;
    save_pvars();
}
function turbo(btn) {
    if (!turbo__trigger || !get_val(btn)) return;
    set_val(btn, 100);
    }
function No__recoil(No__recoil__x, No__recoil__y) {
    if (get_val(FIRE)) {
    if (isqrt(pow(get_val(RX), 2) + pow(get_val(RY), 2)) <= abs(No__recoil__y)) {   
        if (abs(get_val(RY)) <= abs(No__recoil__y)) {
            recoil__x = (get_val(RX) + (No__recoil__x*(100-abs(get_val(RX))))/100);
            set_val(RX, recoil__x);           
            if (AIM__INVERTED)
                recoil__y = (get_val(RY) - (No__recoil__y*(100-abs(get_val(RY))))/100); // Y-axis invert
            else
                recoil__y = (get_val(RY) + (No__recoil__y*(100-abs(get_val(RY))))/100);
            if (recoil__y > No__recoil__y) recoil__y = No__recoil__y;
            set_val(RY, recoil__y);             
             }
         }
     }
 }
 function xy_val(f_axis,f_val) {
    if(abs(get_val(f_axis)) < release)
    return f_val;
    return get_val(f_axis);
}
function double_click(button) {       
    if (double__tap[button] >= 0) {                   
        double__tap[button] = double__tap[button] + get_rtime();
        if (double__tap[button] > 450)
            double__tap[button] = -1;                                                                                       
    }           
    if (event_release(button) && get_ptime(button) <= 200) {
        if (double__tap[button] < 0) {                   
            double__tap[button] = 0;                       
        } else {             
            double__tap[button] = -1;                       
            return 1;                                   
        }                                                     
    }                                                 
    return 0;
    }
function save_pvars() {
    set_pvar(SPVAR_8, NO__RECOIL__Y);
    set_pvar(SPVAR_9, NO__RECOIL__X);
    set_pvar(SPVAR_7, aa__shake);
    }
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: can someone make this into a titan one script please

Postby Eman69 » Sat Dec 29, 2018 9:53 pm

may god bless you
User avatar
Eman69
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Fri Apr 20, 2018 1:51 am

Re: can someone make this into a titan one script please

Postby Eman69 » Sat Dec 29, 2018 10:02 pm

Code: Select all
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\\
//        FACEWAVE FORTNITE SCRIPT         //     _   _                 _                       //        IMPORTANT MESSEGE      //   
//              ( 10Mod-Pack )             //    | | | |               | |                      // 1)IF YOU HAVE A YOUTUBE,    //
//    MODS LIST:                              //    | |_| |__   __ _ _ __ | | ___   _  ___  _   _  //     PLEASE MAKE A REVIEW.      //
//    1) AUTO-AIM & TRACKER 6) FAST-EDIT   //    | __| '_ \ / _` | '_ \| |/ / | | |/ _ \| | | | // 2)This script is only for   //
//    2) PERFECT-AIM          7) GHOST-PEEK  //    | |_| | | | (_| | | | |   <| |_| | (_) | |_| | //     Builder pro custom          //
//    3) AUTO-PICKUP          8) TURBO-BUILD //     \__|_| |_|\__,_|_| |_|_|\_\\__, |\___/ \__,_| // 3)YOU WILL NEED TO CHANGE   //
//    4) AUTO-SPRINT       (Dev) ANTI-RECOIL //                                 __/ |             //     YOUR CONTROLS(LIST BELOW) //
//    5) THREE-SWAPS     (Dev) RAPID-FIRE  //                                |___/               // 4)SCRIPT WILL BE UPDATE 24/7//
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 5)SPREAD THIS SCRIPT EVERY  //
                                         //        CREDIT:                                       \\   WHERE(MAKING OTHER SELLERS//
          // Version = 4.0 \\              //    1) FaceWave: {_DEVOLOPER_}                       \\    MAD, BECAUSE THIS IS "O.P"//
                                         //||||||||||||||||||||||||||||||||||||||||||||||||\\       CopyRight Licensed       \\
                                                                                           //|||||||||||||||||||||||||||||\\
 
//------------------------------------------------------\\
//===================={ BLOCK MODS }====================\\
//------------------------------------------------------\\
 
 
//|||||||||||||||||||||||||\\
//        SYSTEM_BLOCK       //
//-------------------------//   
int MODE_SYSTEM = FALSE;   //   
int rumble_type = RUMBLE_A;//   
int    VIB_A        =    100;   //   
int    VIB_B        =    300;   //   
//|||||||||||||||||||||||||\\   
 
 
/*##//||||||||||||||||||||||||||/*##//||||||||||||||||||||||||||\\
/*##//         TriggerSWAP         /*##//          BuildSWAP          //
/*##//--------------------------/*##//--------------------------//
/*##*/
    int    TRIGSWAP =    FALSE;    /*##*/  int BUILSWAP =    FALSE//
/*##//||||||||||||||||||||||||||/*##//||||||||||||||||||||||||||//
/*##//||||||||||||||||||||||||||/*##//    MECH_SETTINGS:            //
/*##//           JumpSWAP           /*##*/
////////////////////////////
/*##//--------------------------/*##*/////////////////////////////
/*##*/    int    JUMPSWAP =    FALSE;    /*##*/////////////////////////////
/*##//||||||||||||||||||||||||||/*##*/  int AntiRecoil  = FALSE;//
/*##//||||||||||||||||||||||||||/*##*/    int RapidFire    = FALSE;//
/*##//           EditSWAP           /*##*/    int System_CMD  = FALSE;//
/*##//--------------------------/*##*/////////////////////////////
/*##*/    int    EDITSWAP =    FALSE;    /*##*/////////////////////////////
/*##//||||||||||||||||||||||||||/*##*/////////////////////////////
 
 
//|||||||||||||||||||||||||\\
//        TRACKER_BLOCK      //
//-------------------------//
    int TRACKER = TRUE;    //
    int delay    = 19;      //
    int P_D        = 20;       //
    int N_D     = -20;       //
    int N_DiV    = -33;       //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//      PERFECT-AIM_BLOCK       //
//-------------------------//
    int    PERF_AIM = TRUE;   //
    int PFCA_VAL = 225;    //
    int PFCB_VAL = 100;       //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//        AUTO_AIM_BLOCK       //
//-------------------------//
    int AUTO_AIM = TRUE;   //
    int AADELAY     = FALSE//
    int AALOCK     = FALSE//
    int AiM_H = 164;       //
    int AiM_R = 33;              //
    int AiM_M = 132;       //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//        BUILD_BLOCK           //
//-------------------------//
int    Build_Mode  =    FALSE; //   
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\   
//      AUTO-SPRINT_BLOCK       //   
//-------------------------//   
int    AutoSprint    =    TRUE//   
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//       GHOSTPEEK_BLOCK       //
//-------------------------//
    int GhostPeek = TRUE//
    int    GP_NUM_A = 15;       //
    int GP_NUM_B = 50;     //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//       TURBOBUILD_BLOCK       //
//-------------------------//
int    TB_VA        =    40;       //
int    TB_VB        =    36;       //
int WALL        =    XB1_RT;//
int FLOOR        =    XB1_RB;//
int    STAIRS        =    XB1_LT;//
int PYRAMID        =    XB1_LB;//
//|||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||\\
//      FAST-EDIT_BLOCK      //
//------------------------//
    int FastEditA = FALSE;//
    int FastEditB = FALSE;//
    int    EditSA      =    100//
    int    EditSB      =    10;      //
//||||||||||||||||||||||||\\   
 
 
//||||||||||||||||||||||||||||\\
//        BUTTON_LAYOUT             //
//----------------------------//
define    LT_BTN    =    XB1_LT;      //
define    RT_BTN    =    XB1_RT;      //
define    LB_BTN    =    XB1_LB;      //
define    RB_BTN    =    XB1_RB;      //
define    Y_BTN    =    XB1_Y;      //
define    B_BTN    =    XB1_B;      //
define    X_BTN    =    XB1_X;      //
define    A_BTN    =    XB1_A;      //
define    LS_BTN    =    XB1_LS;      //
define    RS_BTN    =    XB1_RS;      //
define  AX_LY   =   XB1_LY;      //
define    AX_RY    =    XB1_RY;      //
define    AX_RX    =    XB1_RX;      //
define    LEFT    =    XB1_LEFT; //
define    RIGHT    =    XB1_RIGHT;//
define    UP        =    XB1_UP;      //
define    DOWN    =    XB1_DOWN; //
define    HOME    =    XB1_XBOX; //
//||||||||||||||||||||||||||||\\
 
 
//------------------------------------------------------\\
//===================={ PROPERTIES }====================\\
//------------------------------------------------------\\
 
 
                        //|||||\\
                        //START//
                        //-----//
                          main{//
                        //|||||\\
 
 
//|||||||||||||||||||||||||||||||||||||||||\\
//        SYSTEM_PROPERTIES                      //
//-----------------------------------------//
    if(get_val(LT_BTN)&&event_press(HOME)){//
        TRACKER        = TRUE;                    //
        AUTO_AIM     = TRUE;                    //
        PERF_AIM     = TRUE;                   //
        GhostPeek    = TRUE;                   //
        Build_Mode    = FALSE;               //
        VIB_A    =    100;                   //
        VIB_B    =    300;                   //
        MODE_SYSTEM=!MODE_SYSTEM;              //
        rumble_A_if_true(MODE_SYSTEM);        //
        }                                   //
//|||||||||||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||||||\\
//        SYSTEM-CMD_PROPERTIES      //
//----------------------------------//
    if(get_val(LT_BTN)&&            //
      (get_val(RT_BTN)&&            //
       event_press(HOME))){            //
    System_CMD    = TRUE;                //
    MODE_SYSTEM    = FALSE;            //
    VIB_A    =    100;                //
    VIB_B    =    250;                //
    rumble_A_if_true(System_CMD);}    //
    if(System_CMD){                    //
    MODE_SYSTEM    = FALSE;            //
    System_CMD    = TRUE;}            //
    if(MODE_SYSTEM){                //
    System_CMD    = FALSE;            //
    MODE_SYSTEM    = TRUE;}            //
    if(System_CMD){                    //
    if(event_press(UP)){            //
    set_val(UP,0);                    //
    TRIGSWAP = !TRIGSWAP;            //
    rumble_A_if_true(TRIGSWAP);}    //
    if(event_press(LEFT)){            //
    set_val(LEFT,0);                //
    EDITSWAP = !EDITSWAP;            //
    rumble_A_if_true(EDITSWAP);}    //
    if(event_press(DOWN)){            //
    set_val(DOWN,0);                //
    BUILSWAP = !BUILSWAP;            //
    rumble_A_if_true(BUILSWAP);}    //
    if(event_press(RIGHT)){            //
    set_val(RIGHT,0);                //
    JUMPSWAP = !JUMPSWAP;            //
    rumble_A_if_true(JUMPSWAP)}        //
    if(event_press(B_BTN)){            //
    MODE_SYSTEM    = FALSE;            //
    System_CMD    = FALSE;            //
    rumble_A_if_true(System_CMD);}    //
    if(event_press(Y_BTN)){            //
    JUMPSWAP = FALSE;                //
    BUILSWAP = FALSE;                //
    EDITSWAP = FALSE;                //
    TRIGSWAP = FALSE;                //
    VIB_A    =    100;                //
    VIB_B    =    250;                //
    rumble_A_if_true(System_CMD);}} //
//||||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
// ADVANCELAYOUT_PROPERTIES //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(TRIGSWAP)   {        //
    swap (LT_BTN,LB_BTN);   //
    swap (RT_BTN,RB_BTN);}} //
    if(MODE_SYSTEM){        //
    if(EDITSWAP){            //
    if(Build_Mode){            //
    swap (LEFT,LB_BTN);}}}    //
    if(MODE_SYSTEM){        //
    if(JUMPSWAP){            //
    swap (A_BTN,RS_BTN);}}    //
    if(MODE_SYSTEM){        //
    if(BUILSWAP){            //
    swap (B_BTN,LS_BTN);}}    //
//||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
//     TURBOBUILD_PROPERTIES  //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(Build_Mode) {        //
    if(get_val(WALL)){      //
    set_val(WALL,0);        //
    combo_run(TURBO_W);}    //
    if(get_val(FLOOR)){     //
    set_val(FLOOR,0);       //
    combo_run(TURBO_F);}    //
    if(get_val(STAIRS)){    //
    set_val(STAIRS,0);      //
    combo_run(TURBO_S);}    //
    if(get_val(PYRAMID)){   //
    set_val(PYRAMID,0);     //
    combo_run(TURBO_P);}}}  //
//||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||||\\
//     FAST-EDIT_PROPERTIES    //
//---------------------------//
    if(MODE_SYSTEM){         //
    if(event_press(LEFT)){     //
    FastEditA = TRUE;}}       //
    if(MODE_SYSTEM){         //
    if(FastEditA){             //
    if(event_release(RT_BTN) //
    ||event_release(RS_BTN)){//
    combo_run(FastEdit);}}}  //
    if(MODE_SYSTEM){         //
    if(Build_Mode){             //
    if(event_press(LEFT)){     //
    set_val(LB_BTN,0);         //
    FastEditB = TRUE;}}}     //
    if(FastEditB){             //
    if(EDITSWAP){             //
    swap (LEFT,LB_BTN);}}     //
    if(MODE_SYSTEM){         //
    if(FastEditB){             //
    set_val(LB_BTN,0);         //
    Build_Mode  = FALSE;     //
    if(event_release(RT_BTN) //
    ||event_release(RS_BTN)){//
    Build_Mode  = FALSE;     //
    TRACKER        = FALSE;     //
    AUTO_AIM     = FALSE;     //
    PERF_AIM    = FALSE;     //
    GhostPeek    = FALSE;     //
    combo_run(FastEditB);}}} //
//|||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||||\\
//        BUILD_PROPERTIES          //
//--------------------------------//
    if(MODE_SYSTEM){              //
    if(event_press(B_BTN)){          //
    VIB_A    =    55;                  //
    VIB_B    =    100;               //
    TRACKER        = !TRACKER;           //
    AUTO_AIM     = !AUTO_AIM;      //
    PERF_AIM    = !PERF_AIM;      //
    GhostPeek    = !GhostPeek;       //
    Build_Mode    = !Build_Mode;    //
    rumble_A_if_true(Build_Mode); //
    }}                              //
                                  //
    if(MODE_SYSTEM){              //
    if(Build_Mode){                  //
    if(get_val(Y_BTN)){              //
    VIB_A    =    55;                  //
    VIB_B    =    100;               //
    TRACKER        = TRUE;               //
    AUTO_AIM     = TRUE;               //
    PERF_AIM    = TRUE;              //
    GhostPeek    = TRUE;                //
    FastEditA   = FALSE;          //
    FastEditB   = FALSE;          //
    Build_Mode    = FALSE;}}}          //
                                  //
    if(MODE_SYSTEM){              //
    if(get_val(Y_BTN)){              //
    VIB_A    =    55;                  //
    VIB_B    =    100;               //
    TRACKER        = TRUE;              //
    AUTO_AIM     = TRUE;              //
    PERF_AIM    = TRUE;              //
    GhostPeek    = TRUE;                //
    FastEditA   = FALSE;          //
    FastEditB   = FALSE;          //
    Build_Mode    = FALSE;            //
    rumble_A_if_true(Build_Mode); //
    }}                              //
//||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
//   GHOSTPEEK_PROPERTIES   //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(GhostPeek){            //
    if(get_val(LT_BTN)){    //
    if(event_press(LB_BTN)){//
    combo_run(GhostPeek);}    //
    set_val(LB_BTN, 0);}}}    //   
//||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||||||||||||||||||\\
//        AUTO-SPRINT_PROPERTIES               //
//-----------------------------------------//
    if(MODE_SYSTEM){                       //
    if((get_val(AX_LY)<-75)){               //
        combo_run(AutoSprint);}}            //
//|||||||||||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
//  AUTO-PICKUP_PROPERTIES  //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(get_val(X_BTN)) {    //
    set_val(X_BTN, 0);        //
    combo_run(AutoPickUp)//
    }}                        //
//||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||||||||||||||||||\\
//                TRACKER_PROPERTIES                //
//----------------------------------------------//
    if (MODE_SYSTEM){                            //
    if (TRACKER) {                                //
    if (get_val(LT_BTN)) {                        //
           combo_run(TRACKER);}                    //
    if (get_val(AX_RX)<-19||get_val(AX_RX)>19||    //
           get_val(AX_RY)<-19||get_val(AX_RY)>19){    //
        combo_stop(TRACKER);}}}                    //
//||||||||||||||||||||||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//  PERFECT-AIM_PROPERTIES //
//-------------------------//
    if(MODE_SYSTEM){       //
    if(PERF_AIM){           //
    if(get_val(LT_BTN)        //
    && get_val(RB_BTN)){   //
    combo_run(PERF_AIM);   //
    set_val(RB_BTN, 0);       //
    set_val(RT_BTN, 0);}   //
    else {                   //
    combo_stop(PERF_AIM);} //
    }}                       //
//|||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||\\
//        AUTO-AIM_PROPERTIES        //
//------------------------------//
    if (MODE_SYSTEM){            //
    if (AUTO_AIM) {                //
       if (get_val(LT_BTN)>90) {    //
           AADELAY     = TRUE;}        //
       if (event_release(LT_BTN)) {//
           AADELAY     = FALSE;         //
        AALOCK     = FALSE;          //
        combo_stop(ADELAY);     //
           combo_stop(ALOCK);}}}    //
       if (MODE_SYSTEM){            //
       if (AADELAY){                //
           combo_run(ADELAY);}}    //
       if (MODE_SYSTEM){            //
       if (AALOCK){                //
           combo_run(ALOCK);}}        //
//||||||||||||||||||||||||||||||//
 
 
                        //|||||\\
                        // END //
                        //-----//
                            }  //
                        //|||||\\
 
 
//------------------------------------------------------\\
//====================={ FUNCTION }=====================\\
//------------------------------------------------------\\
 
 
//||||||||||||||||||||||||||\\
//       TRACKER_FUNCTION     //
//--------------------------//
    combo TRACKER {             //
    set_val(AX_RY, N_DiV);    //
    wait(delay);               //
    set_val(AX_RY, P_D);       //
    wait(delay);               //
    set_val(AX_RX, P_D);       //
    wait(delay);             //
    set_val(AX_RX, N_D);     //
    wait(delay);             //
    set_val(AX_RY, P_D);     //
    wait(delay);            //
    set_val(AX_RY, N_D);     //
    wait(delay);             //
    set_val(AX_RX, N_D);     //
    wait(delay);             //
    set_val(AX_RX, P_D);     //
    wait(delay);}             //
//||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||\\
//    AUTO-AIM_FUNCTION     //
//-----------------------//
    combo ADELAY {       //
    set_val(LT_BTN, 100);//
    wait(AiM_H);         //
    set_val(LT_BTN, 0);     //
    wait(AiM_R);         //
    AALOCK     = TRUE;     //
    AADELAY     = FALSE;}      //
    combo ALOCK {         //
    set_val(LT_BTN, 100);//
    wait(AiM_M);         //
    set_val(LT_BTN, 0);     //
    wait(AiM_R);}         //
//|||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//     GHOSTPEEK_FUNCTION    //
//-------------------------//
    combo GhostPeek {       //
    set_val(RS_BTN, 100)//
    wait(GP_NUM_A);        //
    set_val(RS_BTN, 0);    //
    wait(GP_NUM_A);        //
    set_val(RT_BTN, 100)//
    wait(GP_NUM_A);        //
    set_val(RT_BTN, 0);    //
    wait(GP_NUM_B);        //
    set_val(RS_BTN, 100)//
    wait(GP_NUM_A);        //
    set_val(RS_BTN, 0);}   //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//    PERFECT-AIM_FUNCTION   //
//-------------------------//
    combo PERF_AIM {       //
    set_val(RT_BTN, 100)//
    wait(PFCB_VAL);           //
    wait(PFCA_VAL);           //
    set_val(RT_BTN, 100);} //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//  AUTO-SPRINT_FUNCTION   //
//-------------------------//
    combo AutoSprint {       //
    set_val(LS_BTN, 100);} //
//|||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||\\
//  AUTO-PICKUP_FUNCTION  //
//------------------------//
    combo AutoPickUp {      //
    set_val(X_BTN, 100)//
    wait(40);              //
    set_val(X_BTN, 0);      //
    wait(40);}              //
//||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||\\
//    TURBOBUILD_FUNCTION   //
//------------------------//
    combo TURBO_W {          //
    set_val(WALL,100);    //
    wait(TB_VA);          //
    set_val(WALL,0);      //
    wait(TB_VB);}         //
    combo TURBO_F {       //
    set_val(FLOOR,100);   //
    wait(TB_VA);          //
    set_val(FLOOR,0);     //
    wait(TB_VB);}         //
    combo TURBO_S {          //
    set_val(STAIRS,100)//
    wait(TB_VA);          //
    set_val(STAIRS,0);    //
    wait(TB_VB);}         //
    combo TURBO_P {       //
    set_val(PYRAMID,100); //
    wait(TB_VA);          //
    set_val(PYRAMID,0);   //
    wait(TB_VB);}         //   
//||||||||||||||||||||||||\\   
 
 
//||||||||||||||||||||||||\\
//    FAST-EDIT_FUNCTION      //
//------------------------//
    combo FastEdit {      //
    set_val(B_BTN, 100)//
    FastEditA = FALSE;    //
    wait(EditSA);          //
    set_val(B_BTN, 0);      //
    wait(EditSB);}          //
    combo FastEditB {     //
    set_val(B_BTN, 100)//
    Build_Mode = TRUE;    //
    FastEditB  = FALSE;   //
    wait(EditSA);          //
    set_val(B_BTN, 0);      //
    wait(EditSB);}          //
//||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||||||\\
//        SYSTEM_FUNCTION                //
//----------------------------------//
    function rumble_A_if_true(var) {//
    if (var) rumble_type = RUMBLE_A;//
    else rumble_type = RUMBLE_B;    //
    combo_run(VIBRATE);                //
    }                                //
    combo VIBRATE {                    //
    set_rumble(rumble_type, VIB_A);    //
    wait(VIB_B);                    //
    reset_rumble();                    //
    }                                //
//||||||||||||||||||||||||||||||||||\\
 
 
/* FIle ID: NaN-NaN-NaN-64D                                                            /*( Copyright © FACEWAVE 2018 )*/
 
 
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                           NNmdhyyyhhdmNN                                                //
//                                    Nhs+:-.``.--:::-...`.-:/oyhm                                        //
//                                ms/.`./oyhmNMMMMMMMMMMMMNdhs+:.`./ohN                                    //
//                            Nh+.`:odNMMMMMMMMMMMMMMMMMMMMMMMMMMmh+-`./sd                                //
//                          h/`.+dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNy/``:sm                            //
//                       Ny.`+dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNy:`./h                            //
//                     Ns..sNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd+``-y                        //
//                    h.-yNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMmo` -h                        //
//                  N/`sMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm: `+N                    //
//                 h.-mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMo``.h                    //
//                s`oMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMh.`.s                    //
//               o sMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm...o                //
//              y.yMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm..`o                //
//             d-sMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd`.`h                //
//              +NMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??????????MMMMMMMMMMMMMMMMMMMMMMMMMMMMMo .-N                //
//             /hMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN.`.s                //
//            yoMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMo .-                //
//            ohMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM????????MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd`.-m            //
//            +mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM????????NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN.`:y            //
//            oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN- +o            //
//            dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM- /+            //
//            MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN``/o            //
//            MMMMMMMMMMMMMNNNMMMMMMMMMMMNMMMNN??MMMMMMMMMMMMMMMMMMMMMMMMMNNNNMMMMMMMMMd`--y            //
//            MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs /-m            //
//               MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM-`++                //
//               MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMy +:d                //
//                MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm`.o/                //
//              MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:`s-m                //
//               NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:`o:h                //
//                NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:`+:h                //
//                 mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd.`+:d                    //
//                  mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNs`-+/m                    //
//                    mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMdo:o+s                    //
//                     mmMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmh++ssm                        //
//                      NmNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNdooosd                        //
//                         NNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNyo+osm                            //
//                           NNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNys++shN                            //
//                              NNNmNNNMMMMMMMMMMMMMMMMMMMMMMMMMNMNmh++ohN                                //
//                                  NNNmmNNNNMMMMMMMNMMMMMMMMNmmyoooym                                    //
//                                       NNMMMNNNNNNmdhyyssossyhm                                        //
//////////////////////////////////////////////////////////////////////////////////////////////////////////
User avatar
Eman69
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Fri Apr 20, 2018 1:51 am

Re: can someone make this into a titan one script please

Postby J2Kbr » Mon Dec 31, 2018 1:50 pm

Code: Select all
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\\
//        FACEWAVE FORTNITE SCRIPT         //     _   _                 _                       //        IMPORTANT MESSEGE      //   
//              ( 10Mod-Pack )             //    | | | |               | |                      // 1)IF YOU HAVE A YOUTUBE,    //
//    MODS LIST:                              //    | |_| |__   __ _ _ __ | | ___   _  ___  _   _  //     PLEASE MAKE A REVIEW.      //
//    1) AUTO-AIM & TRACKER 6) FAST-EDIT   //    | __| '_ \ / _` | '_ \| |/ / | | |/ _ \| | | | // 2)This script is only for   //
//    2) PERFECT-AIM          7) GHOST-PEEK  //    | |_| | | | (_| | | | |   <| |_| | (_) | |_| | //     Builder pro custom          //
//    3) AUTO-PICKUP          8) TURBO-BUILD //     \__|_| |_|\__,_|_| |_|_|\_\\__, |\___/ \__,_| // 3)YOU WILL NEED TO CHANGE   //
//    4) AUTO-SPRINT       (Dev) ANTI-RECOIL //                                 __/ |             //     YOUR CONTROLS(LIST BELOW) //
//    5) THREE-SWAPS     (Dev) RAPID-FIRE  //                                |___/               // 4)SCRIPT WILL BE UPDATE 24/7//
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 5)SPREAD THIS SCRIPT EVERY  //
                                         //        CREDIT:                                       \\   WHERE(MAKING OTHER SELLERS//
          // Version = 4.0 \\              //    1) FaceWave: {_DEVOLOPER_}                       \\    MAD, BECAUSE THIS IS "O.P"//
                                         //||||||||||||||||||||||||||||||||||||||||||||||||\\       CopyRight Licensed       \\
                                                                                           //|||||||||||||||||||||||||||||\\
 
//------------------------------------------------------\\
//===================={ BLOCK MODS }====================\\
//------------------------------------------------------\\
 
 
//|||||||||||||||||||||||||\\
//        SYSTEM_BLOCK       //
//-------------------------//   
int MODE_SYSTEM = FALSE;   //   
int rumble_type = RUMBLE_A;//   
int    VIB_A        =    100;   //   
int    VIB_B        =    300;   //   
//|||||||||||||||||||||||||\\   
 
 
/*##//||||||||||||||||||||||||||/*##//||||||||||||||||||||||||||\\
/*##//         TriggerSWAP         /*##//          BuildSWAP          //
/*##//--------------------------/*##//--------------------------//
/*##*/
    int    TRIGSWAP =    FALSE;    /*##*/  int BUILSWAP =    FALSE//
/*##//||||||||||||||||||||||||||/*##//||||||||||||||||||||||||||//
/*##//||||||||||||||||||||||||||/*##//    MECH_SETTINGS:            //
/*##//           JumpSWAP           /*##*/
////////////////////////////
/*##//--------------------------/*##*/////////////////////////////
/*##*/    int    JUMPSWAP =    FALSE;    /*##*/////////////////////////////
/*##//||||||||||||||||||||||||||/*##*/  int AntiRecoil  = FALSE;//
/*##//||||||||||||||||||||||||||/*##*/    int RapidFire    = FALSE;//
/*##//           EditSWAP           /*##*/    int System_CMD  = FALSE;//
/*##//--------------------------/*##*/////////////////////////////
/*##*/    int    EDITSWAP =    FALSE;    /*##*/////////////////////////////
/*##//||||||||||||||||||||||||||/*##*/////////////////////////////
 
 
//|||||||||||||||||||||||||\\
//        TRACKER_BLOCK      //
//-------------------------//
    int TRACKER = TRUE;    //
    int delay    = 19;      //
    int P_D        = 20;       //
    int N_D     = -20;       //
    int N_DiV    = -33;       //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//      PERFECT-AIM_BLOCK       //
//-------------------------//
    int    PERF_AIM = TRUE;   //
    int PFCA_VAL = 225;    //
    int PFCB_VAL = 100;       //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//        AUTO_AIM_BLOCK       //
//-------------------------//
    int AUTO_AIM = TRUE;   //
    int AADELAY     = FALSE//
    int AALOCK     = FALSE//
    int AiM_H = 164;       //
    int AiM_R = 33;              //
    int AiM_M = 132;       //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//        BUILD_BLOCK           //
//-------------------------//
int    Build_Mode  =    FALSE; //   
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\   
//      AUTO-SPRINT_BLOCK       //   
//-------------------------//   
int    AutoSprint    =    TRUE//   
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//       GHOSTPEEK_BLOCK       //
//-------------------------//
    int GhostPeek = TRUE//
    int    GP_NUM_A = 15;       //
    int GP_NUM_B = 50;     //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//       TURBOBUILD_BLOCK       //
//-------------------------//
int    TB_VA        =    40;       //
int    TB_VB        =    36;       //
int WALL        =    XB1_RT;//
int FLOOR        =    XB1_RB;//
int    STAIRS        =    XB1_LT;//
int PYRAMID        =    XB1_LB;//
//|||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||\\
//      FAST-EDIT_BLOCK      //
//------------------------//
    int FastEditA = FALSE;//
    int FastEditB = FALSE;//
    int    EditSA      =    100//
    int    EditSB      =    10;      //
//||||||||||||||||||||||||\\   
 
 
//||||||||||||||||||||||||||||\\
//        BUTTON_LAYOUT             //
//----------------------------//
define    LT_BTN    =    XB1_LT;      //
define    RT_BTN    =    XB1_RT;      //
define    LB_BTN    =    XB1_LB;      //
define    RB_BTN    =    XB1_RB;      //
define    Y_BTN    =    XB1_Y;      //
define    B_BTN    =    XB1_B;      //
define    X_BTN    =    XB1_X;      //
define    A_BTN    =    XB1_A;      //
define    LS_BTN    =    XB1_LS;      //
define    RS_BTN    =    XB1_RS;      //
define  AX_LY   =   XB1_LY;      //
define    AX_RY    =    XB1_RY;      //
define    AX_RX    =    XB1_RX;      //
define    LEFT    =    XB1_LEFT; //
define    RIGHT    =    XB1_RIGHT;//
define    UP        =    XB1_UP;      //
define    DOWN    =    XB1_DOWN; //
define    HOME    =    XB1_XBOX; //
//||||||||||||||||||||||||||||\\
 
 
//------------------------------------------------------\\
//===================={ PROPERTIES }====================\\
//------------------------------------------------------\\
 
 
                        //|||||\\
                        //START//
                        //-----//
                          main{//
                        //|||||\\
 
 
//|||||||||||||||||||||||||||||||||||||||||\\
//        SYSTEM_PROPERTIES                      //
//-----------------------------------------//
    if(get_val(LT_BTN)&&event_press(HOME)){//
        TRACKER        = TRUE;                    //
        AUTO_AIM     = TRUE;                    //
        PERF_AIM     = TRUE;                   //
        GhostPeek    = TRUE;                   //
        Build_Mode    = FALSE;               //
        VIB_A    =    100;                   //
        VIB_B    =    300;                   //
        MODE_SYSTEM=!MODE_SYSTEM;              //
        rumble_A_if_true(MODE_SYSTEM);        //
        }                                   //
//|||||||||||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||||||\\
//        SYSTEM-CMD_PROPERTIES      //
//----------------------------------//
    if(get_val(LT_BTN)&&            //
      (get_val(RT_BTN)&&            //
       event_press(HOME))){            //
    System_CMD    = TRUE;                //
    MODE_SYSTEM    = FALSE;            //
    VIB_A    =    100;                //
    VIB_B    =    250;                //
    rumble_A_if_true(System_CMD);}    //
    if(System_CMD){                    //
    MODE_SYSTEM    = FALSE;            //
    System_CMD    = TRUE;}            //
    if(MODE_SYSTEM){                //
    System_CMD    = FALSE;            //
    MODE_SYSTEM    = TRUE;}            //
    if(System_CMD){                    //
    if(event_press(UP)){            //
    set_val(UP,0);                    //
    TRIGSWAP = !TRIGSWAP;            //
    rumble_A_if_true(TRIGSWAP);}    //
    if(event_press(LEFT)){            //
    set_val(LEFT,0);                //
    EDITSWAP = !EDITSWAP;            //
    rumble_A_if_true(EDITSWAP);}    //
    if(event_press(DOWN)){            //
    set_val(DOWN,0);                //
    BUILSWAP = !BUILSWAP;            //
    rumble_A_if_true(BUILSWAP);}    //
    if(event_press(RIGHT)){            //
    set_val(RIGHT,0);                //
    JUMPSWAP = !JUMPSWAP;            //
    rumble_A_if_true(JUMPSWAP)}        //
    if(event_press(B_BTN)){            //
    MODE_SYSTEM    = FALSE;            //
    System_CMD    = FALSE;            //
    rumble_A_if_true(System_CMD);}    //
    if(event_press(Y_BTN)){            //
    JUMPSWAP = FALSE;                //
    BUILSWAP = FALSE;                //
    EDITSWAP = FALSE;                //
    TRIGSWAP = FALSE;                //
    VIB_A    =    100;                //
    VIB_B    =    250;                //
    rumble_A_if_true(System_CMD);}} //
//||||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
// ADVANCELAYOUT_PROPERTIES //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(TRIGSWAP)   {        //
    swap (LT_BTN,LB_BTN);   //
    swap (RT_BTN,RB_BTN);}} //
    if(MODE_SYSTEM){        //
    if(EDITSWAP){            //
    if(Build_Mode){            //
    swap (LEFT,LB_BTN);}}}    //
    if(MODE_SYSTEM){        //
    if(JUMPSWAP){            //
    swap (A_BTN,RS_BTN);}}    //
    if(MODE_SYSTEM){        //
    if(BUILSWAP){            //
    swap (B_BTN,LS_BTN);}}    //
//||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
//     TURBOBUILD_PROPERTIES  //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(Build_Mode) {        //
    if(get_val(WALL)){      //
    set_val(WALL,0);        //
    combo_run(TURBO_W);}    //
    if(get_val(FLOOR)){     //
    set_val(FLOOR,0);       //
    combo_run(TURBO_F);}    //
    if(get_val(STAIRS)){    //
    set_val(STAIRS,0);      //
    combo_run(TURBO_S);}    //
    if(get_val(PYRAMID)){   //
    set_val(PYRAMID,0);     //
    combo_run(TURBO_P);}}}  //
//||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||||\\
//     FAST-EDIT_PROPERTIES    //
//---------------------------//
    if(MODE_SYSTEM){         //
    if(event_press(LEFT)){     //
    FastEditA = TRUE;}}       //
    if(MODE_SYSTEM){         //
    if(FastEditA){             //
    if(event_release(RT_BTN) //
    ||event_release(RS_BTN)){//
    combo_run(FastEdit);}}}  //
    if(MODE_SYSTEM){         //
    if(Build_Mode){             //
    if(event_press(LEFT)){     //
    set_val(LB_BTN,0);         //
    FastEditB = TRUE;}}}     //
    if(FastEditB){             //
    if(EDITSWAP){             //
    swap (LEFT,LB_BTN);}}     //
    if(MODE_SYSTEM){         //
    if(FastEditB){             //
    set_val(LB_BTN,0);         //
    Build_Mode  = FALSE;     //
    if(event_release(RT_BTN) //
    ||event_release(RS_BTN)){//
    Build_Mode  = FALSE;     //
    TRACKER        = FALSE;     //
    AUTO_AIM     = FALSE;     //
    PERF_AIM    = FALSE;     //
    GhostPeek    = FALSE;     //
    combo_run(FastEditB_Combo);}}} //
//|||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||||\\
//        BUILD_PROPERTIES          //
//--------------------------------//
    if(MODE_SYSTEM){              //
    if(event_press(B_BTN)){          //
    VIB_A    =    55;                  //
    VIB_B    =    100;               //
    TRACKER        = !TRACKER;           //
    AUTO_AIM     = !AUTO_AIM;      //
    PERF_AIM    = !PERF_AIM;      //
    GhostPeek    = !GhostPeek;       //
    Build_Mode    = !Build_Mode;    //
    rumble_A_if_true(Build_Mode); //
    }}                              //
                                  //
    if(MODE_SYSTEM){              //
    if(Build_Mode){                  //
    if(get_val(Y_BTN)){              //
    VIB_A    =    55;                  //
    VIB_B    =    100;               //
    TRACKER        = TRUE;               //
    AUTO_AIM     = TRUE;               //
    PERF_AIM    = TRUE;              //
    GhostPeek    = TRUE;                //
    FastEditA   = FALSE;          //
    FastEditB   = FALSE;          //
    Build_Mode    = FALSE;}}}          //
                                  //
    if(MODE_SYSTEM){              //
    if(get_val(Y_BTN)){              //
    VIB_A    =    55;                  //
    VIB_B    =    100;               //
    TRACKER        = TRUE;              //
    AUTO_AIM     = TRUE;              //
    PERF_AIM    = TRUE;              //
    GhostPeek    = TRUE;                //
    FastEditA   = FALSE;          //
    FastEditB   = FALSE;          //
    Build_Mode    = FALSE;            //
    rumble_A_if_true(Build_Mode); //
    }}                              //
//||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
//   GHOSTPEEK_PROPERTIES   //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(GhostPeek){            //
    if(get_val(LT_BTN)){    //
    if(event_press(LB_BTN)){//
    combo_run(GhostPeek_Combo);}    //
    set_val(LB_BTN, 0);}}}    //   
//||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||||||||||||||||||\\
//        AUTO-SPRINT_PROPERTIES               //
//-----------------------------------------//
    if(MODE_SYSTEM){                       //
    if((get_val(AX_LY)<-75)){               //
        combo_run(AutoSprint_Combo);}}            //
//|||||||||||||||||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||\\
//  AUTO-PICKUP_PROPERTIES  //
//--------------------------//
    if(MODE_SYSTEM){        //
    if(get_val(X_BTN)) {    //
    set_val(X_BTN, 0);        //
    combo_run(AutoPickUp)//
    }}                        //
//||||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||||||||||||||||||\\
//                TRACKER_PROPERTIES                //
//----------------------------------------------//
    if (MODE_SYSTEM){                            //
    if (TRACKER) {                                //
    if (get_val(LT_BTN)) {                        //
           combo_run(TRACKER_Combo);}                    //
    if (get_val(AX_RX)<-19||get_val(AX_RX)>19||    //
           get_val(AX_RY)<-19||get_val(AX_RY)>19){    //
        combo_stop(TRACKER_Combo);}}}                    //
//||||||||||||||||||||||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//  PERFECT-AIM_PROPERTIES //
//-------------------------//
    if(MODE_SYSTEM){       //
    if(PERF_AIM){           //
    if(get_val(LT_BTN)        //
    && get_val(RB_BTN)){   //
    combo_run(PERF_AIM_Combo);   //
    set_val(RB_BTN, 0);       //
    set_val(RT_BTN, 0);}   //
    else {                   //
    combo_stop(PERF_AIM_Combo);} //
    }}                       //
//|||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||||||||\\
//        AUTO-AIM_PROPERTIES        //
//------------------------------//
    if (MODE_SYSTEM){            //
    if (AUTO_AIM) {                //
       if (get_val(LT_BTN)>90) {    //
           AADELAY     = TRUE;}        //
       if (event_release(LT_BTN)) {//
           AADELAY     = FALSE;         //
        AALOCK     = FALSE;          //
        combo_stop(ADELAY);     //
           combo_stop(ALOCK);}}}    //
       if (MODE_SYSTEM){            //
       if (AADELAY){                //
           combo_run(ADELAY);}}    //
       if (MODE_SYSTEM){            //
       if (AALOCK){                //
           combo_run(ALOCK);}}        //
//||||||||||||||||||||||||||||||//
 
 
                        //|||||\\
                        // END //
                        //-----//
                            }  //
                        //|||||\\
 
 
//------------------------------------------------------\\
//====================={ FUNCTION }=====================\\
//------------------------------------------------------\\
 
 
//||||||||||||||||||||||||||\\
//       TRACKER_FUNCTION     //
//--------------------------//
    combo TRACKER_Combo {             //
    set_val(AX_RY, N_DiV);    //
    wait(delay);               //
    set_val(AX_RY, P_D);       //
    wait(delay);               //
    set_val(AX_RX, P_D);       //
    wait(delay);             //
    set_val(AX_RX, N_D);     //
    wait(delay);             //
    set_val(AX_RY, P_D);     //
    wait(delay);            //
    set_val(AX_RY, N_D);     //
    wait(delay);             //
    set_val(AX_RX, N_D);     //
    wait(delay);             //
    set_val(AX_RX, P_D);     //
    wait(delay);}             //
//||||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||\\
//    AUTO-AIM_FUNCTION     //
//-----------------------//
    combo ADELAY {       //
    set_val(LT_BTN, 100);//
    wait(AiM_H);         //
    set_val(LT_BTN, 0);     //
    wait(AiM_R);         //
    AALOCK     = TRUE;     //
    AADELAY     = FALSE;}      //
    combo ALOCK {         //
    set_val(LT_BTN, 100);//
    wait(AiM_M);         //
    set_val(LT_BTN, 0);     //
    wait(AiM_R);}         //
//|||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//     GHOSTPEEK_FUNCTION    //
//-------------------------//
    combo GhostPeek_Combo {       //
    set_val(RS_BTN, 100)//
    wait(GP_NUM_A);        //
    set_val(RS_BTN, 0);    //
    wait(GP_NUM_A);        //
    set_val(RT_BTN, 100)//
    wait(GP_NUM_A);        //
    set_val(RT_BTN, 0);    //
    wait(GP_NUM_B);        //
    set_val(RS_BTN, 100)//
    wait(GP_NUM_A);        //
    set_val(RS_BTN, 0);}   //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//    PERFECT-AIM_FUNCTION   //
//-------------------------//
    combo PERF_AIM_Combo {       //
    set_val(RT_BTN, 100)//
    wait(PFCB_VAL);           //
    wait(PFCA_VAL);           //
    set_val(RT_BTN, 100);} //
//|||||||||||||||||||||||||\\
 
 
//|||||||||||||||||||||||||\\
//  AUTO-SPRINT_FUNCTION   //
//-------------------------//
    combo AutoSprint_Combo {       //
    set_val(LS_BTN, 100);} //
//|||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||\\
//  AUTO-PICKUP_FUNCTION  //
//------------------------//
    combo AutoPickUp {      //
    set_val(X_BTN, 100)//
    wait(40);              //
    set_val(X_BTN, 0);      //
    wait(40);}              //
//||||||||||||||||||||||||\\
 
 
//||||||||||||||||||||||||\\
//    TURBOBUILD_FUNCTION   //
//------------------------//
    combo TURBO_W {          //
    set_val(WALL,100);    //
    wait(TB_VA);          //
    set_val(WALL,0);      //
    wait(TB_VB);}         //
    combo TURBO_F {       //
    set_val(FLOOR,100);   //
    wait(TB_VA);          //
    set_val(FLOOR,0);     //
    wait(TB_VB);}         //
    combo TURBO_S {          //
    set_val(STAIRS,100)//
    wait(TB_VA);          //
    set_val(STAIRS,0);    //
    wait(TB_VB);}         //
    combo TURBO_P {       //
    set_val(PYRAMID,100); //
    wait(TB_VA);          //
    set_val(PYRAMID,0);   //
    wait(TB_VB);}         //   
//||||||||||||||||||||||||\\   
 
 
//||||||||||||||||||||||||\\
//    FAST-EDIT_FUNCTION      //
//------------------------//
    combo FastEdit {      //
    set_val(B_BTN, 100)//
    FastEditA = FALSE;    //
    wait(EditSA);          //
    set_val(B_BTN, 0);      //
    wait(EditSB);}          //
    combo FastEditB_Combo {     //
    set_val(B_BTN, 100)//
    Build_Mode = TRUE;    //
    FastEditB  = FALSE;   //
    wait(EditSA);          //
    set_val(B_BTN, 0);      //
    wait(EditSB);}          //
//||||||||||||||||||||||||\\
 
    combo VIBRATE {                    //
    set_rumble(rumble_type, VIB_A);    //
    wait(VIB_B);                    //
    reset_rumble();                    //
    }
//||||||||||||||||||||||||||||||||||\\
//        SYSTEM_FUNCTION                //
//----------------------------------//
    function rumble_A_if_true(var) {//
    if (var) rumble_type = RUMBLE_A;//
    else rumble_type = RUMBLE_B;    //
    combo_run(VIBRATE);                //
    }                                //
                                //
//||||||||||||||||||||||||||||||||||\\
 
 
/* FIle ID: NaN-NaN-NaN-64D                                                            /*( Copyright © FACEWAVE 2018 )*/
 
 
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                           NNmdhyyyhhdmNN                                                //
//                                    Nhs+:-.``.--:::-...`.-:/oyhm                                        //
//                                ms/.`./oyhmNMMMMMMMMMMMMNdhs+:.`./ohN                                    //
//                            Nh+.`:odNMMMMMMMMMMMMMMMMMMMMMMMMMMmh+-`./sd                                //
//                          h/`.+dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNy/``:sm                            //
//                       Ny.`+dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNy:`./h                            //
//                     Ns..sNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd+``-y                        //
//                    h.-yNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMmo` -h                        //
//                  N/`sMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm: `+N                    //
//                 h.-mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMo``.h                    //
//                s`oMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMh.`.s                    //
//               o sMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm...o                //
//              y.yMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm..`o                //
//             d-sMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd`.`h                //
//              +NMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??????????MMMMMMMMMMMMMMMMMMMMMMMMMMMMMo .-N                //
//             /hMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN.`.s                //
//            yoMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMo .-                //
//            ohMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM????????MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd`.-m            //
//            +mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM????????NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN.`:y            //
//            oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN- +o            //
//            dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM- /+            //
//            MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM??MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN``/o            //
//            MMMMMMMMMMMMMNNNMMMMMMMMMMMNMMMNN??MMMMMMMMMMMMMMMMMMMMMMMMMNNNNMMMMMMMMMd`--y            //
//            MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs /-m            //
//               MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM-`++                //
//               MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMy +:d                //
//                MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm`.o/                //
//              MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:`s-m                //
//               NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:`o:h                //
//                NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN:`+:h                //
//                 mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd.`+:d                    //
//                  mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNs`-+/m                    //
//                    mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMdo:o+s                    //
//                     mmMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmh++ssm                        //
//                      NmNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNdooosd                        //
//                         NNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNyo+osm                            //
//                           NNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNys++shN                            //
//                              NNNmNNNMMMMMMMMMMMMMMMMMMMMMMMMMNMNmh++ohN                                //
//                                  NNNmmNNNNMMMMMMMNMMMMMMMMNmmyoooym                                    //
//                                       NNMMMNNNNNNmdhyyssossyhm                                        //
//////////////////////////////////////////////////////////////////////////////////////////////////////////
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: can someone make this into a titan one script please

Postby Eman69 » Mon Dec 31, 2018 3:57 pm

thank you again
User avatar
Eman69
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Fri Apr 20, 2018 1:51 am

Re: can someone make this into a titan one script please

Postby Eman69 » Mon Dec 31, 2018 5:27 pm

again I am sorry but can you make it for ps4 I tried myself which gave me errors again I am so sorry I didn't tell you the first time thank you
User avatar
Eman69
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Fri Apr 20, 2018 1:51 am

Re: can someone make this into a titan one script please

Postby Scachi » Mon Dec 31, 2018 5:31 pm

The script should work fine for the ps4 too. The button names in the scripts doesn't matter, they can be xb1 or ps4 or a mix of both and they should work for both consoles.

In this list you will see that PS4_TRIANGLE and XB1_Y are different names for the same number : 17
https://www.consoletuner.com/kbase/i_o_ ... dentifiers
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: can someone make this into a titan one script please

Postby Antec800 » Mon Dec 31, 2018 5:47 pm

J2Kbr wrote:Errors fixed:
Code: Select all
/*
*V2.6 xs / AFTER THE MAJOR UPDATE IN DECEMBER
Built for device / works with all consoles
Added WW2 reload times / so script can be used with WW2 as well
 
 __                     __   ___     __       ___     
/  `  /\  |    |       /  \ |__     |  \ |  |  |  \ /
\__, /~~\ |___ |___    \__/ |       |__/ \__/  |   | 
 
 __             __           __   __   __             
|__) |     /\  /  ` |__/    /  \ |__) /__`    | \  / 
|__) |___ /~~\ \__, |  \    \__/ |    .__/    |  \/                                           
 
    _  _ ____    ____ ___  _ ___ _ ____ _  _
     \/  [__     |___ |  \ |  |  | |  | |\ |
    _/\_ ___]    |___ |__/ |  |  | |__| | \|
 
            A GPC Power Script By
     __                                       
    /   __ _ __     _ |V| _       | | _  _  __
    \__ | (_)| ||_|_> | |(_|>< ___|_|_> (/_ |
 
 
Credits: Excalibur, Batts, Spegeli and others here at device!
 
--------------------------------------------------------------------------------------------------------
                                                                     ,---------------------------.
  INSTRUCTIONS: https://tinyurl.com/scriptinstructions        __@  ' | READ THE INSTRUCTIONS !!! |
                                                             ( ..)  -_)--------------------------'
---------------------------------------------------------ooO--(_)--Ooo----------------------------------
    !!To read the intructions you need to open the link above in your internet browser!!
 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |U|S|E|R| |C|O|N|F|I|G|U|R|A|T|I|O|N| | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 
 
       IN THE USER CONFIG SECTION YOU CAN SET THE DEFAULT SETTINGS
       FOR YOUR SCRIPT, SO WHICH MODS SHOULD BE LOADED BY DEFAULT 
       AND WHICH NOT. CHANGE "TRUE" TO "FALSE" AND VICE VERSA.     
       "TRUE" MEANS ON BY DEFAULT, "FALSE" MEANS OFF BY DEFAULT.
 
//---------------------------/ START USER CONFIG---------------------------------------*/

 
define AIM__INVERTED=FALSE;        // IF YOU PLAY WITH AIM INVERTED SET "TRUE;"
define EASY__RUN=TRUE;            // EASY RUN
define RUN__SENS=25;            // SENSITIVITY WHEN EASY RUN SHOULD ACTIVATE
define CNCL__RELOAD=TRUE;        // AUTO CANCEL RELOAD
define RELOAD__TIME=2000;        // SET LONGEST RELOAD TIME IN YOUR SCRIPT
define EASY__MELEE=TRUE;        // EASY MELEE
 
define turbo__trigger=TRUE;        // HAIR TRIGGERS ON BY DEFAULT FOR BOTH TRIGGERS
define EASY__SLIDE_DROP=TRUE;    // TAP PRONE BTN TO CROUCH. HOLD FOR A SECOND TO PRONE
define Time__b__Prone=150;        // YOU CAN CHANGE THE TIME BEFORE PRONE HERE (SO FOR HOW
/*                                   LONG YOU MUST PRESS THE PRONE BTN FOR EASY SLIDE/DROP)
                                   IF FILL OUT VALUE 0, YOU WILL IMMEDIATELY SLIDE OR PRONE
                                   (BUT YOU WILL NOT BE ABLE TO PRONE AT ALL IN THE GAME)
/*
       THE MODS BELOW ("INT") ARE VARIABLES WITH TOGGLES THAT YOU CAN
       SWITCH OFF AND ON IN THE GAME. THE TOGGLES ARE EXPLAINED IN THE
       MANUAL (SEE TINY URL AT THE TOP OF THE SCRIPT). LIKE ABOVE YOU
       CAN SET THEM ON AND OFF BY DEFAULT, BUT THE TOGGLES WILL STILL WORK
       EVEN IF YOU SET THE OFF BY DEFAULT. */
       
 
int       NO__RECOIL=FALSE;        // ANTI RECOIL
int    STICKY__AIM=TRUE;        // AIM ASSIST - THE STRONGEST AIM ASSIST YOU WILL FIND ANYWHERE...100% .
int    AIM__CORRECT=TRUE;        // WILL MAKE AIM ASSIST STRONGER WHEN ADS, AND STRONGEST WHEN FIRING + AIMING.
int       AKIMBO__AUTO_AIM=FALSE;    // AKIMBO / AUTO AIM, PRESSING FIRE WILL AUTO PRESS AIM
/*
       AUTO HEALING: WITH THE MEDIC EQUIPMENT SELECTED AS GEAR IN THE GAME YOU CAN HAVE YOUR
       CHARACTER AUTO HEAL HIM/HER SELF. THERE ARE THREE OPTIONS BELOW. TWO FOR MULTIPLAYER, ONE FOR BLACK
       OUT. FIRE AND HEAL IS FOR MULTIPLAYER, IT WILL HEAL EVERY TIME YOU RELEASE THE FIRE BUTTON. THE OTHER
       HEAL FUNCTIONS, WILL AUTO HEAL AFTER YOU RELOADED YOUR WEAPON (BUT ONLY IF YOU RELOAD WITHIN 6000ms
       AFTER FIRING YOUR WEAPON). ALL HEAL FUNCTIONS CAN BE SWITCHED ON/OFF DURING THE GAME. THE SCRIPT WILL
       RUN ONLY ONE HEAL FUNCTION AT A TIME, SO SWITCHING ON A HEAL FUNCTION WILL SWITCH OFF ANY 
       OTHER HEAL FUNCTION.
*/

int    AUTO__HEAL=FALSE;        //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R2 / XB1_RT   
int    A__HEAL_BLACK_OUT=FALSE; //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R1 / XB1_RB
int       FIRE_AND_HEAL=FALSE;        //HOLD DOWN + HOLD ADS & DOUBLE TAP PS4_R3 / XB1_RS
 
/*     AIM CORRECTION SENSITIVITY VALUES:
       ADS SENS = SENS WHEN AIMING
       GEN SENS = GENERAL STICK SENS
       HIP SENS = SENS WHEN HIP FIRING
       ADS FIRE SENS = SENS WHEN AIMING AND FIRING WEAPON
       DO NOT CHANGE MIDPOINT
 
AIM CORRECTION SENSITIVITY VALUES:  */

int ADS_SENS=95, GEN_SENS=100, HIP_SENS=100, ADS_FIRE_SENS=85, Use_sens, midpoint=50;
 
/*     BELOW YOU CAN SET THE SWITCH FOR ACTIVATING A KILL STREAK and THE SPECIAL POWER
       OF YOUR CHARACTER. THIS WILL ALLOW YOU TO ACTIVATE EITHER OF THEM WITH JUST ONE TAP
       OFF A BUTTON. CHOOSE ONE OF THESE BUTTON:
       13 = D-PAD UP
       14 = D-PAD DOWN
       15 = D-PAD LEFT
       16 = D-PAD RIGHT
       6 = PS4_L1 / XB1_LB
       26 = OFF (SO YOU ACTIVATE THE KILLS STREAK AND SUPER POWER MANUALLY IN THE GAME)
 
ACTIVATION SWITCH FOR SUPER POWER & KILL STREAK: */

define SUPER__POWER__SW=13;
define KILL__STREAK__SW=15;
 
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |C|O|N|T|R|O|L|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/

define HOME=0;            //PS4_PS / XB1_XBOX
define VIEW_reset=1;    //PS4_SHARE / XB1_VIEW
define MENU_save=2;        //PS4_OPTIONS / XB1_MENU
define LETHAL=3;        //PS4_R1 / XB1_RB
define FIRE=4;            //PS4_R2 / XB1_RT
define PRONE=5;            //PS4_R3 / XB1_RS
define TACTICAL=6;        //PS4_L1 / XB1_LB
define ADS=7;            //PS4_L2 / XB1_LT
define SPRINT=8;        //PS4_L3 / XB1_LS
define RX=9;            //PS4_RX / XB1_RX
define RY=10;            //PS4_RY / XB1_RY
define LX=11;            //PS4_LX / XB1_LX
define LY=12;            //PS4_LY / XB1_LY
define UP=13;            //PS4_UP / XB1_UP
define DOWN=14;            //PS4_DOWN / XB1_DOWN
define LEFT=15;            //PS4_LEFT / XB1_LEFT
define RIGHT=16;        //PS4_RIGHT / XB1_RIGHT
define SW_WEAPON=17;    //PS4_TRIANGLE / XB1_Y
define MELEE=18;        //PS4_CIRCLE / XB1_B
define JUMP=19;            //PS4_CROSS / XB1_A
define RELOAD=20;        //PS4_SQUARE / XB1_X
define GYROX_PR1=24;    //PS4_GYROX / XB1_PR1
define GYROY_PR2=25;    //PS4_GYROY / XB1_PR2
define GYROZ_PL1=26;    //PS4_GYROZ / XB1_PL1
define TOUCH_PL2=27;    //PS4_TOUCH / XB1_PL2
/*
----------------------/ END USER CONFIG /-----------------------------------------------
 
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |V|A|R|I|A|B|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

int    q;
int    double__tap[30];
int    recoil__y, recoil__x;
int    NO__RECOIL__Y, NO__RECOIL__X;
int    G__M=TRUE;
int    hold_time=35;
int    rest_time=35;
int    PrimaryWeapon=TRUE;
int    RF_KS=FALSE;
int    R2F_K2S=FALSE;
int    b_reload;
int    aa__shake=24;
int    aa_delay=20;
int    release=25;
int    Secondary=FALSE; //set to TRUE if you preffer to load the script with rapid fire for seconday weapon by default.
int    TimelimitA=6000; // 1 timer
int    TimerA=0;
int    easy_run_KS=FALSE;
int    reload__WW2;
int    KS_time;
int    A__H_time=40;
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |I|N|I|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

init {
    while(q < 30) {
        double__tap[q] = -1;       
        q++;
    }   
    NO__RECOIL__Y       = get_pvar(SPVAR_8,-100,+100,+38)
    NO__RECOIL__X       = get_pvar(SPVAR_9,-100,+100,0);           
    aa__shake            = get_pvar(SPVAR_7,-50,+50,24);
 
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |M|A|I|N| |B|L|O|C|K| |S|T|A|R|T|S| |H|E|R|E| | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

main {
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |L|O|A|D| |M|O|D|E|S| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

  if(get_val(DOWN)) {//HOLD DOWN
    if (double_click(2)) { //DOUBLE TAP PS4_OPTIONS / XB1_MENU
        G__M = !G__M;
      if (G__M) combo_run (Rumb);
      if (!G__M) combo_run (RumbTwo);
    }
    set_val(2,0);
    }
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | |M|E|N|U| |A|D|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(get_val(ADS)){//hold ADS button
 
//--RESET EPROM TO DEFAULT VALUES
 
    if(get_val(VIEW_reset)&&get_ptime(VIEW_reset)>600){
        RESET_Defaults();
    }
//--RAPID FIRE ON SECONDARY
    if(event_press(UP)){//D-pad UP
        PrimaryWeapon=TRUE;
        RF_KS=FALSE;
        R2F_K2S=TRUE;
        Secondary=TRUE;
        if (Secondary) combo_run (RumbTwo);
        }
//--RAPID FIRE OFF
    if(event_press(DOWN)){//D-pad DOWN
        PrimaryWeapon=TRUE;
        RF_KS=FALSE;
        R2F_K2S=FALSE;
        Secondary=FALSE;   
        if (!R2F_K2S) combo_run (Rumb);
}
//--RAPID FIRE ON
    if(event_press(RIGHT)){//D-pad RIGHT
        PrimaryWeapon=TRUE;
        RF_KS=TRUE;       
        R2F_K2S=TRUE;
        Secondary=FALSE;   
        if (RF_KS) combo_run (RumbTwo);
}
//--AKIMBO
    if(event_press(LEFT)){//D-pad LEFT
        AKIMBO__AUTO_AIM = !AKIMBO__AUTO_AIM;
             if (AKIMBO__AUTO_AIM) combo_run (RumbTwo);
            if (!AKIMBO__AUTO_AIM) combo_run (Rumb);
            PrimaryWeapon=TRUE;
            Secondary=TRUE;           
}
    set_val(1,0);
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |T|O|G|G|L|E|S| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 if(get_val(DOWN) && get_val (ADS)){
     if (event_press (19)){//TAP A
         NO__RECOIL = !NO__RECOIL;
         if (NO__RECOIL) combo_run (RumbTwo);
         if (!NO__RECOIL) combo_run (Rumb);     
     }
 
     if (event_press (18)){//TAP B
         AIM__CORRECT = !AIM__CORRECT;
         if (AIM__CORRECT) combo_run (RumbTwo);
         if (!AIM__CORRECT) combo_run (Rumb);
     }
 
     if (event_press (17)){//TAP Y
         STICKY__AIM = !STICKY__AIM;
         if (STICKY__AIM) combo_run (RumbTwo);
         if (!STICKY__AIM) combo_run (Rumb);
    }
 
     if (event_press (20)){//TAP X
         reload__WW2 = !reload__WW2;
         if (reload__WW2) combo_run (RumbTwo);
         if (!reload__WW2) combo_run (Rumb);     
     }     
     if (event_press (FIRE)){//FIRE BTN
         AKIMBO__AUTO_AIM = !AKIMBO__AUTO_AIM;
         if (AKIMBO__AUTO_AIM) combo_run (RumbTwo);
        if (!AKIMBO__AUTO_AIM) combo_run (Rumb);
    }
    if (double_click(3)){//RB
        A__HEAL_BLACK_OUT = !A__HEAL_BLACK_OUT;   
        FIRE_AND_HEAL=FALSE;
        if (A__HEAL_BLACK_OUT)  combo_run (RumbTwo);
         if (!A__HEAL_BLACK_OUT) combo_run (Rumb);
    }
    if (double_click(4)){//RT
        AUTO__HEAL = !AUTO__HEAL;
        A__HEAL_BLACK_OUT=FALSE;
        FIRE_AND_HEAL=FALSE;
        if (AUTO__HEAL) combo_run (RumbTwo);
         if (!AUTO__HEAL) combo_run (Rumb);
     }   
   if (double_click(5)){//RS
           FIRE_AND_HEAL=!FIRE_AND_HEAL;
        AUTO__HEAL=FALSE;
        A__HEAL_BLACK_OUT=FALSE;   
        if (FIRE_AND_HEAL) combo_run (RumbTwo);
         if (!FIRE_AND_HEAL) combo_run (Rumb);
    }   
    set_val (FIRE,0);set_val (TACTICAL,0);set_val(19,0);set_val (18,0);set_val (17,0); set_val (20,0)
    }
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |S|L|I|D|E| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if(EASY__SLIDE_DROP){
if (event_release(PRONE) && get_ptime(PRONE)> Time__b__Prone){
        combo_run(DROP_SHOT);
    }
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|K|I|M|B|O| |/|A|U|T|O| |A|I|M| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 if(AKIMBO__AUTO_AIM) {   
      if(PrimaryWeapon && get_val(FIRE))
             set_val(ADS,100);         
       }                               
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|E|L|O|A|D| |T|I|M|E|S| |W|W|2| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (reload__WW2){
    KS_time= 2000;}
    else KS_time=0;
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |T|U|R|B|O| |B|T|N| |A|.|K|.| |H|A|I|R| |T|R|I|G|G|E|R|S| | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
turbo(FIRE);
turbo(ADS);
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|I|M| | |C|O|R|R|E|C|T|I|O|N|S| | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
if(AIM__CORRECT){
Aim__Correction (Use_sens);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|U|T|O| |H|E|A|L| |B|L|A|C|K| |O|U|T| | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (A__HEAL_BLACK_OUT){
    AUTO__HEAL=TRUE;
    A__H_time= 4000;}
    else A__H_time= 40;   
/*
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|U|T|O| |H|E|A|L| | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (event_release (FIRE)) {TimerA=TimelimitA;}
 if (TimerA>0)
     {
     TimerA=TimerA - get_rtime();
     if (TimerA<=6000 && event_press (RELOAD)){ combo_run (Heal);}
     }
if (FIRE_AND_HEAL){
 if (event_release (FIRE)) combo_run (Fire_and_Heal);
 }
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|N|T|I| |R|E|C|O|I|L| | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
 
 if (NO__RECOIL){
No__recoil(NO__RECOIL__X, NO__RECOIL__Y);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |M|O|D|E| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/
       
 P__M(G__M)
 /*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |R|U|N| | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (EASY__RUN){
    if (!easy_run_KS && get_val(LY) < -RUN__SENS && !get_val(ADS)) {
     combo_run (EASY_RUN);}
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |E|A|S|Y| |M|E|L|E|E| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

if (EASY__MELEE){
  if (get_val(SPRINT)) set_val(MELEE, 100);}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|A|P|I|D| |F|I|R|E| |&| |J|I|T|T|E|R| | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
//-- RF PRIMARY 
 
if (PrimaryWeapon && RF_KS && get_val(FIRE))combo_run (RAPID_FIRE);   
 
//- RF SECONDARY
 
 if(!PrimaryWeapon && R2F_K2S)   
  if(get_val(FIRE)) {
      combo_run (RAPID_FIRE);
}
 
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |R|E|S|E|T| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(event_release(RELOAD) && get_ptime(RELOAD)> 200 &&(Secondary)){ PrimaryWeapon = TRUE; combo_run (Rumb);} 
 
if (Secondary){
    if(event_release(SW_WEAPON)&& get_ptime(SW_WEAPON)< 200  && !get_val (14)){ 
      PrimaryWeapon = !PrimaryWeapon;
      if (!PrimaryWeapon) combo_run (RumbTwo);
  }
}
 /*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |C|A|N|C|E|L| |R|E|L|O|A|D| | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
 if (CNCL__RELOAD) {
     if(event_press(FIRE)  && b_reload){combo_run(CANCEL_RLD); }
     if(event_press(ADS)  && b_reload){combo_run(CANCEL_RLD);}
         if(event_release(RELOAD) && get_ptime(RELOAD)< 200){
          combo_run (STOP_SPRINT); combo_run(RELOAD_END); }
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |A|I|M| |A|S|S|I|S|T| | | | | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

 
if(STICKY__AIM){
    if(get_val(ADS)) combo_run(AA_XY);
      else combo_stop(AA_XY);
}
/*
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | | | |K|I|L|L| |S|W|I|T|C|H| |&| |S|U|P|E|R| |P|W| |S|W|I|T|C|H| | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

//switches are prepared to work normally even if Jitter mod is used by adding a little press time.
if(event_press (SUPER__POWER__SW) && !get_val (ADS) && get_ptime(SUPER__POWER__SW)< 15 && G__M) { combo_run(SPECIAL);}
if(event_press (KILL__STREAK__SW) &&  !get_val (ADS) && get_ptime(KILL__STREAK__SW)< 15 && G__M) { combo_run(KILL);
}
}
/*
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | | | | | | | | |C|O|M|B|O| |S|E|C|T|I|O|N| | | | | | | | | | | | | | | | | | | | | | |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+*/

combo AA_XY {
    set_val(10,xy_val(10,aa__shake));
    wait(aa_delay);
    set_val(9,xy_val(9,aa__shake));
    set_val(11,xy_val(11,aa__shake));
    wait(aa_delay);
    set_val(10,xy_val(10,aa__shake * -1));
    wait(aa_delay);
    set_val(9,xy_val(9,aa__shake * -1));
    set_val(11,xy_val(11,aa__shake * -1));
    wait(aa_delay);
}
combo Rumb{
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
     wait(150);
     reset_rumble();
}
combo RumbTwo {
    wait(300);
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
    wait (150);
    set_rumble(RUMBLE_B, 100);
    wait(150);
    set_rumble(RUMBLE_B, 0);
    wait(150);
    reset_rumble();
}
combo STOP_SPRINT {     
    easy_run_KS = TRUE
    wait(KS_time);
    easy_run_KS = FALSE;
}
combo Fire_and_Heal {     
    set_val(TACTICAL,100);
    wait(40);   
}
combo RAPID_FIRE {
    set_val(FIRE,100);
    wait(hold_time);
    set_val(FIRE,  0);
    wait(rest_time);
}
combo RELOAD_END {
    b_reload=TRUE;
    wait(RELOAD__TIME);
    b_reload=FALSE;
}
combo Heal {     
    wait (RELOAD__TIME);
    if (AUTO__HEAL)
    set_val(TACTICAL,100);
    wait(A__H_time);
}
combo CANCEL_RLD {
    set_val(SW_WEAPON, 100);
    wait(30);
    set_val(SW_WEAPON, 0);
    wait(20);
    set_val(SW_WEAPON, 100);
    wait(30);
    set_val(SW_WEAPON, 0);
    wait(20);
    b_reload=FALSE;
}
combo SPECIAL {
    set_val(LETHAL,100)
    set_val(TACTICAL,100);
    wait(100);
    wait(40);
} 
combo KILL {
    set_val (SW_WEAPON, 100);
    wait(400);
    set_val (SW_WEAPON,0);
    wait(40);
}
combo DROP_SHOT{
    set_val(PRONE,100);
    wait(700)
}
combo EASY_RUN {
    set_val(SPRINT,100);
    wait(30);   
    wait(100);
}
function P__M(program__mode) {
    if (program__mode) return;
        if (get_val(UP)) {
        NO__RECOIL__Y = Variable__Var(NO__RECOIL__Y, -100, 100, 3, 4);
        NO__RECOIL__X = Variable__Var(NO__RECOIL__X, -100, 100, 6, 7);
        aa__shake = Variable__Var(aa__shake, -50, 50, 1, 2);
        set_val (1,0); set_val (2,0); set_val (3,0); set_val (4,0); set_val (6,0); set_val (7,0);
 
        } 
        save_pvars();
}
function Variable__Var(var__val, min_val, max_val, btn_up, btn_down) {
    if(event_press(btn_up) && var__val < max_val) {
        var__val++;
        combo_run (Rumb);
    }       
    if(event_press(btn_down) && var__val > min_val) {
        var__val--;
        combo_run (Rumb);
    }
    return var__val;
}
function Aim__Correction (Use_sens){
 
  if(get_val(FIRE) && get_val(ADS)) {
    Use_sens = ADS_FIRE_SENS;
  }
  if(get_val(FIRE) && !get_val(ADS)) {
    Use_sens = HIP_SENS;
  }
  if(!get_val(FIRE) && !get_val(ADS)) {
    Use_sens = GEN_SENS;
  }
  if(!get_val(FIRE) && get_val(ADS)) {
    Use_sens = ADS_SENS;
  }
    sensitivity(9, midpoint ,Use_sens);
    sensitivity(10, midpoint ,Use_sens);
}
function RESET_Defaults () {
    combo_run (Rumb);   
    NO__RECOIL__Y       = +38;
    NO__RECOIL__X       = 0;
    aa__shake           = 24;
    save_pvars();
}
function turbo(btn) {
    if (!turbo__trigger || !get_val(btn)) return;
    set_val(btn, 100);
    }
function No__recoil(No__recoil__x, No__recoil__y) {
    if (get_val(FIRE)) {
    if (isqrt(pow(get_val(RX), 2) + pow(get_val(RY), 2)) <= abs(No__recoil__y)) {   
        if (abs(get_val(RY)) <= abs(No__recoil__y)) {
            recoil__x = (get_val(RX) + (No__recoil__x*(100-abs(get_val(RX))))/100);
            set_val(RX, recoil__x);           
            if (AIM__INVERTED)
                recoil__y = (get_val(RY) - (No__recoil__y*(100-abs(get_val(RY))))/100); // Y-axis invert
            else
                recoil__y = (get_val(RY) + (No__recoil__y*(100-abs(get_val(RY))))/100);
            if (recoil__y > No__recoil__y) recoil__y = No__recoil__y;
            set_val(RY, recoil__y);             
             }
         }
     }
 }
 function xy_val(f_axis,f_val) {
    if(abs(get_val(f_axis)) < release)
    return f_val;
    return get_val(f_axis);
}
function double_click(button) {       
    if (double__tap[button] >= 0) {                   
        double__tap[button] = double__tap[button] + get_rtime();
        if (double__tap[button] > 450)
            double__tap[button] = -1;                                                                                       
    }           
    if (event_release(button) && get_ptime(button) <= 200) {
        if (double__tap[button] < 0) {                   
            double__tap[button] = 0;                       
        } else {             
            double__tap[button] = -1;                       
            return 1;                                   
        }                                                     
    }                                                 
    return 0;
    }
function save_pvars() {
    set_pvar(SPVAR_8, NO__RECOIL__Y);
    set_pvar(SPVAR_9, NO__RECOIL__X);
    set_pvar(SPVAR_7, aa__shake);
    }

32 can you make this into a t2 script also?
User avatar
Antec800
First Sergeant
First Sergeant
 
Posts: 45
Joined: Tue Oct 30, 2018 3:34 am


Return to Titan One Device

Who is online

Users browsing this forum: No registered users and 108 guests