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 » Mon Oct 22, 2018 8:51 pm

Awesome!! :)
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 Nov 09, 2018 2:08 pm

I have a weirded question :)

So the script you've helper me with, it's all pretty good, thanks.

I am aware that some of my controller settings still comes from the Xbox app and also in-game settings, but it seams like it's not counteracting the scrip.

If I'm not totally wrong, I believe that high LS sensitivity, makes my zigzag movement slightly quicker!? But will the script include or override those settings?
If the zigzag speed/sensitivity (while in script) is independent of my Xbox and in-game settings (and here I want the highest sensitivity), then I would like to set my Xbox and in-game LS to very low sensitivity (while not in scope).

Does my question make any sense?

In the end I guess the proper way here, is to script it all?

Any thoughts?
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 Nov 10, 2018 9:54 am

SirrapT wrote:If I'm not totally wrong, I believe that high LS sensitivity, makes my zigzag movement slightly quicker!? But will the script include or override those settings?

The sensitivity set in the App affects only when manually operating the stick, not the script as here the zig-zag is performed using the maximum values possible.
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 » Sat Nov 10, 2018 6:54 pm

So I guess the number 100 in this case, is what you refer to?

combo ZigZagRight {
set_val(XB1_LX, 100.0);
wait(90);
set_val(XB1_LY, 100.0);
wait(90);
set_val(XB1_LX, -100.0);
wait(90);
set_val(XB1_LY, -100.0);
wait(90);
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 » Sun Nov 11, 2018 7:28 am

correct, is the value ±100 in the set_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 Dec 06, 2018 7:50 pm

So I had to give up on my elite controller ;(
Back on a basic controller again!
Tried to make ZigZag working also when in binoculars but having trouble? Getting it working only that short moment when clicking down RS but after that tiny moment it's gone ;(
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 » Fri Dec 07, 2018 6:18 am

Please post the code you are currently using and also let us know for how long the zigzag combo should run after press the RS button. 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 07, 2018 9:11 pm

Less freedom without the paddles ;(
So here's what I really would like now when I'm without the elite paddle:

ADS/Hold Breath on LT is there to stay!

Is it possible to activate the ZigZag combo on LT 95-100% press, and deactivate when pressing less than that (instead of the ZigZag on LS I'm using right now)?

I want RT shoot on 1% sensitivity.

And then there's those binoculars (RS click).
If we could activate the ZigZag combo to stay active for 10 seconds, that would be great :) And while in binoculars, RT is the tagger, but could we change this to fastest possible spam tag when pressing RT (while in binoculars)?

Thanks!

This is what I'm using right now:

Code: Select all
 
main {
                //wanted zigzag to activate on all 4 directions. Think it woorks?!
                if(get_val(XB1_LT)) {
                    if(get_val(XB1_LX) <= -100 && get_val(XB1_LY) > -90) {
                        combo_run(ZigZagLeft);
                        }
                        if(get_val(XB1_LX) >= 100 && get_val(XB1_LY) < 90) {
                            combo_run(ZigZagRight);
                            }
                            if(get_val(XB1_LY) <= -100 && get_val(XB1_LX) > -90) {
                                combo_run(ZigZagLeft);
                                }
                                if(get_val(XB1_LY) >= 100 && get_val(XB1_LX) < 90) {
                                    combo_run(ZigZagRight);
                                        }
                                        } else {
                                            combo_stop(ZigZagLeft);
                                            combo_stop(ZigZagRight);
                                            }
 
                                // ADS on LT activates max zoom in and hold breath/steady aim.
                                if(event_press(XB1_LT)) {
                                    combo_run(MaxZoomIn);
                                    combo_run(HoldBreath);
                                    }
}
 
combo ZigZagRight {
    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 ZigZagLeft {
    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);
}
 
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 08, 2018 7:47 am

thank you for the explanations. here is your script updated:
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)) {
        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 » Sat Dec 08, 2018 9:49 pm

Wow :)
Thanks!
It's only one thing!
Clicking RS obviously activates ZigZag, meaning that when I click again to leave binoculars, ZigZag activates again. Is there any way to deactivate on the second RS click?
User avatar
SirrapT
Sergeant Major
Sergeant Major
 
Posts: 73
Joined: Fri Sep 21, 2018 1:42 am

PreviousNext

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 58 guests