2k18 perfect shot release

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

Re: 2k18 perfect shot release

Postby italiano1990 » Wed Oct 04, 2017 6:24 pm

Ok Nice i Test it , so much thanks.
User avatar
italiano1990
Sergeant
Sergeant
 
Posts: 8
Joined: Fri Nov 06, 2015 6:44 pm

Re: 2k18 perfect shot release

Postby italiano1990 » Wed Oct 04, 2017 8:54 pm

J2Kbr wrote:Got it, alright, this is similar to another post I just replied, I changed the script posted there for what you described:

Code: Select all
int release_square;
 
main {
    if(get_val(PS4_SQUARE)) {
        if(get_rumble(RUMBLE_A) || get_rumble(RUMBLE_B)) {
            release_square = TRUE;
        }
        if(release_square) {
            set_val(PS4_SQUARE, 0);
        }
    } else {
        release_square = FALSE;
    }
}
 

The problem is fixed but if the controller rumble he shot a Little Bit later . I dont know how we can fix it.
User avatar
italiano1990
Sergeant
Sergeant
 
Posts: 8
Joined: Fri Nov 06, 2015 6:44 pm

Re: 2k18 perfect shot release

Postby y2k » Thu Oct 05, 2017 6:09 am

Maybe add a Adjustable Parameter for rumble
User avatar
y2k
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Thu Apr 21, 2016 4:21 pm

Re: 2k18 perfect shot release

Postby J2Kbr » Sun Oct 08, 2017 8:52 pm

The script release SQUARE as soon the rumble signal is detected. Unfortunately, there is no way to anticipate the rumble feedback.
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: 2k18 perfect shot release

Postby ABC » Wed Nov 01, 2017 2:43 pm

Did this script work?
User avatar
ABC
Private First Class
Private First Class
 
Posts: 3
Joined: Wed Nov 01, 2017 2:41 pm

Re: 2k18 perfect shot release

Postby ABC » Wed Nov 01, 2017 2:45 pm

Did this script work?
User avatar
ABC
Private First Class
Private First Class
 
Posts: 3
Joined: Wed Nov 01, 2017 2:41 pm

Re: 2k18 perfect shot release

Postby myfloppysac » Fri Sep 14, 2018 6:11 pm

Hi,

I cannot figure out how to get this into a script format. I created a new GPC file but it is throwing a bunch of errors? anyone able to compile this into a downloadable file?

Thanks.
User avatar
myfloppysac
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Tue Aug 14, 2018 7:25 pm

Re: 2k18 perfect shot release

Postby J2Kbr » Mon Sep 17, 2018 2:10 pm

myfloppysac wrote:Hi, I cannot figure out how to get this into a script format. I created a new GPC file but it is throwing a bunch of errors? anyone able to compile this into a downloadable file? Thanks.

For the Titan One all scripts posted in this topic are compiling without error. Are you trying to use with the Titan Two?
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Previous

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 48 guests