THE DIVISION XBOX AND PLAYSTATION

LMG +LMG SHWITCHABLE ON SCRIPT TO TRUE TO FALSE ......
Version1.8.1 TO 1.8.3
Authorjokerlatino
Publish DateSun, 6 May 2018 - 14:05
Last UpdateSun, 6 May 2018 - 14:05
Downloads159
RATE


1

1

Release Notes: RECOIL 100% B.LEJANDRO AND REST OF LMG MULTY COMBO
Code: Select all
// include 
 
//    COLOR INDICATION:
//    GREEN = Primary weapon
//    RED = Secondary weapon
 
 
//    /  /  /   _ _ _ ____ ____ _  _ _ _  _ ____      /  /  /
//   /  /  /    | | | |__| |__/ |\ | | |\ | | __     /  /  /
//  .  .  .     |_|_| |  | |  \ | \| | | \| |__]    .  .  . 
//-----------------------------------------------------------
// It's up to you to change the TRUE / FALSE values in the "script settings" to set it for your way of playing.
 
// Script acts on the keys of your controller, not on the game.
// Script does not know what weapon you have in hand, you have to be careful that your weapon and the assigned color go together,
// otherwise there is the option "panic button" in the settings.
 
// Choose your primary and secondary weapons with TRUE / FALSE and go down set all the other options of the script.
// For example, put all primary weapons on FALSE, so that you can play with any weapon normally,
// without any assistance on that weapon while your secondary weapon has the pop shot you want with your SASG.
 
// If you activate Strafe and you spam PS4 Square or Xbox X in the inventory or in the PS4 / Xbox menu,
// you may activate the Strafe combo in the game or in your menu!
 
// AntiRecoil has been adjusted with the In Game sensitivity options shown below.
// If you have not the same settings In Game, your weapon may shoot to the sky or to the ground.
// It will be necessary to adjust the recoils value.
 
// Exemple for primary weapon:
// In "main section", find "PRIMARY WEAPON", then find the part of the weapon you are using
// If you play WITH Striker mode, change the [type of weapon]_Recoil_[number] values inside Recoil WITH Striker mode
// If you play WITHOUT Striker mode, change the [type of weapon]_Recoil_[number] values inside Recoil WITHOUT Striker mode
// For MDR and Shotgun, change the ANTI_RECOIL value inside  Recoil WITH (or WITHOUT) Striker mode.
 
// If your weapon shoot to the ground, discrease values.
// If your weapon shoot to the sky, increase values.
 
// Now enjoy
 
 
//                                    In Game settings:
 
// 100% Camera Sensitivity
 
// 90% Aim Sensitivity
 
// 90% Scope Sensitivity
 
// 0% Analog Dead Zone Size
 
// 0% Stability (no stability on your gear and weapon mods)
 
// Press to sprint = OFF (recommended if AutoRun and Strafe are TRUE)
 
// Invert Y Axis = Always OFF
//                 If you play with inverted axis, go down in the settings of the script and set Axis_inverted = TRUE
//                 In game option "Invert Y axis" MUST BE OFF!
 
//______________________________________________________________________________________________________________________//
//___________________________________________________OPTIONS START______________________________________________________//
//______________________________________________________________________________________________________________________//
//  ____ _  _ ____ ____ ____ ____    _   _ ____ _  _ ____    ____ ___  ___ _ ____ _  _ ____
//  |    |__| |  | |  | [__  |___     \_/  |  | |  | |__/    |  | |__]  |  | |  | |\ | [__ 
//  |___ |  | |__| |__| ___] |___      |   |__| |__| |  \    |__| |     |  | |__| | \| ___]   
//----------------------------------------------------------------------------------------------------------------------//
//                                    PRIMARY WEAPON (or green light):
data(1,
  2,0,0,0, //1. Blue
  0,2,0,0, //2. Red
  0,0,2,0, //3. Lime/Green
  0,0,0,2, //4. Fuchsia/Pink
  2,0,2,0, //5. SkyBlue
  0,2,2,0, //6. Yellow
  2,2,2,2  //7. White
);
 
