Sniper Elite 3 on Xbox One

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

Sniper Elite 3 on Xbox One

Postby SirrapT » Tue Oct 09, 2018 5:48 pm

Just bought T1 and would really much appreciate help and advice how to make script for Sniper Elite 3 on Xbox One:

(I'm not sure if my way of thinking percentage throughout the trigger sensitivity, is correct, but I'm sure you get my point)

Left Trigger Combo (don't need half scoop):

0-1% Activates "Ads" (LT) and "max zoom in" (D-Pad up). 90% Activates "Hold breath" (RB).


Right Trigger Combo:

0-1% Activates "shoot" (RT). 90% Activates "drop/lay down (B Hold)".


When using binoculars and when ads/holding breath:

Auto (short & quick) zigzag movements (highest possible speed/sensitivity) left, fwd, right, bwd (left thumbstick circle movement), moving left thumbstick manually overrides zigzag and when no more manual movement zigzag starts again.


Changing (increasing) the deadzone and edit sensitivity of the thumbsticks.

Please help!
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 » Tue Oct 09, 2018 8:01 pm

Thank you for informing the buttons for the actions, here is the script:
Code: Select all
main {
    // Left Trigger Combo (don't need half scoop):
    // 0-1% Activates "Ads" (LT)
    if(get_val(XB1_LT)) {
        // and "max zoom in" (D-Pad up).
        if(event_press(XB1_LT)) {
            set_val(XB1_UP, 100);
        }
        // 90% Activates "Hold breath" (RB).
        if(get_val(XB1_LT) >= 90) {
            set_val(XB1_RB, 100);
        }
    }
 
    // Right Trigger Combo:
    // 0-1% Activates "shoot" (RT). 90% Activates "drop/lay down (B Hold)".
    if(get_val(XB1_RT) >= 90) {
        set_val(XB1_B, 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: Sniper Elite 3 on Xbox One

Postby SirrapT » Tue Oct 09, 2018 9:58 pm

Very much appreciated, thank you :)
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 » Wed Oct 10, 2018 4:11 am

The other half of my request is a bit more advanced I guess?
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 Oct 10, 2018 7:36 am

SirrapT wrote:The other half of my request is a bit more advanced I guess?

yes, please test the first part. confirming it works, we move forward to implement the remaining part. :smile0517:
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 » Wed Oct 10, 2018 1:42 pm

Was expecting the T1 to be here yesterday, probably arrive later today. Downloaded the software. Ready to copilot my headset.
:)
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 » Wed Oct 10, 2018 8:11 pm

OK, that didn't work.
When I press LT, I still have shoulder aim (half scoop) on 1 to 50% press, no zoom in (should be one click up on D-Pad) and hold breath is random and seams to activate better when I carefully half scoop first?
RT, drop activates after shooting when shooting from shoulder, when I shoot from scoop, I drop first and then shoot.

Could we try to activate all "at once" on LT, or if it has to be in a perfect order: ADS (scoop) activates straight away on the first 1% sensitivity (and is active throughout the whole trigger area), 2 clicks (to make sure that max zoom is achieved) on D-Pad up activates on 2%, and hold breath (1 click on RB) activates on 3% - and hopefully all this automatically overrides the shoulder aim (half scoop) that normally activates between 1 and 50%? And on the RT, set the shoot at 1% sensitivity (max sensitivity) and activate drop when letting go of the trigger?

Questions:
Will the built in Xbox app for remapping interfere (or even work) with T1 in any way?
Your numbers in the code, what does the 100 mean? Does the 90 mean that I press the trigger 90% towards maximum press? Is there a specific number for press and hold, in this case, drop to laying down is click and hold the B button?
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 » Thu Oct 11, 2018 5:19 am

SirrapT wrote:OK, that didn't work. When I press LT, I still have shoulder aim (half scoop) on 1 to 50% press, no zoom in (should be one click up on D-Pad) and hold breath is random and seams to activate better when I carefully half scoop first?
RT, drop activates after shooting when shooting from shoulder, when I shoot from scoop, I drop first and then shoot.

Maybe we need add a little delay to trigger the MaxZoonIn (Dpad UP) after press LT, please try this:
Code: Select all
main {
    // Left Trigger Combo (don't need half scoop):
    // 0-1% Activates "Ads" (LT)
    if(get_val(XB1_LT)) {
        // and "max zoom in" (D-Pad up).
        if(event_press(XB1_LT)) {
            combo_run(MaxZoomIn);
        }
        // 90% Activates "Hold breath" (RB).
        if(get_val(XB1_LT) >= 90) {
            set_val(XB1_RB, 100);
        }
    }
 
    // Right Trigger Combo:
    // 0-1% Activates "shoot" (RT). 90% Activates "drop/lay down (B Hold)".
    if(get_val(XB1_RT) >= 90) {
        set_val(XB1_B, 100);
    }
}
 
combo MaxZoomIn {
    wait(120);
    set_val(XB1_UP, 100);
    wait(40);
}
 


SirrapT wrote:Will the built in Xbox app for remapping interfere (or even work) with T1 in any way?

Yes, the Xbox App remapping can interfere, the script should be programmed to use the buttons configured on the remapping. For example, you remap A to X, so the script should be programmed to use the X button.

SirrapT wrote:Your numbers in the code, what does the 100 mean? Does the 90 mean that I press the trigger 90% towards maximum press?

You are correct, 90 means 90%, 100 -> 100%.

SirrapT wrote:Is there a specific number for press and hold, in this case, drop to laying down is click and hold the B button?

the press action can be detected with event_press() function, while hold can be detect with get_val().
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 » Thu Oct 11, 2018 2:08 pm

Thanks :)

OK, the "max zoom in" seams to work now and it activates very early on the trigger sensitivity, so the half scoop doesn't bother me any more. Hold breath though, is not working properly. Same as last time, activates only if I half scoop first. Obviously I have to struggle to get the half scoop right now, but when I succeed, I can see the hold breath activate when I press further. Maybe you can delay it like you did with "max zoom in"? Hold breath is a click on RB, not hold, so maybe hold breath should be a "event_press()" function instead of "get_val()"?

The drop works when I hold down the RT after shot :) If I accidentally just click instead of hold, I will stand up and probably get killed. Is there a way to stop that from happening? Like "if click, nothing"?

BTW, I'm trying to learn the scripting during all this. Doing my best, hehe...

Thanks for helping :smile0202:
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 Oct 11, 2018 3:28 pm

Did the same delay for hold breath, and I think it's working...

Code: Select all
main {
 
    // Left Trigger Combo (don't need half scoop):
    // 0-1% Activates "Ads" (LT)
    if(get_val(XB1_LT)) {
        // and "max zoom in" (D-Pad up).
        // and "hold breath" (B press).
        if(event_press(XB1_LT)) {
            combo_run(MaxZoomIn);
            combo_run(HoldBreath);
        }
    }
 
    // Right Trigger Combo:
    // 0-1% Activates "shoot" (RT). 90% Activates "drop/lay down (B Hold)".
    if(get_val(XB1_RT) >= 90) {
        set_val(XB1_B, 100);
    }
}
 
combo MaxZoomIn {
    wait(120);
    set_val(XB1_UP, 100);
    wait(40);
    }
combo HoldBreath {
    wait (120);
    set_val(XB1_RB, 100);
    wait (40);
}


Let me try it out for a while more :)
User avatar
SirrapT
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Fri Sep 21, 2018 1:42 am

Next

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 46 guests