[GCV/GPC] Apex Legends CV Anti-Recoil

GCV scripting for Gtuner IV and Titan Two. Configuration, examples, questions.

[GCV/GPC] Apex Legends CV Anti-Recoil

Postby J2Kbr » Thu Apr 02, 2020 5:28 pm

The GCV Script for Apex Legends anti-recoil has just been published:
https://www.consoletuner.com/greslib/?w1027
:smile0517:

Helper scripts:
Controller/XIM Output:
Code: Select all
 
fix32 stick_1_x, stick_1_y;
bool rapidfire;
 
main {
    if(gcv_ready()) {
        switch(gcv_read(0)) {
            case 0: {
                rapidfire = gcv_read(1);
            } break;
            case 1: {
                gcv_read(1, &stick_1_x);
                gcv_read(5, &stick_1_y);
            } break;
            case 2: {
                int16 hoffset, voffset;
                gcv_read(1, &hoffset);
                gcv_read(3, &voffset);
                mxyconverter_hoffset(hoffset);
                mxyconverter_voffset(voffset);
            } break;
        }
    }
 
    if(get_actual(BUTTON_5)) {
        if(stick_1_x || stick_1_y) {
            set_val(STICK_1_X, clamp(get_val(STICK_1_X) + stick_1_x, -100.0, 100.0));
            set_val(STICK_1_Y, clamp(get_val(STICK_1_Y) + stick_1_y, -100.0, 100.0));
        }
        if(rapidfire) {
            combo_run(Rapidfire);
        }
    } else if(event_release(BUTTON_5)) {
        stick_1_x = stick_1_y = 0.0;
        mxyconverter_hoffset(0);
        mxyconverter_voffset(0);
        combo_stop(Rapidfire);
    }
}
 
combo Rapidfire {
    set_val(BUTTON_5, 100.0);
    wait(24);
    set_val(BUTTON_5, 0.0);
    wait(16);
}
 


HID Output:
Code: Select all
 
#include <keyboard.gph>
#include <mouse.gph>
 
init {
    keymapping();
    const uint8 mmap[] = {
        MBUTTON_1, BUTTON_5,
    }; mousemapping(mmap);
}
 
main {
    key_passthru();
    mouse_passthru();
 
    static bool rapidfire;
    static int16 hoffset, voffset;
    if(gcv_ready()) {
        switch(gcv_read(0)) {
            case 0: {
                rapidfire = gcv_read(1);
            } break;
            case 2: {
                gcv_read(1, &hoffset);
                gcv_read(3, &voffset);
            } break;
        }
    }
 
    if(mouse_status(MBUTTON_1)) {
        mouse_set(MOUSE_X, mouse_status(MOUSE_X) + hoffset);
        mouse_set(MOUSE_Y, mouse_status(MOUSE_Y) + voffset);
        if(rapidfire) combo_run(c_Rapidfire);
    }
}
 
