tactical strobe light from bf4

Tactical strobe light for missing up other people shoot on you in face to face shoot out . This is a copy of (automated_turbo_button_press.gpc) by (CypherNova139). With RubberBand script by vkrouso, i disable RubberBand script.
Version1.00
AuthorNEB3002
Publish DateMon, 12 May 2014 - 00:02
Last UpdateMon, 12 May 2014 - 00:02
Downloads36
RATE


0

0

Release Notes: Don't how get rid of RubberBand script!
Code: Select all
// GPC Online Library
// automated_turbo_button_press.gpc
 
//This script will press a button (defined as ComboButton) over and over again in a infinite loop, which can be enabled and disabled at will.
//Use case: Use in Jetpack Joyride by equipping the "Beat the House" gadget combo, then start a game round, activate this combo script by pressing the StartButton and leave on for a few hours. Watch them coins fly in!
 
 
// Customizing: Choose what buttons to start or stop the automation, and which button to press.
 
define StartButton = PS4_R3;
define ComboButton = PS4_UP;
//Hold: How long to hold down the Combo button
define HoldTime = 50;
//Rest: How long to wait before pressing the Combo button again
define RestTime = 50;
 
// No need to change anything else
 
int led, currentled, run;
init {
//This led stuff shamelessly copied from RubberBand script by vkrouso
    led = 0;
    reset_leds();
    while(led<4){
        if(get_led(led)==1) currentled = led;
        led = led+1;
    }
}
 
main {
    if(run > 0) {
        combo_run(AutomatedCombo);
    } else {
        combo_stop(AutomatedCombo);
        reset_leds();
    }
 
    if(event_press(StartButton)) {
        if(run == 1) {
            run = 0;
        } else {
            run = 1;
        }
    }
}
 
combo AutomatedCombo {
    set_val(ComboButton, 1);
    set_led(currentled,0);
    wait(HoldTime);
    set_val(ComboButton, 0);
    set_led(currentled,0);
    wait(RestTime);
    set_val(ComboButton, 0);
}