Multi-Platform Complete Anti-Recoil

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.
Version2.1
AuthorValant
Publish DateTue, 12 Jul 2016 - 16:31
Last UpdateTue, 12 Jul 2016 - 16:31
Downloads549
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 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);
        }
    }
    //  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);
    }