Dead Nation - Rapidbuttons & Auto Headshot (ps4)

Auto Fire = Hold R1 Auto Rush & Melee = Hold L2 Auto Melee = Hold R2 Auto Headshot = Hold R1 & L3 Reload = Square now also reloads. Add me on PSN: RoR_UK. Join: XpUp.net. Credit for these scripts go to ConsoleTuner & louisvign.
Version2.2
AuthorRoR
Publish DateSun, 13 Apr 2014 - 16:14
Last UpdateSun, 13 Apr 2014 - 16:14
Downloads247
RATE


2

0

Code: Select all
// GPC Online Library
// dead_nation.gpc
 
/* --------------------------------------------------------------
   DEAD NATION
 ---------------------------------------------------------------- */

 
define MIN_LVAL = 30;
define DELAY = 1025;
 
int rxVal = 0, ryVal = 0;
 
init {
    block_rumble();
}
 
main {
    if(abs(get_val(PS4_RX)) >= MIN_LVAL || abs(get_val(PS4_RY)) >= MIN_LVAL) {
        rxVal = get_val(PS4_RX);
        ryVal = get_val(PS4_RY);
    } else if(get_val(PS4_R1)) {
        set_val(PS4_RX, rxVal);
        set_val(PS4_RY, ryVal);
    }
 
    // Square reloads also
    if(get_val(PS4_SQUARE)) {
        set_val(PS4_R3, get_val(PS4_SQUARE));
    }
 
    /*
    /*  RAPID FIRE BUTTONS
    /* ------------------------------------------------- */

 
    // Rush
    if(get_val(PS4_L2)) {
        combo_run(R2);
        combo_run(L2);
    }
 
    //AutoHead
    if(get_val(PS4_R1) && get_val(PS4_L3)) {
        combo_run(head);
    }
 
    // Close Combat
    if(get_val(PS4_R2)) {
        combo_run(R2);
    }
 
    // Fire Weapon
    else if(get_val(PS4_R1)) {
        combo_run(R1);
    }
}
    combo L2 {
    set_val(PS4_L2, 100);
    wait(40);
    set_val(PS4_L2, 0);
    wait(20);
    set_val(PS4_L2, 0);
    }
 
    combo R2 {
    set_val(PS4_R2, 100);
    wait(40);
    set_val(PS4_R2, 0);
    wait(20);
    set_val(PS4_R2, 0);
}
 
    combo R1 {
    set_val(PS4_R1, 100);
    wait(40);
    set_val(PS4_R1, 0);
    wait(20);
    set_val(PS4_R1, 0);
    }
 
    combo head {
    set_val(PS4_R1, 100);
    wait(DELAY);
    set_val(PS4_R1, 0);
    wait(100);
    combo_restart(head);
    }