//        Choose your primary weapon, only one value can be TRUE! (If no values are TRUE, you can play with any weapon)
 
//    LMG
int MG5_onoff           = FALSE; // Use with 5% or 6% Rate of Fire more !
int BigAle_onoff        = FALSE; // Use with 5% or 6% Rate of Fire more !
int HungryM60_onoff     = TRUE// Use with 5% or 6% Rate of Fire more !
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    SECONDARY WEAPON (or red light):
 
//        Choose your secondary weapon, only one value can be TRUE! (If no values are TRUE, you can play with any weapon)
 
//    LMG
int MG5_2_onoff         = FALSE; // Use with 5% or 6% Rate of Fire more !
int BigAle_2_onoff      = TRUE// Use with 5% or 6% Rate of Fire more !
int HungryM60_2_onoff   = FALSE; // Use with 5% or 6% Rate of Fire more !
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    AutoRun setting:
//        Work better when in game option "Press to Sprint" is turned OFF
 
int AutoRun_onoff = TRUE; // TRUE = AutoTun ON  // FALSE = AutoRun OFF
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    Parkour setting:
 
//        Double tap PS4 Circle or Xbox B to activate, double tap again to desactivate
 
int Parkour_onoff = TRUE; // TRUE = Parkour ON  // FALSE = Parkour OFF
 
int timelimit     = 175; // Double tap speed (increase to slow double tap speed)
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    Strafe settings:
 
//        Double tap PS4 Square or Xbox X to Strafe, double tap again to stop Strafe
//        Work better when in game option "Press to Sprint" is turned OFF
 
int Strafe_onoff    = TRUE; // TRUE = Strafe ON // FALSE = Strafe OFF
 
int Tap_Speed       = 175; // Double tap speed (increase to slow double tap speed)
int straight_time   = 250; // Time to run straight
int side_time       = 750; // Time to run to the right/left
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    Hair Trigger setting:
 
int HairTrigger_onoff = TRUE// TRUE = HairTrigger ON // FALSE = HairTrigger
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    Swap Triggers setting:
 
int R1L1_onoff = FALSE// FALSE = shoot and aim with R2/L2 // TRUE = shoot and aim with R1/L1
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    Inverted Axis setting:
 
//        If you play with inverted axis, set TRUE, in game option "Invert Y axis" MUST BE OFF!
 
int Axis_inverted = FALSE// TRUE Right Y axis inverted
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    AutoMark/Mark Targets setting:
 
int AutoMark_onoff = FALSE// FALSE = AutoMark OFF // TRUE = AutoMark ON
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    Panic Button setting:
 
int PanicBTN_onoff = TRUE// Press D-Pad UP to only change device color
//                                Usefull if you have the wrong color with your current weapon
 
//----------------------------------------------------------------------------------------------------------------------//
//                                    Classified 6p Striker (30% stability) settings:
 
int Striker_onoff = FALSE// TRUE if you run 6 pieces Striker, else FALSE
 
 
//______________________________________________________________________________________________________________________//
//___________________________________________________OPTIONS END________________________________________________________//
//______________________________________________________________________________________________________________________//
 
define Switch_button = 17;
define FIRE_BTN      = 4;
define R_Stick       = 5;
define ADS_BTN       = 7;
define L_Stick       = 8;
define R_X           = 9;
define R_Y           = 10;
define L_X           = 11;
define L_Y           = 12;
define D_UP          = 13;
define D_DOWN        = 14;
define Parkour_BTN   = 18; // PS4 Circle / Xbox B
define Strafe_BTN    = 20; // PS4 Square / Xbox X
 
