Help with BO4 Sniper Quickscope numbers for this script

GPC1 script programming for Titan One. Code examples, questions, requests.

Help with BO4 Sniper Quickscope numbers for this script

Postby Premium308 » Fri Nov 23, 2018 4:03 am

so this script i used in BO3 and it worked perfect and the original creator put all 3 snipers HOLD/RELEASE times down for you to edit depending on what sniper is being used. I was wondering if anyone knows what values are needed or has their own values that work for the snipers in BO4 that they could share???

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 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
 
define ON = 14;
 
 
int PrimaryFire;
int anti_recoil;
int ar_fire, ar_tmp;
int Primary = TRUE;
 
main {
  // Set hair triggers
     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(PS4_L2)) >= 95) {
        set_val(PS4_L3, 100);
    }
     if(get_val(FIRE)) {set_val(FIRE,0); set_val(ADS,100);
             }
     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      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);
    }
}
 
 
 
User avatar
Premium308
Sergeant First Class
Sergeant First Class
 
Posts: 22
Joined: Thu Aug 25, 2016 6:08 am

Re: Help with BO4 Sniper Quickscope numbers for this script

Postby Stalemate 86 » Fri Mar 08, 2019 3:12 am

Bump
User avatar
Stalemate 86
Private First Class
Private First Class
 
Posts: 3
Joined: Thu Mar 07, 2019 3:24 am

Re: Help with BO4 Sniper Quickscope numbers for this script

Postby Premium308 » Fri Mar 08, 2019 4:07 am

Now why didn’t I think of that?!....“Bump”.... It’s so simple and fits perfectly to my question above, lmao......so could you explain it in layman’s terms
User avatar
Premium308
Sergeant First Class
Sergeant First Class
 
Posts: 22
Joined: Thu Aug 25, 2016 6:08 am

Re: Help with BO4 Sniper Quickscope numbers for this script

Postby UK_Wildcats » Fri Mar 08, 2019 4:49 am

Look online for the ADS time for the sniper rifle of your choice and use that value
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Help with BO4 Sniper Quickscope numbers for this script

Postby Premium308 » Fri Mar 08, 2019 5:53 am

Where would I find that info? Or are you saying Scour the forums to find ADS times if someone happened to list them?
User avatar
Premium308
Sergeant First Class
Sergeant First Class
 
Posts: 22
Joined: Thu Aug 25, 2016 6:08 am

Re: Help with BO4 Sniper Quickscope numbers for this script

Postby UK_Wildcats » Fri Mar 08, 2019 3:49 pm

Premium308 wrote:Where would I find that info? Or are you saying Scour the forums to find ADS times if someone happened to list them?


In less than 1 minute searching for BO4 weapon stats.

https://freeallblog.com/en/2018/08/05/bo4-all-weapons/
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Help with BO4 Sniper Quickscope numbers for this script

Postby Premium308 » Fri Mar 08, 2019 8:13 pm

awesome, thank you
User avatar
Premium308
Sergeant First Class
Sergeant First Class
 
Posts: 22
Joined: Thu Aug 25, 2016 6:08 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 83 guests