Sniper Elite 3 on Xbox One

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

Re: Sniper Elite 3 on Xbox One

Postby J2Kbr » Tue Dec 11, 2018 2:40 pm

SirrapT wrote: Is there any way to deactivate on the second RS click?

yep :)
Code: Select all
int tv;
 
main {
    // Is it possible to activate the ZigZag combo on LT 95-100% press
    if(get_val(XB1_LT) >= 95) {
        combo_run(ZigZag);
    } else if(tv <= 0) {
        combo_stop(ZigZag);
    }
    // And then there's those binoculars (RS click).
    // If we could activate the ZigZag combo to stay active for 10 seconds
    if(event_press(XB1_RS)) {
        if(tv) {
            tv = 0;
            combo_stop(ZigZag);
        } else tv = 10000;
    }
    if(tv > 0) {
        tv = tv - get_rtime();
        combo_run(ZigZag);
    }
 
    // I want RT shoot on 1% sensitivity
    if(get_val(XB1_RT)) {
        set_val(XB1_RT, 100);
    }
 
    // ADS on LT activates max zoom in and hold breath/steady aim.
    if(event_press(XB1_LT)) {
        combo_run(MaxZoomIn);
        combo_run(HoldBreath);
    }
}
 
combo ZigZag {
    set_val(XB1_LX, 100.0);
    wait(80);
    set_val(XB1_LY, 100.0);
    wait(80);   
    set_val(XB1_LX, -100.0);
    wait(80)
    set_val(XB1_LY, -100.0);
    wait(80);
}
 
combo MaxZoomIn {
    wait(120);
    set_val(XB1_UP, 100);
    wait(40);
}
 
combo HoldBreath {
    wait(120);
    set_val(XB1_RB, 100);
    wait (40);
}
 
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: Sniper Elite 3 on Xbox One

Postby SirrapT » Tue Dec 11, 2018 6:03 pm

Thanks!
Not very important , but is there any way to control (change) slots (on Titan1) from my controller?
And I'm trying to add the drop shot again. Is it possible to make the press time longer (hold), like 1.5 seconds, to avoid standing up by mistake? Many times I forget to hold RT manually so the drop ends up being a stand up target!
User avatar
SirrapT
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Fri Sep 21, 2018 1:42 am

Re: Sniper Elite 3 on Xbox One

Postby J2Kbr » Wed Dec 12, 2018 7:47 am

SirrapT wrote:Not very important , but is there any way to control (change) slots (on Titan1) from my controller?

yes, on the Titan One the default button combination is VIEW+MENU, the button combination can be changed to LS+MENU in the device settings.
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: Sniper Elite 3 on Xbox One

Postby SirrapT » Fri Dec 14, 2018 4:14 am

Can't figure out how to get that delay on (b button) on drop shot again. Is it possible to script the press time to be longer (hold), like 1 second, to avoid standing up by mistake? Many times I forget to press and hold RT enough manually so the drop ends up being a stand up (target)!
User avatar
SirrapT
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Fri Sep 21, 2018 1:42 am

Re: Sniper Elite 3 on Xbox One

Postby J2Kbr » Fri Dec 14, 2018 7:54 am

SirrapT wrote:Can't figure out how to get that delay on (b button) on drop shot again. Is it possible to script the press time to be longer (hold), like 1 second, to avoid standing up by mistake? Many times I forget to press and hold RT enough manually so the drop ends up being a stand up (target)!

this is possible. have you added dropshot to the above script? if yes, please post your latest version so we can work from there. Thanks.
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: Sniper Elite 3 on Xbox One

Postby SirrapT » Fri Dec 14, 2018 6:45 pm

This is what I have:

Code: Select all
if((get_val(XB1_RT)) && (get_ptime(XB1_RT)) <= 1500) {
        set_val(XB1_B, 100);
User avatar
SirrapT
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Fri Sep 21, 2018 1:42 am

Re: Sniper Elite 3 on Xbox One

Postby J2Kbr » Sat Dec 15, 2018 7:04 am

Try this:
Code: Select all
int timeout;
 
main {
    if(event_press(XB1_RT)) {
        if(timeout <= 0) {
            timeout = 3000;
            combo_run(DropShot);
        }
    }
    if(timeout > 0) {
        timeout = timeout - get_rtime();
    }
}
 
combo DropShot {
    set_val(XB1_B, 100);
    wait(1000);
}
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: Sniper Elite 3 on Xbox One

Postby SirrapT » Mon Dec 17, 2018 7:21 pm

Thanks! Didn't have an opportunity to try until last night. It works well as long as I'm not laying down already (makes him stand up), and when I'm not in my binoculars. Same problems as before! But the actual drop from crouch or standing up, works as intended, even if I squeeze the trigger without holding it pressed!

So is there a way to script it to be deactivated when in binoculars and when already laying down?
User avatar
SirrapT
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Fri Sep 21, 2018 1:42 am

Re: Sniper Elite 3 on Xbox One

Postby SirrapT » Thu Dec 20, 2018 9:43 pm

So is there a way to script the drop to be deactivated when in binoculars and when already laying down or to be a strictly only when shooting while crouching and/or standing?
User avatar
SirrapT
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Fri Sep 21, 2018 1:42 am

Re: Sniper Elite 3 on Xbox One

Postby J2Kbr » Fri Dec 21, 2018 8:55 am

SirrapT wrote:So is there a way to script the drop to be deactivated when in binoculars and when already laying down or to be a strictly only when shooting while crouching and/or standing?

This is a little-bit more complicated, as the script needs monitor the button presses to track the current stance to determine if the player is in prone position. I am doing that for BFV as the weapon recoil is different depending on the stance, if succeed I will post here a Titan One version of the script.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

PreviousNext

Return to GPC1 Script Programming

Who is online

Users browsing this forum: Google [Bot] and 78 guests