[MWR] RapidFire (With Toggle) + Hold Breath

This script haves a editted rapidfire wich works WITHOUT the perk (double tap) The rapidfire can be toggle On and Off by using the R3 (Knife button) For default controls. It comes with a 24/7 Active hold breath mod for those who also love playing a sniper. **Thanks To** J2Kbr and Bonefisher
Version1.00
Author010010
Publish DateMon, 6 Feb 2017 - 19:03
Last UpdateMon, 6 Feb 2017 - 19:03
Downloads303
RATE


1

1

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(40);
    set_val(FIRE_BUTTON, 0);
    wait(30);
    set_val(FIRE_BUTTON, 0);
}
 
combo hold_breath {
    set_val(PS4_L3, 100);
    wait(10);
    set_val(PS4_L3, 100);
}