RapidFire Cycle

This script was for Gamer01. It cycles trhough rapidfire settings. You can add or remove numbers if you want. Read the comments for configuring this script. Please Enjoy. - Token
Version1.00
Authortoken
Publish DateSun, 27 Apr 2014 - 20:55
Last UpdateSun, 27 Apr 2014 - 20:55
Downloads182
RATE


1

0

Code: Select all
define NoNumber = 0;
data(10,12,15, NoNumber); // Cycles these numbers. Starts on the first number by default. Add more numbers if you want.
define SELECT1 = XB360_LB; // press LB and A to turn on rapidfire.
define START1 = XB360_A;
define ROF_NEXT = XB360_RIGHT; // This controls what button is use to cycle
int rapidfire = TRUE;
int rapid_onoff = FALSE; // Change this to TRUE if you want it on by default.
int RATE_OF_FIRE;
int Counter;
 
 
 
 
define RAPIDFIRE_BUTTON = XB360_RT; // Change this if you have to.
int hold_time, rest_time;
 
 
 
 
main {
 
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
 
 
if(event_press(ROF_NEXT)) {
Counter = Counter + 1;
RATE_OF_FIRE = dbyte(Counter);
}
 
if(dbyte(Counter) == NoNumber) Counter = 0;
 
 
 
 
if(get_val(SELECT1) && event_press(START1)) rapid_onoff = !rapid_onoff;
if(get_val(RAPIDFIRE_BUTTON) && rapid_onoff) {
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);
}