Multi-Platform Complete Anti-Recoil w/ Auto Spot

Based on the famous "Generic Anti-Recoil" script, to which I added the ability to adjust the horizontal anti-recoil in both directions for perfectionists gamers. As regards the horizontal anti-recoil you must adjust ONLY the side that drives more. This "indexes" version, can be used with all XBOX and PS controllers and consoles. Auto Spot was requested by a user.
Version2.1
AuthorValant
Publish DateThu, 14 Jul 2016 - 03:09
Last UpdateThu, 14 Jul 2016 - 03:09
Downloads655
RATE


0

0

Release Notes: Since LEX LOST's account was deleted/banned, I decided to share with you guys the scripts he made that were lost.
Code: Select all
/* *  
    GENERIC ANTI-RECOIL VERTICAL + HORIZONTAL (LEFT + RIGHT)
    Version:     2.0
    Author:      LEX LOST
    Republisher: Valant
    Platform:    MULTI
    Controller:  MULTI - Optimized for MOUSE & KEYBOARD
    GAME:        All FPS titles
 
    ************************************************************/

    define SPOT_BUTTON     = XB1_RB;
    define TOGGLE_ADS      = XB1_LT;
    define ONLY_WITH_SCOPE = TRUE;// if TRUE Antirecoil only when scoping
    define ANTI_RECOIL = 0;       // change this value to compensate vertical recoil (0 - 100)
    define ANTI_RECOIL_LEFT = 0// change this value to compensate to the left (0 - 100)
    define ANTI_RECOIL_RIGHT = 0; // change this value to compensate to the right (0 - 100)
 
    //  VARIABLES
    // ---------------------------------------------------------
    int fire_button, scope_button;
    int anti_recoil;
    int anti_recoil_left;
    int anti_recoil_right;
 
    //  INITIALIZATION
    // ---------------------------------------------------------
    init {
        if(get_console() == PIO_PS3) { // PS3 Trigger & Bumper
            fire_button = 3;
            scope_button = 6;
        } else {                       // Natural Trigger & Bumper
            fire_button = 4;
            scope_button = 7;
        }
    }
    //  MAIN PROCEDURE
    // ---------------------------------------------------------
    main {
        if(!ONLY_WITH_SCOPE || get_val(scope_button)) {
            combo_run(AntiRecoil);
        if (get_val(10) <-80) combo_stop (AntiRecoil);
        }
        if ((get_val(9) <-80) || (get_val(9) > 80)) {
        combo_stop (AntiRecoil);
        }
        if(get_val(TOGGLE_ADS)) combo_run(AutoSpot);
}
    //  COMBOS
    // ---------------------------------------------------------
combo AntiRecoil { // This combo must be the last one
    anti_recoil = get_val(10) + ANTI_RECOIL;
    if(anti_recoil > 100) anti_recoil = 100;set_val(10, anti_recoil);
    anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
    if(anti_recoil_left > 100) anti_recoil_left = 100;set_val(9, anti_recoil_left);
    anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
    if(anti_recoil_right > 100) anti_recoil_right = 100;set_val(9, anti_recoil_right);
    }
 
combo AutoSpot {
    set_val(SPOT_BUTTON, 100);
    wait(40); wait(980);
}