[MWR] RapidFire (With Toggle) + Hold Breath *(GoodOne)

The other V1.00 was with the wrong fire rate, changed it now.
Version1.01
Author010010
Publish DateTue, 7 Feb 2017 - 00:59
Last UpdateTue, 7 Feb 2017 - 00:59
Downloads608
RATE


2

0

Release Notes: *Changed to the right fire rate
Code: Select all
 
define FIRE_BUTTON = PS4_R2;
define ads_button = PS4_L2;
 
int toggle = TRUE;
 
main {
    if(event_press(PS4_R3)) {
        toggle = !toggle;
    }
    if(toggle) {
        if(get_val(FIRE_BUTTON)) {
            combo_run(Rapidfire);
        } else {
            combo_stop(Rapidfire);
        }
    }
    if(get_val(ads_button) && get_ptime(ads_button) > 140) combo_run(hold_breath);
}
 
combo Rapidfire {
    set_val(FIRE_BUTTON, 100);
    wait(30);
    set_val(FIRE_BUTTON, 0);
    wait(20);
    set_val(FIRE_BUTTON, 0);
}
 
combo hold_breath {
    set_val(PS4_L3, 100);
    wait(10);
    set_val(PS4_L3, 100);
}