CoD: Advanced Warfare [Xbox 360]

Features: *Rapid Fire [Double Tap RT to Toggle On/Off] *Auto Aim - CAMPAIGN ONLY [ Double Tap LT to Toggle On/Off] *Auto Hold Breath [When Sniper Rifle Equipped]
Version1.00 BETA
AuthorValant
Publish DateSun, 9 Nov 2014 - 17:46
Last UpdateSun, 9 Nov 2014 - 17:46
Downloads156
RATE


1

0

Code: Select all
// GPC Online Library
// call_of_duty_advanced_warfare.gpc
 
/* =====================================================================================================================
 * Game:          Call Of Duty: Advanced Warfare
 * System:        Xbox 360
 * Controller:    Xbox 360
 * Game Settings: Should be normal
 * Website:       Consoletuner.com
**/

 
/* ---------------------------------------------------------------------------------------------------------------------
 *  DEFINES
**/

define AIM_BUTTON          = XB360_LT;
define SHOOT_BUTTON        = XB360_RT;
define DODGE_SPRINT_BUTTON = XB360_LS;
define INITIAL_STATE       = FALSE; // FALSE to start with Rapid Fire, Auto Aim & Dodge, TRUE otherwise.
 
define RATE_OF_FIRE        = 18;    // Range: 1 to 25 RPS (Round/s).
 
//
// No need to make changes in the code below.
/* ----------------------------------------------------------------------------------------------------------------------
*  VARIABLES
**/

int RapidFire_Is_On        = INITIAL_STATE;
int Auto_Aim               = INITIAL_STATE;
int Dodge                  = INITIAL_STATE;
 
int DbleClick_LT           = 0;
int DbleClick_RT           = 0;
int hold_time, rest_time;
 
/* ----------------------------------------------------------------------------------------------------------------------
*  INITIALIZATION
**/

init {
    hold_time = 500 / RATE_OF_FIRE;
    rest_time = hold_time - 20;
    if(rest_time < 0) rest_time = 0;
    }
 
/* ----------------------------------------------------------------------------------------------------------------------
 *  MAIN
**/

main {
    // Led indicator for Auto Aim On/Off.
    set_led(LED_1, 1);
    set_led(LED_3, 0);
 
    // Double click L2 to turn on/off Auto Aim (OPTIMIZED FOR COD GAMES CAMPAIGN MODE ONLY).
    if(DbleClick_LT > 0) DbleClick_LT = DbleClick_LT - get_rtime();
    if(event_press(AIM_BUTTON) && DbleClick_LT <= 0) {
        DbleClick_LT = 300; }
        else if(event_press(AIM_BUTTON) && DbleClick_LT > 0) {
        Auto_Aim = !Auto_Aim;
    }
    if(Auto_Aim) {
        set_led(LED_1, 0);
        set_led(LED_3, 1);
    }
    if(Auto_Aim && get_val(AIM_BUTTON) && get_ptime(AIM_BUTTON) > 420) {
        combo_run(AutoAim);
    } else if(combo_running(AutoAim)) {
        combo_stop(AutoAim); }
 
    // Holding LT triggers Automatic Breath Hold.
    if(abs(get_val(AIM_BUTTON)) >= 5) {
        combo_run(AutoHoldBreath); }
 
    // 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); }
 
    //Rumble & led indicator for battery power less than 20%.
    if(get_battery() < 2) { set_rumble(RUMBLE_B, 100); }
    if(get_battery() < 2) { set_led(LED_4, 2); }
    }
 
/* ----------------------------------------------------------------------------------------------------------------------
 *  COMBOS
**/

combo AutoAim {
    set_val(AIM_BUTTON, 100);
    wait(20);
    set_val(AIM_BUTTON, 0);
    wait(10);
    set_val(AIM_BUTTON, 0);
}
 
combo AutoHoldBreath {
    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);
}