//
// Sat Dec 23 2017 17:23:26
// Script generated by Visual to GPC
//----------------------------------------
define ONLY_WITH_SCOPE = TRUE;// Use Anti-recoil only when scoping
define ANTI_RECOIL = 80; //change "0" to compensate vertical recoil (0 - 100)
define ANTI_RECOIL_LEFT = 80; //change this value to compensate to the left (0 - 100)
define ANTI_RECOIL_RIGHT = 80; //change this value to compensate to the right (0 - 100)
define INSTA_FIRE = 95; // The % at which it boosts the SHOOT button when pressed - i.e. 95% means when pressed 5%
define INSTA_AIM = 95; // The % at which it boosts the ADS button when pressed - i.e. 95% means when pressed 5%
define ADS_SPEED = 20; // The % at which it boosts your aiming speed when using ADS
// VARIABLES
// ---------------------------------------------------------
int AutoSpotOnOff;
int toggle;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
/* ----------------------------------------------------------------------------------------------------------------------
* MAIN
**/
main {
// If RT is pressed, jitter will run//
if(get_val(XB1_RT)){combo_run(jitter);
}
if(get_val(XB1_RT)) {
combo_run(rapidfire);
}
if(get_val(XB1_LT)) {
if(get_val(XB1_LT)) {
combo_run(quickscope);
} else {
combo_run(quickscope2);
}
}
if (get_val(XB1_RIGHT)) toggle = TRUE; // Turn it on when you press DPAD LEFT
if (get_val(XB1_A)) toggle = FALSE; // turn it off when you press DPAD LEFT
if (toggle) {
}else combo_stop(jitter);
if (toggle) {
}else combo_stop(rapidfire);
if (toggle) {
}else combo_stop(quickscope);
if (toggle) {
}else combo_stop(quickscope2);
}
combo RumbleNotifier {
set_rumble(RUMBLE_A, 100);
wait (300);
reset_rumble();
}
combo jitter{
set_val(XB1_RT, 40);
wait (20);
set_val(XB1_RT, 40);
wait (20);
set_val(XB1_RT, 40);
wait (20);
set_val(XB1_RT, 40);
wait (20);
set_val(XB1_RT, 40);
wait (20);
set_val(XB1_RT, 0);
}
combo rapidfire {
set_val(XB1_RT, 40);
wait(40);
set_val(XB1_RT, 0);
}
combo FastReloadIMR {
set_val(XB1_X, 100);
wait(40);
set_val(XB1_X, 0);
wait(500); // << Adjustable timing
set_val(XB1_X, 0);
set_val(XB1_LX, 0);
set_val(XB1_LY, -100);
wait(40);
}
combo quickscope {
set_val(XB1_LT, 100);
wait(10);
set_val(XB1_LT, 0);
}
combo quickscope2 {
set_val(XB1_LT, 100);
wait(20);
set_val(XB1_LT, 0);
wait(10);
set_val(XB1_LT, 0);
}
combo AntiRecoil { // This combo must be the last one
// Look Inversion Enabled
anti_recoil = get_val(XB1_RY) - ANTI_RECOIL; // SUBTRACT anti_recoil when LOOK INVERSION is ENABLED
if(anti_recoil > 100) anti_recoil = 100;
set_val(XB1_RY, anti_recoil);
anti_recoil_left = get_val(XB1_RX) - ANTI_RECOIL_LEFT;
if(anti_recoil_left < -100) anti_recoil_left = -100;
set_val(XB1_RX, anti_recoil_left);
anti_recoil_right = get_val(XB1_RX) + ANTI_RECOIL_RIGHT;
if(anti_recoil_right > 100) anti_recoil_right = 100;
set_val(XB1_RX, anti_recoil_right);
if(get_val(XB1_RT)) {
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);
}
}