define Blue      = 1;
define Red       = 2;
define Green     = 3;
define Pink      = 4;
define SkyBlue   = 5;
define Yellow    = 6;
define White     = 7;
 
 
int ANTI_RECOIL;        // For AntiRecoil combo
int ANTI_RECOIL_LEFT;   // For AntiRecoil combo
int ANTI_RECOIL_RIGHT;  // For AntiRecoil combo
int AR_Release = 90;    // For AntiRecoil combo
int anti_recoil;        // For AntiRecoil combo
int anti_recoil_left;   // For AntiRecoil combo
int anti_recoil_right;  // For AntiRecoil combo
int Switch;             // For Switch weapon
int Col_ind;            // For device color
int Parkour;            // For Parkour
int DbleClick = 0;      // For Parkour
int Dble_Tap = 0;       // For Strafe
int Loop;               // For Strafe
//_______________________________________________________________________________________________________________________//
//  _  _ ____ _ _  _    ____ ___ ____ ____ ___
//  |\/| |__| | |\ |    [__   |  |__| |__/  | 
//  |  | |  | | | \|    ___]  |  |  | |  \  |
 
main { // main start
 
    if(event_press(Switch_button)) {Switch=!Switch;}
//_______________________________________________________________________________________________________________________//
 
//  ____ ___  ___ _ ____ _  _ ____
//  |  | |__]  |  | |  | |\ | [__ 
//  |__| |     |  | |__| | \| ___]
 
 
  //Swap Triggers
    if(R1L1_onoff) {
        swap(3, 4); swap(6, 7);
        }
 
  //Panic Button
    if(PanicBTN_onoff) {
        if(event_release(D_UP) && get_ptime(D_UP) > 55) {
            Switch=!Switch;
            }
                        }
 
  //AutoRun (Work better when in game option "Press to Sprint" is turned OFF)
  //Hold D pad Left and press  PS4 Circle or Xbox B to enable or disable AutoRun
    if(get_val(15) && event_press(18)) {
        AutoRun_onoff=!AutoRun_onoff;
        }
    if(AutoRun_onoff){
        if(!combo_running(Strafe_v2) && !get_val(ADS_BTN) && get_val(L_Y) < -90) {
                set_val(L_Stick, 100);
                }                     
                     }
 
  //Parkour (if Parkour_onoff is TRUE, double tap PS4 Circle or Xbox B to activate, double tap again to desactivate)
    if(Parkour_onoff){   
        if(DbleClick > 0) DbleClick = DbleClick - get_rtime();
            if(event_press(Parkour_BTN) && DbleClick <= 0) {
                DbleClick = timelimit;
                }
            else if(event_press(Parkour_BTN) && DbleClick > 0) {
            Parkour = !Parkour;
            }
            if(Parkour) {
                if(!combo_running(Strafe_v2) && !get_val(ADS_BTN) && get_val(L_Y) < -70) {
                    set_val(Parkour_BTN,100);
                    }
                        }
                      }
 
  //Strafe (if Strafe_onoff is TRUE, double tap PS4 square or Xbox X to activate, double tap again to desactivate)
    if(Strafe_onoff) {
        if(Dble_Tap > 0) Dble_Tap = Dble_Tap - get_rtime();
            if(event_press(Strafe_BTN) && Dble_Tap <= 0) {
                Dble_Tap = Tap_Speed;
                }
            else if(event_press(Strafe_BTN) && Dble_Tap > 0) {
            Loop = !Loop;
            }
        if(Loop) {
        combo_run(Strafe_v2);
        }
            else{combo_stop(Strafe_v2);}
                     }
 
  //Hair Trigger
    if(HairTrigger_onoff) {
        if(get_val(FIRE_BTN) > 0){
            set_val(FIRE_BTN,100);
            }
        if(get_val(ADS_BTN) > 0){
            set_val(ADS_BTN,100);
            }
                    }
 
  //Inverted Axis
    if(Axis_inverted) {
        set_val(R_Y, inv(get_val(R_Y)));
        }
 
  // AutoMark (Mark Targets)
    if(AutoMark_onoff) {
        if(get_val(ADS_BTN)) {
            combo_run(MarkTargets);
            }
                }
 
//_______________________________________________________________________________________________________________________//
 
    if(!Switch) {
// ___  ____ _ _  _ ____ ____ _   _    _ _ _ ____ ____ ___  ____ _  _
// |__] |__/ | |\/| |__| |__/  \_/     | | | |___ |__| |__] |  | |\ |
// |    |  \ | |  | |  | |  \   |      |_|_| |___ |  | |    |__| | \|    color green
 
//----------------------------------------------------- All LMG ---------------------------------------------------------//
 
    if(MG5_onoff || BigAle_onoff || HungryM60_onoff){ // Any LMG on
    if(get_val(FIRE_BTN)){
        combo_run(AntiRecoil);
        }
        else if(event_release(FIRE_BTN)) {
            combo_stop(AntiRecoil);
            }
} // Any LMG off
 
//------------------------------------------------------- MG5 part ------------------------------------------------------//
    if(MG5_onoff) { //MG5 TRUE start
 
    ANTI_RECOIL = 0// Do not modify this value
    ANTI_RECOIL_LEFT  = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
    ANTI_RECOIL_RIGHT = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
 
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) {  // Burst before antirecoil
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 30;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 22;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 400) {  // +250
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 42;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 29;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 900) { // +500
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 43;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 30;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    } // MG5 TRUE end
 
//------------------------------------------------------- BigAlejandro part ---------------------------------------------//
    if(BigAle_onoff) { //BigAlejandro TRUE start
 
    ANTI_RECOIL = 0// Do not modify this value
    ANTI_RECOIL_LEFT  = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
    ANTI_RECOIL_RIGHT = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
 
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) {  // Burst before antirecoil
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 33;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 25;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 400) {  // +250
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 48;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 33;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 900) { // +500
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 49;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 35;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    } // BigAlejandro TRUE end
 
//------------------------------------------------------- Hungry Hog / M60 part -----------------------------------------//
    if(HungryM60_onoff) { // Hungry Hog / M60 TRUE start
 
    ANTI_RECOIL = 0// Do not modify this value
    ANTI_RECOIL_LEFT  = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
    ANTI_RECOIL_RIGHT = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
 
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) {  // Burst before antirecoil
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 43;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 33;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1000) {  // +850
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 37;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 1000ms fireing
        ANTI_RECOIL = 29;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2250) { // +1250
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 24;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 2250ms fireing
        ANTI_RECOIL = 31;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    }// Hungry Hog / M60 TRUE start
 
}    //PRIMARY end
 
//_______________________________________________________________________________________________________________________//
 
    if(Switch) {
// ____ ____ ____ ____ _  _ ___  ____ ____ _   _    _ _ _ ____ ____ ___  ____ _  _
// [__  |___ |    |  | |\ | |  \ |__| |__/  \_/     | | | |___ |__| |__] |  | |\ |
// ___] |___ |___ |__| | \| |__/ |  | |  \   |      |_|_| |___ |  | |    |__| | \|    color red
 
//----------------------------------------------------- All LMG ---------------------------------------------------------//
 
    if(MG5_2_onoff || BigAle_2_onoff || HungryM60_2_onoff){ // Any LMG on
    if(get_val(FIRE_BTN)){
        combo_run(AntiRecoil);
        }
        else if(event_release(FIRE_BTN)) {
            combo_stop(AntiRecoil);
            }
} // Any LMG off
 
//------------------------------------------------------- MG5 part ------------------------------------------------------//
    if(MG5_2_onoff) { //MG5 TRUE start
 
    ANTI_RECOIL = 0// Do not modify this value
    ANTI_RECOIL_LEFT  = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
    ANTI_RECOIL_RIGHT = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
 
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) {  // Burst before antirecoil
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 30;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 22;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 400) {  // +250
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 42;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 29;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 900) { // +500
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 43;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 30;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    } // MG5 TRUE end
 
//------------------------------------------------------- BigAlejandro part ---------------------------------------------//
    if(BigAle_2_onoff) { //BigAlejandro TRUE start
 
    ANTI_RECOIL = 0// Do not modify this value
    ANTI_RECOIL_LEFT  = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
    ANTI_RECOIL_RIGHT = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
 
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) {  // Burst before antirecoil
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 33;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 25;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 400) {  // +250
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 48;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 33;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 900) { // +500
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 49;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 35;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    } // BigAlejandro TRUE end
 
//------------------------------------------------------- Hungry Hog / M60 part -----------------------------------------//
    if(HungryM60_2_onoff) { // Hungry Hog / M60 TRUE start
 
    ANTI_RECOIL = 0// Do not modify this value
    ANTI_RECOIL_LEFT  = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
    ANTI_RECOIL_RIGHT = 0;   // Change this value to compensate horizontal recoil        (0 - 100)
 
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 150) {  // Burst before antirecoil
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 43;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 150ms fireing
        ANTI_RECOIL = 33;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 1000) {  // +850
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 400ms fireing
        ANTI_RECOIL = 37;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 1000ms fireing
        ANTI_RECOIL = 29;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    if(get_val(FIRE_BTN) && get_ptime(FIRE_BTN) >= 2250) { // +1250
        if(!Striker_onoff){
  // Antirecoil WITHOUT Striker
        // Antirecoil after 900ms fireing
        ANTI_RECOIL = 24;   // Change this value to compensate vertical recoil (0 - 100)
        }
        if(Striker_onoff){
  // Antirecoil WITH Striker
        // Antirecoil after 2250ms fireing
        ANTI_RECOIL = 31;   // Change this value to compensate vertical recoil (0 - 100)
        }
    }
    }// Hungry Hog / M60 TRUE start
 
}    //SECONDARY end
 
//_______________________________________________________________________________________________________________________//
 
    if(abs(get_val(R_Y)) > AR_Release || abs(get_val(R_X)) > 100) {
        combo_stop(AntiRecoil);
        }
 
  // COLOR INDICATION
     if(!Switch) colourled(Green);
     else colourled(Red);
 
}    //main end 
//  _  _ ____ _ _  _    ____ _  _ ___ 
//  |\/| |__| | |\ |    |___ |\ | |  \
//  |  | |  | | | \|    |___ | \| |__/
//_______________________________________________________________________________________________________________________//
//  ____ ____ _  _ ___  ____    ____ ____ ____ ___ _ ____ _  _
//  |    |  | |\/| |__] |  |    [__  |___ |     |  | |  | |\ |
//  |___ |__| |  | |__] |__|    ___] |___ |___  |  | |__| | \|
//_______________________________________________________________________________________________________________________//
 
