Where is the script ERROR? How do i FIX IT?
Posted: Fri Apr 12, 2019 8:15 pm
define RATE_OF_FIRE=20; //Range: 1 to 25 RPS (Round/s)
define SPOT=900; //auto-spot modifier
define SPOT_BUTTON=3; //XB1_RB - PS4_R1
define CROUCH_SPAM_SPEED = 93;
int rapid_onoff=TRUE;
int fire_button;
int scope_button;
int hold_time;
int rest_time;
int autospot=FALSE;
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);}
if(get_val(XB1_LT) && get_val(XB1_RT)) {
combo_run(CrouchSpam);
}
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 CrouchSpam {
set_val(XB1_B, 100);
wait(40);
wait(CROUCH_SPAM_SPEED) }
}
define SPOT=900; //auto-spot modifier
define SPOT_BUTTON=3; //XB1_RB - PS4_R1
define CROUCH_SPAM_SPEED = 93;
int rapid_onoff=TRUE;
int fire_button;
int scope_button;
int hold_time;
int rest_time;
int autospot=FALSE;
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);}
if(get_val(XB1_LT) && get_val(XB1_RT)) {
combo_run(CrouchSpam);
}
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 CrouchSpam {
set_val(XB1_B, 100);
wait(40);
wait(CROUCH_SPAM_SPEED) }
}