SMR rapid fire. change it to 14 sps

rapid fire on RT for SMR on Black ops 2
Version1.00
AuthorLGDZ x Moddurs
Publish DateFri, 30 May 2014 - 21:01
Last UpdateFri, 30 May 2014 - 21:01
Downloads242
RATE


0

0

Code: Select all
//  SIMPLE RAPID FIRE
 
 
define RAPIDFIRE_BUTTON = XB360_RT;
 
define RATE_OF_FIRE = 13.5;   // Range: 1 to 25 RPS (Round/s)
 
// No need to make changes in the code below.
 
 
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(RAPIDFIRE_BUTTON)) {
        combo_run(RapidFire);
    } else if(combo_running(RapidFire)) {
        combo_stop(RapidFire); }
}
 
combo RapidFire {
    set_val(RAPIDFIRE_BUTTON, 100);
    wait(hold_time);
    set_val(RAPIDFIRE_BUTTON, 0);
    wait(rest_time);
    set_val(RAPIDFIRE_BUTTON, 0);
}