Project Cars Auto Clutch HEP Please

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

Re: Project Cars Auto Clutch HEP Please

Postby TVRacing7818 » Wed Sep 02, 2015 2:09 am

If it can make it shift faster it will help me move from 3 to number 1 in the world on Road America in GT# and Stockcar lol
User avatar
TVRacing7818
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Aug 29, 2015 9:18 pm

Re: Project Cars Auto Clutch HEP Please

Postby TVRacing7818 » Wed Sep 02, 2015 2:11 am

Oh BTW if anyone viewing plays PC add me and lets do some racing TVRacing7818. I will be on XB1 on Foza 6 too GFY RUBBIN is my name there but will change to TVRacing7818 on XB1
User avatar
TVRacing7818
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Aug 29, 2015 9:18 pm

Re: Project Cars Auto Clutch HEP Please

Postby Elvish » Wed Sep 02, 2015 3:15 am

So it previously took 3/10 of a second to shift, I cut it down to 1.5/10 of a second.
So what I did was create three variables in the beginning of the script.

Wait_To_Shift is the time in between holding down R1 and the shift button being pressed
Shift_Time is the time that the shift button is being pressed down
Wait_To_Release_Clutch is the time it takes to release the clutch(R1) after releasing the shift button

Feel free to modify these three values at your own free will to find out what the best time is for your game.

Code: Select all
int Wait_To_Shift = 50;
int Shift_Time = 50;
int Wait_To_Release_Clutch = 50;

main {
    if(event_press(PS4_CROSS)){
        combo_run(Shift_Down);
    }
    if(event_press(PS4_CIRCLE)){
        combo_run(Shift_Up);
    }
}

combo Shift_Up
{
    set_val(PS4_CIRCLE, 0);
    set_val(PS4_R1, 100);
    wait(Wait_To_Shift);
    set_val(PS4_CIRCLE, 100);
    wait(Shift_Time);
    set_val(PS4_CIRCLE, 0);
    wait(Wait_To_Release_Clutch);
    set_val(PS4_R1, 0);
}

combo Shift_Down
{
    set_val(PS4_CROSS, 0);
    set_val(PS4_R1, 100);
    wait(Wait_To_Shift);
    set_val(PS4_CROSS, 100);
    wait(Shift_Time);
    set_val(PS4_CROSS, 0);
    wait(Wait_To_Release_Clutch);
    set_val(PS4_R1, 0);
}
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Project Cars Auto Clutch HEP Please

Postby TVRacing7818 » Wed Sep 02, 2015 9:18 pm

Thanks man lol
User avatar
TVRacing7818
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Aug 29, 2015 9:18 pm

Re: Project Cars Auto Clutch HEP Please

Postby Elvish » Wed Sep 02, 2015 9:50 pm

No problem! Let us know if there is anything else you need.
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Project Cars Auto Clutch HEP Please

Postby TVRacing7818 » Wed Sep 02, 2015 10:09 pm

when forza 6 hits i may need some help with that game lol
User avatar
TVRacing7818
First Sergeant
First Sergeant
 
Posts: 54
Joined: Sat Aug 29, 2015 9:18 pm

Previous

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 52 guests