combo c_Rapidfire {
    mouse_set(MBUTTON_1, 1);
    wait(24);
    mouse_set(MBUTTON_1, 0);
    wait(16);
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19153
Joined: Tue Mar 18, 2014 1:39 pm

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby NyzdeN » Thu Apr 02, 2020 9:53 pm

The GCV Script for anti-recoil has just been published:
https://www.consoletuner.com/greslib/?w1027
:smile0517:


Grande Jeff,
I run the script, click the button and nothing happens.
What am I doing wrong?

Image
User avatar
NyzdeN
Sergeant First Class
Sergeant First Class
 
Posts: 17
Joined: Tue Sep 10, 2019 3:33 am

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Fri Apr 03, 2020 1:51 pm

NyzdeN wrote:
The GCV Script for anti-recoil has just been published:
https://www.consoletuner.com/greslib/?w1027
:smile0517:


Grande Jeff,
I run the script, click the button and nothing happens.
What am I doing wrong?

Image


You have to run the GVC script and the Official Apex Legends Gamepack for Anti Recoil and Rapidfire
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 84
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Fri Apr 03, 2020 2:03 pm

J2Kbr wrote:
NyzdeN wrote:Excellent job guys!I look forward to the next steps.Jeff, could you post a video of the anti-recoil on / off to see the results already obtained? :innocent_smile_1:

The GCV Script for anti-recoil has just been published:
https://www.consoletuner.com/greslib/?w1027
:smile0517:


Nie work Jeff :joia: I tried the Anti Recoil on the Xim Apex and i have to say it feels very stiff when ADS and making aim adjustments you can almost make no micro-aim adjustments, maybe you can look into that...
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 84
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby ungabunga9 » Fri Apr 03, 2020 2:45 pm

Gjin Yuko wrote:Nie work Jeff :joia: I tried the Anti Recoil on the Xim Apex and i have to say it feels very stiff when ADS and making aim adjustments you can almost make no micro-aim adjustments, maybe you can look into that...

It seems that there is still Y-Stacking with XIM. Mouse movements downward are amplified if the antirecoil script is active. I believe that most/all gamepacks act that way. 'Anti-recoil deadzone compensation' setting doesn't seem to affect that. That's why there are certain xim-friendly scripts.
User avatar
ungabunga9
First Sergeant
First Sergeant
 
Posts: 61
Joined: Thu Jun 01, 2017 1:37 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby J2Kbr » Fri Apr 03, 2020 3:08 pm

NyzdeN wrote:Grande Jeff, I run the script, click the button and nothing happens. What am I doing wrong? Image

Select the GCV script (i.e. 'apex_antirecoil') is the combobox you have "Video Input Check". :smile0517:
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19153
Joined: Tue Mar 18, 2014 1:39 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Fri Apr 03, 2020 3:10 pm

ungabunga9 wrote:
Gjin Yuko wrote:Nie work Jeff :joia: I tried the Anti Recoil on the Xim Apex and i have to say it feels very stiff when ADS and making aim adjustments you can almost make no micro-aim adjustments, maybe you can look into that...

It seems that there is still Y-Stacking with XIM. Mouse movements downward are amplified if the antirecoil script is active. I believe that most/all gamepacks act that way. 'Anti-recoil deadzone compensation' setting doesn't seem to affect that. That's why there are certain xim-friendly scripts.


No, it doesent stack with mouse movements anymore (any Anti Recoil Gamepack) because SAB OFF Zeros the Deadzone on both sticks, but the problem is rather that tracking/micro movements feels extremely stiff when running the Anti Recoil

Downward movenment always stacks with AR regardless of Xim or Controller
Last edited by Gjin Yuko on Fri Apr 03, 2020 3:13 pm, edited 1 time in total.
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 84
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby J2Kbr » Fri Apr 03, 2020 3:16 pm

ungabunga9 wrote:
Gjin Yuko wrote:Nie work Jeff :joia: I tried the Anti Recoil on the Xim Apex and i have to say it feels very stiff when ADS and making aim adjustments you can almost make no micro-aim adjustments, maybe you can look into that...
It seems that there is still Y-Stacking with XIM.

With the gamepack this is possible the cause of what you guys are describling. I will check what can be done to improve when using with XIM. In the mean time, please try with mouse direct on the Titan Two, not forgetting to configure DATA_SET = 2 in the GCV Script. Please let me know if the mouse response is good while the anti-recoil is being applied.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 19153
Joined: Tue Mar 18, 2014 1:39 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby ungabunga9 » Fri Apr 03, 2020 4:36 pm

Gjin Yuko wrote:Downward movenment always stacks with AR regardless of Xim or Controller


Wow. This was the problem all along. That feels extremely unnatural. I prefer that antirecoils that don't do this (antithesis AR).

I tried holding the controller Rstick at a slight movement and then pulling the trigger. When AR activates, the aim flys down extremely fast.
User avatar
ungabunga9
First Sergeant
First Sergeant
 
Posts: 61
Joined: Thu Jun 01, 2017 1:37 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Fri Apr 03, 2020 4:48 pm

ungabunga9 wrote:
Gjin Yuko wrote:Downward movenment always stacks with AR regardless of Xim or Controller


Wow. This was the problem all along. That feels extremely unnatural. I prefer that antirecoils that don't do this (antithesis AR).

I tried holding the controller Rstick at a slight movement and then pulling the trigger. When AR activates, the aim flys down extremely fast.


Thats because of Stick Drift, but SAB OFF will fix that with ALL AR Scripts.
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 84
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Next

Return to Gtuner Computer Vision

Who is online

Users browsing this forum: No registered users and 5 guests