// __ __ __ __ __ __
//| \ / \ | \| \ | \ | \
//| $$ / $$_______ \$$ \$$ ______ | $$____ _| $$_ ______ ____ ______ ______ ______ ______
//| $$/ $$| \ | \| \ / \ | $$ \ $$ \ | \ \ | \ | \ / \ / \
//| $$ $$ | $$$$$$$\| $$| $$| $$$$$$\| $$$$$$$\$$$$$$ | $$$$$$\$$$$\ \$$$$$$\ \$$$$$$\| $$$$$$\| $$$$$$\
//| $$$$$\ | $$ | $$| $$| $$| $$ | $$| $$ | $$| $$ __ | $$ | $$ | $$ / $$ / $$| $$ \$$| $$ $$
//| $$ \$$\| $$ | $$| $$| $$| $$__| $$| $$ | $$| $$| \| $$ | $$ | $$| $$$$$$$| $$$$$$$| $$ | $$$$$$$$
//| $$ \$$\ $$ | $$| $$| $$ \$$ $$| $$ | $$ \$$ $$| $$ | $$ | $$ \$$ $$ \$$ $$| $$ \$$ \
// \$$ \$$\$$ \$$ \$$ \$$ _\$$$$$$$ \$$ \$$ \$$$$ \$$ \$$ \$$ \$$$$$$$ \$$$$$$$ \$$ \$$$$$$$
// | \__| $$
// \$$ $$
// \$$$$$$
//
/* =====================================================================================================================
* Game: Call Of Duty: Advanced Warfare
* System: Xbox ONE
* Controller: Xbox ONE,
* Game Settings: SET TO NORMAL
* Website: Consoletuner.com / HTTP://WWW.YOUTUBE.COM/KNiiiGHTMARE
**/
/* ---------------------------------------------------------------------------------------------------------------------
* DEFINES
**/
define START_FIREING = 99; // The % at which it boosts your pressed RT or Fireing Button. ~use a remap or swap~
define AIM_SPEED = 99; // The % at which it boosts your pressed LT or Scope in Button. ~to change your~
define SCOPED_LOOK_AIM = 20; // The % at which it boosts your "looking around" whilst Aiming". ~firebutton & aimbutton~
define AIM_BUTTON = XB1_LT;
define SHOOT_BUTTON = XB1_RT;
define DODGE_SPRINT_BUTTON = XB1_LS;
define RELOAD_BUTTON = XB1_X;
define X_AXIS = XB1_LX;
define Y_AXIS = XB1_LY;
define INITIAL_STATE = FALSE; // FALSE to start with Rapid Fire, Auto Aim & Dodge, TRUE otherwise.
define RATE_OF_FIRE = 19; // Range: 1 to 25 RPS (Round/s).
define ANTI_RECOIL = 35; //change this value to compensate to the vertical recoil
define ANTI_RECOIL_LEFT = 3; //change this value to compensate to the left
define ANTI_RECOIL_RIGHT = 3;
//
// No need to make changes in the code below.
/* ----------------------------------------------------------------------------------------------------------------------
* VARIABLES
**/
int RapidFire_Is_On = INITIAL_STATE;
int DbleClick_LT = 0;
int DbleClick_RT = 0;
int hold_time, rest_time;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
/* ----------------------------------------------------------------------------------------------------------------------
* INITIALIZATION
**/
init {
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
}
main {
if(get_val(XB1_LT)){ //gets the value of LT when pressed.
sensitivity(PS3_RX, NOT_USE, 100 + SCOPED_LOOK_AIM); //only whilst LT is pressed makes you look around faster.
sensitivity(PS3_RY, NOT_USE, 100 + SCOPED_LOOK_AIM); //only whilst LT is pressed makes you look around faster.
} //AKA faster aimming! =].
if(get_val(XB1_LT)){ //gets the value of LT when pressed.
sensitivity(XB1_LT, 10, 100 + AIM_SPEED);} //makes LT 100%pressed even if button is only lightly pressed.
if(get_val(XB1_RT)){ //gets the value of RT when pressed.
sensitivity(XB1_RT, 10, 100 + START_FIREING);} //makes RT 100%pressed even if button is only lightly pressed.
// Holding LT triggers Automatic Breath Hold.
if(abs(get_val(AIM_BUTTON)) >= 5) {
combo_run(AutoHoldBreath); }
// Releasing RT triggers Automatic Reload.
if(event_release(SHOOT_BUTTON)) {
combo_run(AutoReload); }
// AutoSprint
if(get_val(Y_AXIS) < -95) { combo_run(AutoSprint); }
else if(get_val(Y_AXIS) > -95) { combo_stop(AutoSprint); }
// Led indicator for Rapid Fire On/Off.
set_led(LED_1, 1);
set_led(LED_4, 0);
// Double click RT to turn on/off Rapid Fire.
if(DbleClick_RT > 0) DbleClick_RT = DbleClick_RT - get_rtime();
if(event_press(SHOOT_BUTTON) && DbleClick_RT <= 0) {
DbleClick_RT = 300; }
else if(event_press(SHOOT_BUTTON) && DbleClick_RT > 0) {
RapidFire_Is_On = !RapidFire_Is_On;
}
if(RapidFire_Is_On) {
set_led(LED_1, 0);
set_led(LED_4, 1);
}
if(RapidFire_Is_On && get_val(SHOOT_BUTTON) >1) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire); }
}
combo AutoHoldBreath {
set_val(DODGE_SPRINT_BUTTON, 100);
wait(10);
set_val(DODGE_SPRINT_BUTTON, 100);
}
combo AutoReload {
set_val(RELOAD_BUTTON, 100);
wait(100);
set_val(RELOAD_BUTTON, 0);
}
combo AutoSprint {
set_val(DODGE_SPRINT_BUTTON, 100);
wait(10);
set_val(DODGE_SPRINT_BUTTON, 100);
}
combo RapidFire {
set_val(SHOOT_BUTTON, 100);
wait(hold_time);
set_val(SHOOT_BUTTON, 0);
wait(rest_time);
set_val(SHOOT_BUTTON, 0);
}
combo AntiRecoil {
if(get_val(SHOOT_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);}
}