Autospot + Rapidfire Battlefield 3 Combine

An easy script made by J2Kbr for autospot and rapidfire in the same script just tap select quickly to enable or disable it .
Version1.09
Authornelios
Publish DateSun, 8 Apr 2012 - 02:57
Last UpdateSun, 8 Apr 2012 - 02:57
Downloads481
RATE


1

0

Code: Select all
    /* *
    *  RAPID FIRE + AUTO SPOT
    * *************************************************************************** */

 
    define SPOT_BUTTON = XB360_BACK;
 
    define RAPIDFIRE_BUTTON = XB360_RT;
 
    define RATE_OF_FIRE = 15;   // Range: 1 to 25 RPS (Round/s)
                                // Values higher than 25 would be so fast that the
                                // game probably will not detect 100% of the events.
    //
    // No need to make changes in the code below.
    //
 
    int hold_time, rest_time;
    int autospot = FALSE;
 
    init {
        hold_time = 500 / RATE_OF_FIRE;
        rest_time = hold_time - 20;
        if(rest_time < 0) rest_time = 0;
    }
 
    main {
        if(get_val(RAPIDFIRE_BUTTON)) {
            combo_run(RapidFire);
        } else if(combo_running(RapidFire)) {
            combo_stop(RapidFire);
        }
 
        // Quickly press SPOTBUTTON to turn on/off "AutoSpot"
        // or hold down the SPOTBUTTON to Scoreboard
        if(event_release(SPOT_BUTTON) && get_ptime(SPOT_BUTTON) < 140) autospot = !autospot;
        if(autospot && !get_val(SPOT_BUTTON)) combo_run(AutoSpot);
        block(SPOT_BUTTON, 200);
    }
 
    combo RapidFire {
        set_val(RAPIDFIRE_BUTTON, 100);
        wait(hold_time);
        set_val(RAPIDFIRE_BUTTON, 0);
        wait(rest_time);
        set_val(RAPIDFIRE_BUTTON, 0);
    }
 
    combo AutoSpot {
        set_val(SPOT_BUTTON, 100);
        wait(40);
        set_val(SPOT_BUTTON, 0);
        wait(960);
    }