Adjustable Jitter

The numerical value is how many times a second the y button is pressed. Adjust according to the game/weapon and also your liking. I have it as 33, because I believe this is the fastest for MW2 Striker
Version1.00
AuthorGLaDOS
Publish DateSun, 12 Jan 2014 - 21:25
Last UpdateSun, 12 Jan 2014 - 21:25
Downloads330
RATE


3

1

Code: Select all
define RT = XB360_RT;
define YBUTTON = XB360_Y;
 
define RATE_OF_FIRE = 33;   // This is the rate that the Y button is pressed.  It is x ammount of times per second
 
// No need to change anything else
 
int hold_time, rest_time;
 
init {
    hold_time = 500 / RATE_OF_FIRE;
    rest_time = hold_time - 20;
    if(rest_time < 0) rest_time = 0;
}
 
main {
    if(get_val(RT)) {
        combo_run(Jitter);
    } else if(combo_running(Jitter)) {
        combo_stop(Jitter);
    }
}
 
combo Jitter {
    set_val(YBUTTON, 100);
    wait(hold_time);
    set_val(YBUTTON, 0);
    wait(rest_time);
    set_val(YBUTTON, 0);
}