combo Strafe_v2 { // Run straight, right, straight, left
     set_val(L_Y, -100);
     set_val(L_Stick, 100);
     wait(straight_time);
     set_val(L_X, 100);
     set_val(L_Y, 10);
     wait(side_time);
     set_val(L_Y, -100);
     set_val(L_Stick, 100);
     wait(straight_time);
     set_val(L_X, -100);
     set_val(L_Y, 10);
     wait(side_time);
    }
 
combo MarkTargets {
     set_val(D_UP, 100);
     wait(50);
     set_val(D_UP, 0);
     wait(1000);
    }
 
//_______________________________________________________________________________________________________________________//
 
combo AntiRecoil {
     anti_recoil = get_val(R_Y) + ANTI_RECOIL;
     if(anti_recoil > 100) anti_recoil = 100;
     set_val(R_Y, anti_recoil);
     anti_recoil_left = get_val(R_X) - ANTI_RECOIL_LEFT;
     if(anti_recoil_left > 100) anti_recoil_left = 100;
     set_val(R_X, anti_recoil_left);
     anti_recoil_right = get_val(R_X) + ANTI_RECOIL_RIGHT;
     if(anti_recoil_right > 100) anti_recoil_right = 100;
     set_val(R_X, anti_recoil_right);
    }
 
// COLOR LED function
 
function colourled(Colour) {
    Col_ind=(Colour*4) - 3;
    set_led(LED_1,dbyte(Col_ind));
    set_led(LED_2,dbyte(Col_ind + 1));
    set_led(LED_3,dbyte(Col_ind + 2));
    set_led(LED_4,dbyte(Col_ind + 3));
   }
//end