Sniper Mode V2 For Gerard

sniper mode with R2 cancel shot with L2 aim with L1 rapidfire with R1
Version1
AuthorPremium308
Publish DateThu, 1 Jun 2017 - 21:36
Last UpdateThu, 1 Jun 2017 - 21:36
Downloads150
RATE


0

0

Code: Select all
 
define hairtriggers_L2  = 10;
define hairtriggers_R2  = 10;
define SCOREBOARD   =  1;
define MENU         =  2;
define FIRE         =  4;
define ADS          =  7;
define TACTICAL     =  6;
define LETHAL       =  3;
define UP           = 13;
define DOWN         = 14;
define LEFT         = 15;
define RIGHT        = 16;
define SPRINT       =  8;
define MELEE        =  5;
define SWITCH       = 17;
define RELOAD       = 20;
define JUMP         = 19;
define CROUCH       = 18;
define R_X           = XB1_RX;                             
define R_Y           = XB1_RY;                             
define L_X           = XB1_LX;                             
define L_Y           = XB1_LY;
 
define ON = 14;
 
define ANTI_RECOIL_FORCE         = 30;
 
define SniperHold    = 300// P-06 needs 100 // Locus needs 250 // SVG-100 needs 300
define SniperRelease =  20// P-06 needs 250 // Locus needs 10 // SVG-100 needs 20
 
 
 
 
int PrimaryFire;
int anti_recoil;
int ar_fire, ar_tmp;
int Primary = TRUE;
 
main {
    if(get_val(PS4_L1)) {
        set_val(PS4_L2, 100);
    }
    if(get_val(PS4_R1)) {
        set_val(PS4_R2, 100);
        if(get_val(PS4_R1)) {
            combo_run(Turbo_1);
        }
    }
 
         if (get_val(ADS) > hairtriggers_L2)
        set_val(ADS, 100);
        if (get_val(FIRE) > hairtriggers_R2)
        set_val(FIRE, 100);
        ar_fire = get_val(FIRE);
 
 
 
  if (get_val(ADS) && get_val(FIRE)) {
        combo_run(AntiRecoilADV);
    }
 
 
     if(get_val(FIRE)) {set_val(FIRE,0); set_val(ADS,100);
             combo_run(AutoSprint);}
     else if(event_release(FIRE) && get_ptime(FIRE) <= SniperHold) {
             combo_run(QuickScope);}
     else if(event_release(FIRE) && get_ptime(FIRE) >= SniperHold) {
             combo_stop(QuickScope);combo_run(QSH_fire);}
     if(get_val(ADS)) {combo_stop(QuickScope);
             combo_stop(QSH_fire);}
            }
 
combo Turbo_1 {
    set_val(PS4_R2, 100);
    wait(40);
    set_val(PS4_R2, 0);
    wait(30);
    set_val(PS4_R2, 0);
}
 
 
combo      AutoSprint        {
    set_val       (SPRINT,ON);
    wait                 (10);
    set_val       (SPRINT,ON);
}       
 
combo      QuickScope        {
    set_val         (ADS,100);
    wait         (300)// P-06 needs 10 // Locus needs 250 // SVG-100 needs 300
    set_val         (ADS,100);
    set_val        (FIRE,100);
    wait                 (50);
    set_val         (ADS,100);
    wait      (20)// P-06 needs 250 // Locus needs 10 // SVG-100 needs 20
}
combo       QSH_fire         {
    set_val         (ADS,100);
    set_val        (FIRE,100);
    wait                 (50);
    set_val         (ADS,100);
    wait      (20)// P-06 needs 250 // Locus needs 10 // SVG-100 needs 20
    }
 
combo     AntiRecoilADV      {
    if(ar_fire && get_val(FIRE)) {
        ar_tmp = get_val(10) + ANTI_RECOIL_FORCE;
        if(ar_tmp > 100) ar_tmp = 100;
        else if(ar_tmp < -100) ar_tmp = -100;
        set_val(10, ar_tmp);
    }
}