/* *************************************************************************** */
/* BF3 - 360 Controller - Autospot - Autosprint - Default Control Layout */
/* *************************************************************************** */
define DROPSHOT_BUTTON = XB360_RS;
define SPOT_BUTTON = XB360_BACK;
define RECOIL_Y = 60 ; // Y RECOIL
define RECOIL_X = 15 ; // X RECOIL
int autospot = FALSE;
main {
set_led(LED_3, 0);
set_led(LED_4, 0);
if (get_val(XB360_LT) > 80){
sensitivity(XB360_RY, NOT_USE, 75);
sensitivity(XB360_RX, NOT_USE, 80);}
if (event_release(SPOT_BUTTON) && get_ptime(SPOT_BUTTON) < 140) //Click Spot Button to start Autospot
autospot = !autospot;
if (autospot && !get_val(SPOT_BUTTON))
combo_run(AutoSpot);block(SPOT_BUTTON, 200);
if (get_val(XB360_LY) < -99) {combo_run(AUTOSPRINT)}
if (event_press(XB360_RS) && (get_val(XB360_RT))){combo_run(DROPSHOT);} //Click RS While Shooting to go Prone
if ((get_val(XB360_RT)) && (get_val(XB360_LT) > 50)) {combo_run(KICK);}
if ((get_val(XB360_RX)> 25) ^^ (get_val(XB360_RX)< -25)) {combo_stop(KICK);}
if ((get_val(XB360_RY)> 25) ^^ (get_val(XB360_RY)< -25)) {combo_stop(KICK);}} //These Lines Allow Aim Correction
combo AUTOSPRINT {set_val(XB360_LS, 100);}
combo DROPSHOT {set_val(XB360_RS, 100);
wait(1200);} //Time To Go Prone
combo AutoSpot {set_led(LED_2, 1);
set_val(SPOT_BUTTON, 100);
wait(60);
set_led(LED_2, 0);
set_val(SPOT_BUTTON, 0);
wait(1000);} //Time Between Spots
combo KICK
{set_val(XB360_RY, RECOIL_Y);
set_val(XB360_RX, -RECOIL_X); //Change "-" to "+" For Right Kick if needed
wait(10);}