Warframe auto slide + adjustable rapid fire + adjustable held fire

Read the "Read Me" in the script.
Version2.00
Authorlouisvign
Publish DateMon, 26 May 2014 - 23:46
Last UpdateSun, 8 Jun 2014 - 10:16
Downloads384
RATE


0

0

Release Notes: Added adjustable rapid fire + held fire.
Code: Select all
////Loui2 @ Controller Max Forums
 
/////////READ ME////////////
//Rapid fire: Options + DPAD UP (Repeat to disable)  [Light Blue LED]
//Hold fire: Options + DPAD DOWN (Repeat to disable) [Purple LED]
//Auto Slide: Options + L1 (Repeat to disable)        [One flash of white light to confirm on/off]
//Disable Mods/Reset Rates: Options + Share
//
// Adjust rates: Options + DPAD LEFT/RIGHT (Rapid: DPAD to the RIGHT = FASTER; Hold: DPAD to the RIGHT = LONGER)
 
///NOTE: 1. When doing things like OPTIONS + DPAD UP, hold the OPTIONS button first.
//          2. You have to aim (Hold R2)
////////////////////////////////////////////////////////////////////////////////////////////////////
 
 
 
 
/////     Settings      /////////
//Change for your preference////
define speed = 20;          ///// Raise higher for faster/less precise adjustment; Lower for slower/more precise adjustment.
define holdfiredelay = 500//// How long should the hold fire combo wait at the end of firing?
//////////////////////////////////////////////
 
///Variables. These change but the initial value is 500
int holdrate = 500;
int rapidrate = 500;
 
//// Indicates if these variables are true or false at the start of script.
int hold = FALSE;
int rapid = FALSE;
int script = FALSE;
 
main {
        ///Enabler/Disabler//   This ENABLES or DISABLES the mods
 
                    ///Hold Fire
if(get_val(PS4_OPTIONS) > 99 && event_press(PS4_DOWN)){
    hold = !hold;
    rapid = FALSE;
    reset_leds();
    }
                    // Rapid Fire
if(get_val(PS4_OPTIONS) > 99 && event_press(PS4_UP)){
    rapid = !rapid;
    hold = FALSE;
    reset_leds();
    }
 
    if(get_val(PS4_OPTIONS) > 99 && event_press(PS4_L1)){
        script = !script;
        combo_run(adjust);
 
    }
 
                    // Disable all + reset rates
if(get_val(PS4_OPTIONS) > 99 && event_press(PS4_SHARE)){
    hold=FALSE;
    rapid=FALSE;
    script=FALSE;
    holdrate=500;
    rapidrate=500;
    reset_leds();
 
}
 
        //Triggers///   This is what causes the combos to trigger when the a mod is on
 
                //rapid fire///  If the variable rapid is true and etc then combo run rapidfire
if (rapid && get_val(PS4_L2)>80 && get_val(PS4_R2)>80) {
        combo_run(rapidfire);
    }
 //hold fire///  If the variable hold is true and etc then combo run holdfire
if (hold && get_val(PS4_L2)>80 && get_val(PS4_R2)>80) {
        combo_run(holdfire);
    }
    if( script && get_val(PS4_L1) > 99) {
        combo_run(slide)
    }
 
            ///Rate adjuster////
                    //Hold Fire
if(hold && get_val(PS4_OPTIONS) >99 && event_press(PS4_RIGHT)){
    combo_run(adjust); // gives the flashing light when pressed
    holdrate = holdrate + speed;
    }
 
if(hold && get_val(PS4_OPTIONS) >99 && event_press(PS4_LEFT)){
    combo_run(adjust); // gives the flashing light when pressed
    holdrate = holdrate - speed;
    }
                    //rapid fire
 
if(rapid && get_val(PS4_OPTIONS) >99 && event_press(PS4_LEFT)){
    combo_run(adjust);// gives the flashing light when pressed
    rapidrate = rapidrate + speed;
    }
 
if(rapid && get_val(PS4_OPTIONS) >99 && event_press(PS4_RIGHT)){
    combo_run(adjust);// gives the flashing light when pressed
    rapidrate = rapidrate - speed;
    }
 
 
        //LED Status//  /// What shows what mod is on
if(hold) {
    set_led(LED_4,1)
    }
if(rapid) {
    set_led(LED_3,1)
}
}
    ////////combos//////////
combo rapidfire {
    set_val(PS4_R2,100)
    wait(50);
    set_val(PS4_R2,0)
    wait(rapidrate);
    }
combo holdfire {
    set_val(PS4_R2,100)
    wait(holdrate);
    set_val(PS4_R2,0)
    wait(holdfiredelay);
    }
 
 
///LED adjust///
combo adjust {
    reset_leds();
    wait(20);
    set_led(LED_1, 2);
    set_led(LED_2, 1);
    set_led(LED_3, 2);
    set_led(LED_4, 3);
    wait(100);
    reset_leds();
    }
 
combo slide {
    set_val(PS4_L1, 100);
    wait(700);
    set_val(PS4_L1, 0);
    wait(320);
}