New simple anti-recoil for all around!

GPC2 script programming for Titan Two. Code examples, questions, requests.

Re: New simple anti-recoil for all around!

Postby Scachi » Thu Aug 09, 2018 1:13 pm

..
the order the combos are defined seems to matter too when combining rapid fire with anti recoil on fire hold only.

this works:
Code: Select all
    if (get_val (BUTTON_5)) //antirecoil only active when firing
    {   
        combo_run(RapidFire);
    combo_run(cAntiRecoil);
    }
}
 
combo RapidFire
{   
    set_val(BUTTON_5, 100);
    wait(RapidHold);
    set_val(BUTTON_5, 0);
    wait(RapidRest);
}
 
 
combo cAntiRecoil {
  AntiRecoil(STICK_1_Y,RECOIL_V);
  AntiRecoil(STICK_1_X,RECOIL_H);
}
 


this not:

Code: Select all
    if (get_val (BUTTON_5)) //antirecoil only active when firing
    {   
        combo_run(RapidFire);
    combo_run(cAntiRecoil);
    }
}
 
combo cAntiRecoil {
  AntiRecoil(STICK_1_Y,RECOIL_V);
  AntiRecoil(STICK_1_X,RECOIL_H);
}
 
combo RapidFire
{   
    set_val(BUTTON_5, 100);
    wait(RapidHold);
    set_val(BUTTON_5, 0);
    wait(RapidRest);
}
 


A lot of things to watch out for.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: New simple anti-recoil for all around!

Postby bonefisher » Thu Aug 09, 2018 3:52 pm

I remember way back that the ant-recoil needed to be last on the titan one also... :smile0517:
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: New simple anti-recoil for all around!

Postby FRANKWHITE » Tue Aug 20, 2019 10:16 pm

playing rainbow six siege and the anti recoil doesn't activate all the time. Why ?

feels like when i move my mouse it stops and recoil kicks in

and I dont want rapid fire,, Any help ,maybe I need to add something to the code.

I have the code from the first page
User avatar
FRANKWHITE
Staff Sergeant
Staff Sergeant
 
Posts: 14
Joined: Mon Aug 12, 2019 7:18 pm

Re: New simple anti-recoil for all around!

Postby FRANKWHITE » Tue Aug 27, 2019 11:32 pm

how do i make this only activate only holding down fire and ads.. Im using the first code, I'm trying to see if can use this for pubg , but when I'm holding a grenade he keep looking down.

I tried the other pubg stuff but since I'm using the xim apex the littlest move down and my guy is looking at the floor
User avatar
FRANKWHITE
Staff Sergeant
Staff Sergeant
 
Posts: 14
Joined: Mon Aug 12, 2019 7:18 pm

Re: New simple anti-recoil for all around!

Postby Mad » Tue Aug 27, 2019 11:42 pm

FRANKWHITE wrote:how do i make this only activate only holding down fire and ads..

Code: Select all
#define vertical    28.75
#define horizontal   0.00
 
fix32  noise;
init{noise = 5.0;}
 
main {
//-------------------------Remove stick noise---------------------------------//
    if(abs(get_actual(STICK_1_X)) < noise) set_val(STICK_1_X, 0.0);
    if(abs(get_actual(STICK_1_Y)) < noise) set_val(STICK_1_Y, 0.0);
    if(abs(get_actual(STICK_2_X)) < noise) set_val(STICK_2_X, 0.0);
    if(abs(get_actual(STICK_2_Y)) < noise) set_val(STICK_2_Y, 0.0);
 
    if(is_active(BUTTON_5) && is_active(BUTTON_8)) combo_run(anti_recoil);
    if(is_active(STICK_1_Y))combo_stop(anti_recoil);
    if(is_active(STICK_1_X))combo_stop(anti_recoil);
}
combo anti_recoil
{
    set_val(STICK_1_Y, vertical);
    set_val(STICK_1_X, horizontal);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: New simple anti-recoil for all around!

Postby FRANKWHITE » Fri Aug 30, 2019 5:36 pm

Thanks alot man. YES !!!!
User avatar
FRANKWHITE
Staff Sergeant
Staff Sergeant
 
Posts: 14
Joined: Mon Aug 12, 2019 7:18 pm

Re: New simple anti-recoil for all around!

Postby alanmcgregor » Fri Aug 30, 2019 8:45 pm

FRANKWHITE wrote:playing rainbow six siege and the anti recoil doesn't activate all the time. Why ?

feels like when i move my mouse it stops and recoil kicks in

and I dont want rapid fire,, Any help ,maybe I need to add something to the code.

I have the code from the first page


That is a limitation of the Anti Recoil script:
Code: Select all
    if(get_actual(BUTTON_5))combo_run(anti_recoil);
    if(is_active(STICK_1_Y))combo_stop(anti_recoil);
    if(is_active(STICK_1_X))combo_stop(anti_recoil);

Do you see the last two lines?, those pretty much are saying: "Stop the anti-recoil when I move the right stick (mouse)". So trying to shoot an enemy while moving the mouse, doesn't give you AR.

However, I think in those cases, you wil get better results by aiming with WASD movement, than tracking/shooting an enemy on movement with the mouse.

Others scripts support AR with mouse movement, like AryanX, DrNefario and the "Harmony" (I liked that name) which is the Special Anti-recoil Script for XIM devices, this one in particular has very nice tracking antirecoil(supports mouse movement) doesn't shows floatiness than other scripts. But yeah try them all, find what ever you prefer.

Personally, I think the best anti-recoil for mouse that you can get, is by using Titan Two mouse support Raw Offset, -no XIM- this was wrote by J2Kbr and is introduce in some official gamepacks.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: New simple anti-recoil for all around!

Postby Jimbo180 » Mon Sep 02, 2019 6:41 pm

Weird, this or any other AR script doesn't work on PUBG since the latest update... there is just too much "jumping" with the scopes.
User avatar
Jimbo180
Sergeant
Sergeant
 
Posts: 6
Joined: Thu Apr 11, 2019 10:19 am

Re: New simple anti-recoil for all around!

Postby alanmcgregor » Mon Sep 02, 2019 9:04 pm

No offense, but honestly that's a broken ass game. I mean this is one of the most reliable, straight forward anti-recoil scripts.

If they change the sensitivity or something, then go lower recoil compensation.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Previous

Return to GPC2 Script Programming

Who is online

Users browsing this forum: Baidu [Spider] and 99 guests