Script for BO4 Gung Ho PS4 anyone?

GPC2 script programming for Titan Two. Code examples, questions, requests.

Script for BO4 Gung Ho PS4 anyone?

Postby squarezebra » Sun Dec 30, 2018 4:02 am

Hello...

I'm completely helpless with scripting, and having a newborn means learning how to just isn't feasible right now. I'd be eternally grateful if one of you kind souls could write me a script.

BO4 has a perked called Gung Ho which (along with reducing your sprint out time by 33%) removes your sprintout time almost completely if you ads to cancel sprint before shooting. I think the delay comes down to around 50ms (or lower) if Drift0r is to be believed. So, I'd like a script that goes to ADS then shoot on the fire button with a 50ms delay between the ads and firing. And if you could tag easy sprint on to that as well I'd be super stoked...

I'm using XIM4 on PS4

Thats everything...

thank you!
User avatar
squarezebra
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Jan 06, 2018 11:34 pm

Re: Script for BO4 Gung Ho PS4 anyone?

Postby J2Kbr » Sun Dec 30, 2018 12:50 pm

Please check if this script does what you want.
Code: Select all
main {
    if(get_val(BUTTON_5)) {
        if(event_active(BUTTON_5)) {
            combo_run(ADSShot);
        }
    } else if(get_val(STICK_2_Y) <= -70.0) {
        combo_run(EasySprint);
    }
}
 
combo ADSShot {
    set_val(BUTTON_8, 100.0);
    set_val(BUTTON_5, 0.0);
    wait(50);
    set_val(BUTTON_8, 100.0);
    set_val(BUTTON_5, 100.0);
    wait(50);
}
 
combo EasySprint {
    set_val(BUTTON_9, 100.0);
    wait(50); wait(50);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Script for BO4 Gung Ho PS4 anyone?

Postby squarezebra » Sun Dec 30, 2018 10:55 pm

Hey J2Kbr

Thanks for the help!

There is just one thing though. This script doesn't maintain ADS - it rapidly toggles ADS (which does get me firing faster - I'm gonna keep a copy of this for hipfire classes). Could you edit it to maintain ADS until releasing the shoot button?

Then, that would be absolutely perfect. Thank you
User avatar
squarezebra
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Jan 06, 2018 11:34 pm

Re: Script for BO4 Gung Ho PS4 anyone?

Postby J2Kbr » Mon Dec 31, 2018 12:05 pm

Updated! :)
Code: Select all
main {
    if(get_val(BUTTON_5)) {
        if(event_active(BUTTON_5)) {
            combo_run(ADSShot);
        }
        set_val(BUTTON_8, 100.0);
    } else if(get_val(STICK_2_Y) <= -70.0) {
        combo_run(EasySprint);
    }
}
 
combo ADSShot {
    set_val(BUTTON_5, 0.0);
    wait(50);
}
 
combo EasySprint {
    set_val(BUTTON_9, 100.0);
    wait(50); wait(50);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Script for BO4 Gung Ho PS4 anyone?

Postby squarezebra » Mon Dec 31, 2018 11:23 pm

Wonderful. Much appreciated thank you.
User avatar
squarezebra
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Jan 06, 2018 11:34 pm

Re: Script for BO4 Gung Ho PS4 anyone?

Postby bonefisher » Tue Jan 01, 2019 1:57 am

Code: Select all
 
main {
    if(get_val(BUTTON_5)) {
        if(event_active(BUTTON_5)) {
            combo_run(ADSShot);
        }
        set_val(BUTTON_8, 100.0);
    } else if(get_val(STICK_2_Y) <= -70.0) {
        combo_run(EasySprint);
    }
}
 
combo ADSShot {
      set_val(STICK_2_Y,0.0);
    set_val(BUTTON_5, 0.0);
    wait(50);
}
 
combo EasySprint {
    set_val(BUTTON_9, 100.0);
    wait(50); wait(50);
}
 

Here also kill stick for short period!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: Script for BO4 Gung Ho PS4 anyone?

Postby LyndonLauder » Thu Jan 10, 2019 9:18 pm

@J2Kbr @bonefisher

Would it be possible to get a script like this for xim apex that doesn't mess with the ADS sensitivity please? It slows it down a lot
User avatar
LyndonLauder
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Dec 12, 2018 4:40 pm

Re: Script for BO4 Gung Ho PS4 anyone?

Postby bonefisher » Thu Jan 10, 2019 11:15 pm

LyndonLauder wrote:@J2Kbr @bonefisher

Would it be possible to get a script like this for xim apex that doesn't mess with the ADS sensitivity please? It slows it down a lot

I was on a APEX using it! That is the game doing it where just putting on the brakes to get a quicker result instead of you flowing easy waiting for your gun to fire...
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: Script for BO4 Gung Ho PS4 anyone?

Postby agthomps » Mon Jan 28, 2019 8:35 pm

@bonefisher is it possible to add this to your FPS shooter bo4 so everyone can benefit ?
User avatar
agthomps
Staff Sergeant
Staff Sergeant
 
Posts: 15
Joined: Sun Sep 02, 2018 10:03 pm

Re: Script for BO4 Gung Ho PS4 anyone?

Postby SweatyPapi » Sat Mar 16, 2019 6:47 pm

How does this help sprint out? I don't get it
User avatar
SweatyPapi
Sergeant Major
Sergeant Major
 
Posts: 91
Joined: Fri Feb 08, 2019 12:52 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 164 guests