Sniper Elite 3 on Xbox One

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

Re: Sniper Elite 3 on Xbox One

Postby SirrapT » Thu Oct 11, 2018 5:27 pm

Just realized that the killcam interfered with the drop. No killcam, perfect drop :) But I might disable the drop for now because it also activates in binoculars every time I tag? Standing up, crouch, lay down! Not good if I want to stay hidden :)

My biggest issue right now, before we try the zigzag script, is to expand the deadzone on my left stick.
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 » Fri Oct 12, 2018 12:31 am

Added zigzag while ads:

Code: Select all
main {
 
    // Left Trigger Combo (don't need half scoop):
    // 0-1% Activates "Ads" (LT)
    // zigzag when ads
    if(get_val(XB1_LT)) {
        combo_run(LeftRight);
        }
        // and "max zoom in" (D-Pad up).
        // and "hold breath" (B press).
        if(event_press(XB1_LT)) {
            combo_run(MaxZoomIn);
            combo_run(HoldBreath);
        }
    }
combo LeftRight {
    set_val(XB1_LX, -100.0);
    wait(100);   
    set_val(XB1_LY, -100.0);
    wait(100)
    set_val(XB1_LX, 100.0);
    wait(100);   
    set_val(XB1_LY, 100.0);
    wait(100);
    }
combo MaxZoomIn {
    wait(120);
    set_val(XB1_UP, 100);
    wait(40);
    }
combo HoldBreath {
    wait (120);
    set_val(XB1_RB, 100);
    wait (40);
}


Still don't know how to solve my wish to deactivate zigzag every time I manually move with Left Stick, and activate zigzag again when no manual moving? And also how to activate zigzag while using the binoculars?
Wonder if it's also possible to deactivate zigzag already at 1% RT press?
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 Oct 12, 2018 7:51 am

SirrapT wrote: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"?

Nice we are making progress, lets move to the hold breath, I added an check to delay the hold breath, please test:
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 && get_ptime(XB1_LT) >= 140) {
            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);
}
 
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 Oct 12, 2018 2:02 pm

Thanks for reply :)

Just wondering if you saw the posts I made after the one you just replied to?

I put together your script (probably not the best way) that works.

Drop, Hold breath and zoom in works already and zigzag works but not exactly how I want it.
Before I use "activate zigzag when pressing LT", I want zigzag to stop when manually moving LS. I believe I have the script for the zigzag combo:

combo LeftRight {
set_val(XB1_LX, -100.0);
wait(100);
set_val(XB1_LY, -100.0);
wait(100);
set_val(XB1_LX, 100.0);
wait(100);
set_val(XB1_LY, 100.0);
wait(100);

So, how do I script the following to make LS movements to override (kill) the zigzag?

(XB1_LX, > -15.0);
(XB1_LY, > -15.0);
(XB1_LX, > 15.0);
(XB1_LY, > 15.0);

And then activate again when no more LS movement?

For now, I'm using P3 (paddle) for zigzag.

I checked the drift on my LS, and it's fluctuating between 3 and 12. That's why you see the number 15. Obviously I want to expand the deadzone to 15 one day, but that can wait if this works.

Also, the drop (stance) activates when tagging through binoculars, meaning, for every LT press (tagging), I crouch, lay down and stand up. So if it's possible to kill the drop while using binoculars, that would be great?!

Please have a look at my additions to the script and correct me were needed.
:)

I guess you've seen a lot of game packs and scripts, so please, if you have any recommendations regarding aim, accuracy, speed and so on, when it comes to sniping, I gladly listen :)

Thanks :)
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 16, 2018 6:57 pm

Sorry, I have not read your late post.
SirrapT wrote: I want zigzag to stop when manually moving LS.

You can achieve that by checking the status of the analog sick, example:
Code: Select all
    if(get_val(XB1_LT) && (abs(get_val(XB1_LX)) > 20 || abs(get_val(XB1_LY)) > 20)) {
        combo_run(LeftRight);
    } else combo_stop(LeftRight);
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 16, 2018 9:46 pm

Great! Thanks! Can you please give me an example (or let me know where to look) of how to set my dead zone on the sticks?
Last edited by SirrapT on Tue Oct 16, 2018 10:40 pm, edited 1 time in total.
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 16, 2018 9:50 pm

SirrapT wrote:Great! Thanks! Can you please give me an example of how to set my dead zone on the sticks?

The Titan One GPC have a dedicated function for this purpose, please check this documentation page for more details and examples of use:
https://www.consoletuner.com/kbase/i_o_ ... m#deadzone
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 16, 2018 10:41 pm

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 » Tue Oct 16, 2018 11:00 pm

Just curious, what does abs stand for?
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 17, 2018 7:47 am

SirrapT wrote:Just curious, what does abs stand for?

ADS is your aiming down sights, so basically whenever you see your iron sights or whatever optic you have on your gun. :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

PreviousNext

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 101 guests