int rapid_onoff=TRUE;
int fire_button;
int scope_button;
int hold_time;
int rest_time;
int autospot=FALSE;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
init {
if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;}
else { // Natural Trigger & Bumper
fire_button = 4;
scope_button = 7;}
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time=0;
}
main {
set_led(LED_1, 1);
set_led(LED_3, 0);
set_led(LED_4, 0);
if(get_val(XB1_VIEW) && event_press(XB1_MENU)) {
rapid_onoff = !rapid_onoff;
}
if(rapid_onoff) {
set_led(LED_1, 0);
set_led(LED_4, 1);
}
if(get_val(fire_button) && rapid_onoff) {combo_run(RAPID_FIRE);}
else if(combo_running(RAPID_FIRE)) {combo_stop(RAPID_FIRE);}
if(get_val(12) < -20) {set_val(8, 100)}
else if(get_val(12) > -20) { set_val(8, 0)}
// AUTOSPOT tap (XB360 BACK -PS3_SELECT ) to turn on/off AutoSpot
if(event_release(3) && get_ptime(3) < 1000) {autospot = !autospot;set_val(1,0);}
if ((autospot && !get_val(SPOT_BUTTON)) && (SPOT > 0 )) combo_run(AutoSpot);
if(get_val(7) > 10) {combo_run(AutoBreath);}
if(get_val(7) < 10) {combo_stop(AutoBreath);}
if(!ONLY_WITH_SCOPE || get_val(scope_button)) {combo_run(AntiRecoil);}
}
combo RAPID_FIRE {
set_val(fire_button, 100);
wait(hold_time);
set_val(fire_button, 0);
wait(rest_time);
set_val(fire_button, 0);
}
combo AutoSpot {
set_led(LED_3, 0);
set_val(SPOT_BUTTON, 100);
wait(50);
set_led(LED_3, 1);
set_val(SPOT_BUTTON, 0);
wait(SPOT);
}
combo AutoBreath {
wait(200);
set_val(8, 100);
wait(4000);
}
combo AntiRecoil {
if(get_val(fire_button)) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_left = get_val(9) -ANTI_RECOIL_LEFT;
if(anti_recoil_left > 100) anti_recoil_left = 100;
set_val(9, anti_recoil_left);
anti_recoil_right = get_val(9) +ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(9, anti_recoil_right);}
}
maybe this will help bro