// GPC Online Library
// callofduty_advancedwarfare_simply_devastating.gpc
//Writen by: OPTIMIZED4: PLAYSTATION
// __ __ __ __ __ __
//| \ / \ | \| \ | \ | \
//| $$ / $$_______ \$$ \$$ ______ | $$____ _| $$_ ______ ____ ______ ______ ______ ______
//| $$/ $$| \ | \| \ / \ | $$ \ $$ \ | \ \ | \ | \ / \ / \
//| $$ $$ | $$$$$$$\| $$| $$| $$$$$$\| $$$$$$$\$$$$$$ | $$$$$$\$$$$\ \$$$$$$\ \$$$$$$\| $$$$$$\| $$$$$$\
//| $$$$$\ | $$ | $$| $$| $$| $$ | $$| $$ | $$| $$ __ | $$ | $$ | $$ / $$ / $$| $$ \$$| $$ $$
//| $$ \$$\| $$ | $$| $$| $$| $$__| $$| $$ | $$| $$| \| $$ | $$ | $$| $$$$$$$| $$$$$$$| $$ | $$$$$$$$
//| $$ \$$\ $$ | $$| $$| $$ \$$ $$| $$ | $$ \$$ $$| $$ | $$ | $$ \$$ $$ \$$ $$| $$ \$$ \
// \$$ \$$\$$ \$$ \$$ \$$ _\$$$$$$$ \$$ \$$ \$$$$ \$$ \$$ \$$ \$$$$$$$ \$$$$$$$ \$$ \$$$$$$$
// | \__| $$
// \$$ $$
// \$$$$$$
//
// Kniightmare speed rapid fire/no recoil/aim quick/ads aimed speed up/insta fire
define LX_AXIS =PS4_LX;
define LY_AXIS =PS4_LY;
define DODGEIT_BUTTON =PS4_L3;
define LOOK_DOWN_SIGHTS = PS4_L1; //R1 & L1 CAN BE CHANGED TO R2 AND L2 RIGHT HERE JUST CHANGE THE 1 TO A 2 AND BOOM GOOD TO GO
define BANG_BANG_BANG = PS4_R1;
define START_FIREING = 95; // The % At which it boosts your pressed R1 or Fireing Button. ~use a remap or swap~
define AIM_SPEED = 95; // The % at which it boosts your pressed L1 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 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). 19 IS FAST 20-21SUPERFAST 23JAMS ON SOME GUNS.
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;
int RapidFire_Is_On = INITIAL_STATE;
int DbleClick_L1 = 0;
int DbleClick_R1 = 0;
int hold_time;
int rest_time;
int anti_recoil;
int anti_recoil_left;
int anti_recoil_right;
init {
hold_time = 500 / RATE_OF_FIRE;
rest_time = hold_time - 20;
if(rest_time < 0) rest_time = 0;
}
main {
if(get_val(PS4_L1)){ //gets the value of L1 when pressed.
sensitivity(PS4_RX, NOT_USE, 100 + SCOPED_LOOK_AIM); //only whilst L1 is pressed makes you look around faster.
sensitivity(PS4_RY, NOT_USE, 100 + SCOPED_LOOK_AIM); //only whilst L1 is pressed makes you look around faster.
} //AKA faster aimming! =].
if(get_val(PS4_L1)){ //gets the value of L1 when pressed.
sensitivity(PS4_L1, 10, 100 + AIM_SPEED);} //makes L1 100%pressed even if button is only lightly pressed.
if(get_val(PS4_R1)){ //gets the value of R1 when pressed.
sensitivity(PS4_R1, 10, 100 + START_FIREING);} //makes R1 100%pressed even if button is only lightly pressed
// Led indicator for Rapid Fire On/Off.
set_led(LED_1, 1);
set_led(LED_4, 0);
// Double click R1 to turn on/off Rapid Fire.
if(DbleClick_R1 > 0) DbleClick_R1 = DbleClick_R1 - get_rtime();
if(event_press(BANG_BANG_BANG) && DbleClick_R1 <= 0) {
DbleClick_R1 = 300; }
else if(event_press(BANG_BANG_BANG) && DbleClick_R1 > 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(3) >1) {
combo_run(RapidFire);
} else if(combo_running(RapidFire)) {
combo_stop(RapidFire); }
// Holding LT triggers Automatic Breath Hold.
if(abs(get_val(LOOK_DOWN_SIGHTS)) >= 5) {
combo_run(AutoHoldBreath); }
}
combo AutoHoldBreath {
set_val(DODGEIT_BUTTON, 100);
wait(10);
set_val(DODGEIT_BUTTON, 100); }
combo RapidFire {
set_val(BANG_BANG_BANG, 100);
wait(hold_time);
set_val(BANG_BANG_BANG, 0);
wait(rest_time);
set_val(BANG_BANG_BANG, 0);
}
combo AntiRecoil {
if(get_val(BANG_BANG_BANG)) {
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);}
}