help

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

help

Postby moneytheman » Mon Sep 17, 2018 3:34 am

so i wana to use my 360 controller for the touchpad controls for infamous on ps4 can somebody help
User avatar
moneytheman
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Mon Sep 17, 2018 3:31 am

Re: help

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

With this script you can use the Xbox 360 Back button to activate the PS4 Touch Click. :smile0517:
Code: Select all
main {
    swap(XB360_BACK, PS4_TOUCH);
}
 
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: help

Postby moneytheman » Mon Sep 17, 2018 2:38 pm

its left and right to be pushed at same time how can I get that effect
User avatar
moneytheman
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Mon Sep 17, 2018 3:31 am

Re: help

Postby J2Kbr » Mon Sep 17, 2018 6:37 pm

moneytheman wrote:its left and right to be pushed at same time how can I get that effect

Code: Select all
 
main {
    if(event_press(XB360_RT)) {
        combo_run(SetTouchRight);
    } set_val(XB360_RT, 0);
 
    if(event_press(XB360_LT)) {
        combo_run(SetTouchLeft);
    } set_val(XB360_RT, 0);
}
 
 
combo SetTouchRight {
    ps4_set_touchpad(90, 45);
    set_val(PS4_TOUCH, 100);
    wait(100);
}
 
combo SetTouchLeft {
    ps4_set_touchpad(-90, -45);
    set_val(PS4_TOUCH, 100);
    wait(100);
}
 
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: help

Postby moneytheman » Mon Sep 17, 2018 7:47 pm

it works but the r2 wont work alone for shooting I think I prob need to have the touches for select and start instead
User avatar
moneytheman
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Mon Sep 17, 2018 3:31 am

Re: help

Postby J2Kbr » Tue Sep 18, 2018 6:32 am

moneytheman wrote:it works but the r2 wont work alone for shooting I think I prob need to have the touches for select and start instead

or using a button combination, like:

Dpad Down + L2 -> Left Touch
DPad Down + R2 -> Right Touch

What do you think?
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: help

Postby Prototype » Tue Sep 18, 2018 9:30 am

Or a quick back button's press for left and a long press for right?
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3252
Joined: Sun Dec 16, 2012 1:43 pm

Re: help

Postby moneytheman » Tue Sep 18, 2018 10:54 am

I think select and start be better them buttons not used in that game
User avatar
moneytheman
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Mon Sep 17, 2018 3:31 am

Re: help

Postby Prototype » Tue Sep 18, 2018 12:31 pm

Like that?
Code: Select all
main {
    if(event_press(XB360_BACK)) {
        combo_run(SetTouchRight);
    } set_val(XB360_BACK, 0);
 
    if(event_press(XB360_START)) {
        combo_run(SetTouchLeft);
    } set_val(XB360_BACK, 0);
}
 
combo SetTouchRight {
    ps4_set_touchpad(90, 45);
    set_val(PS4_TOUCH, 100);
    wait(100);
}
 
combo SetTouchLeft {
    ps4_set_touchpad(-90, -45);
    set_val(PS4_TOUCH, 100);
    wait(100);
}
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3252
Joined: Sun Dec 16, 2012 1:43 pm

Re: help

Postby moneytheman » Tue Sep 18, 2018 12:35 pm

that should do it ima try it later and tell yall how it goes that was nice of u both to help
User avatar
moneytheman
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Mon Sep 17, 2018 3:31 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 132 guests