jitter

xyy jitter. black ops 2
Version1.00
AuthorLGDZ x Moddurs
Publish DateThu, 29 May 2014 - 18:04
Last UpdateThu, 29 May 2014 - 18:04
Downloads200
RATE


0

0

Code: Select all
// GPC Online Library
// black_ops_2_gun_s12_jitter.gpc
 
/* *
*  Black_Ops_2, Gun:S12, Mode: Jitter(X,Y) Credit: GLaDOS
* *************************************************************************** */

 
define RT = XB360_RT;
define XBUTTON = XB360_X;
define YBUTTON = XB360_Y;
 
define RATE_OF_FIRE = 20;
 
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(XBUTTON, 100);
    set_val(YBUTTON, 100);
    set_val(YBUTTON, 100);
    wait(hold_time);
    set_val(XBUTTON, 0);
    set_val(YBUTTON, 0);
    set_val(YBUTTON, 0);
    wait(rest_time);
    set_val(XBUTTON, 0);
    set_val(YBUTTON, 0);
    set_val(YBUTTON, 0);
}