Project Cars Auto Clutch HEP Please

GPC script programming for Titan One device. Code examples, how to, questions, requests.

Moderators: The_Rabid_Taco, pablosscripts, bonefisher, Baby Cham, Elvish

Project Cars Auto Clutch HEP Please

Postby TVRacing7818 » Sat Aug 29, 2015 10:19 pm

Hello guys looking for someone who can create or help me create for this matter. I am VERY VERY new to still. I do alot of racing games but use the manual but want to see if i can get the clutch to be auto engaged when i shift up and down. Any help will be very much appreciated. Thanks Guys My PSN is TVRacing7818
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 » Sun Aug 30, 2015 1:16 am

Sounds reasonable. What button is used to engage the clutch and what buttons are used to shift up and down?
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Project Cars Auto Clutch HEP Please

Postby TVRacing7818 » Sun Aug 30, 2015 4:28 am

I use circle to shift up and x to shift down
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 » Sun Aug 30, 2015 4:31 am

The clutch has to be engaged before shifting, right? I need to know what button engages the clutch as well
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Re: Project Cars Auto Clutch HEP Please

Postby TVRacing7818 » Sun Aug 30, 2015 4:32 am

PS4 lol I hate being the new guy asking a bunch of questions but if you dont ask then you will never know
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 » Sun Aug 30, 2015 4:35 am

L1 for the clutch
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 » Sun Aug 30, 2015 4:41 am

Give this a shot:
Code: Select all

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(100);
    set_val(PS4_CIRCLE, 100);
    wait(100);
    set_val(PS4_CIRCLE, 0);
    wait(100);
    set_val(PS4_R1, 0);
}

combo Shift_Down
{
    set_val(PS4_CROSS, 0);
    set_val(PS4_R1, 100);
    wait(100);
    set_val(PS4_CROSS, 100);
    wait(100);
    set_val(PS4_CROSS, 0);
    wait(100);
    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 » Mon Aug 31, 2015 11:18 pm

thanks ma it woks perfect
!!!!!!!
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 perfecthuntr » Tue Sep 01, 2015 12:49 am

Nice job, @Elvish. Thanks for helping out!
ConsoleTuner Support Team
User avatar
perfecthuntr
Major
Major
 
Posts: 897
Joined: Wed Jan 14, 2015 8:35 am
Location: Tennessee

Re: Project Cars Auto Clutch HEP Please

Postby Elvish » Tue Sep 01, 2015 2:41 am

No worries! Would you like to fine tune this at all TVRacing7818? It works, but we can make it work more quickly I am sure.
User avatar
Elvish
Captain
Captain
 
Posts: 531
Joined: Tue Jun 09, 2015 4:57 am

Next

Return to GPC Script Programming (Titan One)

Who is online

Users browsing this forum: No registered users and 10 guests