anti recoil

Gtuner IV general support. Operation, questions, updates, feature request.

anti recoil

Postby Cokey » Tue Nov 27, 2018 9:21 pm

it wont accept a value of 13.00

it wont work when i do that but at 15.00 it will work.

some reason only rapidfire works but anti recoil wont.

Code: Select all
#pragma METAINFO("AR with rapid fire", 1, 0, "bonefisher")
 
 
#define vertical    13.00 //adjust anti-recoil: add if gun is rising and subtract if dropping.
#define horizontal   0.00 //adjust anti-recoil right and left: add positive number if going left
                          //and add a - in front of number if going right.
 
bool rapid_fire_toggle;
bool anti_recoil_toggle;
fix32  noise;
init{noise = 7.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);
//-------------------------Anti-recoil toggle---------------------------------//
/*        To turn anti-recoil on/off hold ADS trigger and click d-pad down    */   
    if(get_actual(BUTTON_8)){
        set_val(BUTTON_11, 0.0);
    if(event_active(BUTTON_11)) {
        anti_recoil_toggle = (anti_recoil_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//
    if(anti_recoil_toggle){
    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);}
//-------------------------Rapid fire toggle----------------------------------//
/*        To turn rapid fire on/off hold ADS trigger and click d-pad up       */   
    if(get_actual(BUTTON_8)){
        set_val(BUTTON_10, 0.0);
    if(event_active(BUTTON_10)) {
        rapid_fire_toggle = (rapid_fire_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//     
    if(rapid_fire_toggle && get_actual(BUTTON_5))combo_run(rapid_fire);
}
combo rapid_fire
{
    set_val(BUTTON_5, 100.0);
    wait(60);
    set_val(BUTTON_5, 0.0);
    wait(60);
    set_val(BUTTON_5, 0.0);
}
 
combo anti_recoil
{
    set_val(STICK_1_Y, vertical);
    set_val(STICK_1_X, horizontal);
}
User avatar
Cokey
Command Sergeant Major
Command Sergeant Major
 
Posts: 112
Joined: Sun Nov 11, 2018 5:04 pm

Re: anti recoil

Postby bonefisher » Wed Nov 28, 2018 12:44 am

Code: Select all
 
#pragma METAINFO("AR with rapid fire", 1, 0, "bonefisher")
 
 
#define vertical    13.00 //adjust anti-recoil: add if gun is rising and subtract if dropping.
#define horizontal   0.00 //adjust anti-recoil right and left: add positive number if going left
                          //and add a - in front of number if going right.
 
bool rapid_fire_toggle;
bool anti_recoil_toggle;
fix32  noise;
init{noise = 7.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);
//-------------------------Anti-recoil toggle---------------------------------//
/*        To turn anti-recoil on/off hold ADS trigger and click d-pad down    */   
    if(get_actual(BUTTON_8)){
        set_val(BUTTON_11, 0.0);
    if(event_active(BUTTON_11)) {
        anti_recoil_toggle = (anti_recoil_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//
    if(anti_recoil_toggle){
    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);}
//-------------------------Rapid fire toggle----------------------------------//
/*        To turn rapid fire on/off hold ADS trigger and click d-pad up       */   
    if(get_actual(BUTTON_8)){
        set_val(BUTTON_10, 0.0);
    if(event_active(BUTTON_10)) {
        rapid_fire_toggle = (rapid_fire_toggle == 0?1:0);}}
//----------------------------------------------------------------------------//    
    if(rapid_fire_toggle && get_actual(BUTTON_5))combo_run(rapid_fire);
}
combo rapid_fire
{
    set_val(BUTTON_5, 100.0);
    wait(60);
    set_val(BUTTON_5, 0.0);
    wait(60);
    set_val(BUTTON_5, 0.0);
}
 
combo anti_recoil
{
    set_val(STICK_1_Y, vertical);
    set_val(STICK_1_X, horizontal);
}
 

Just tested it on 13.0 and works like it should! Now depending what game your playing if the deadzone is 14.0 your below that number it would not get anything anyway! On the device monitor shows it working so this may be the case.
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: anti recoil

Postby Cokey » Sun Dec 09, 2018 6:05 pm

the deadzone is at 13. so what is it i need to do to make it work at 13.00 anti recoil?

because deadzone 13.00 is what makes the game feel good.
User avatar
Cokey
Command Sergeant Major
Command Sergeant Major
 
Posts: 112
Joined: Sun Nov 11, 2018 5:04 pm

Re: anti recoil

Postby bonefisher » Sun Dec 09, 2018 8:51 pm

Cokey wrote:the deadzone is at 13. so what is it i need to do to make it work at 13.00 anti recoil?

because deadzone 13.00 is what makes the game feel good.

If the deadzone is at 13 then you need to adjust anti recoil higher or off if the gun doesn't move where it is set.
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: anti recoil

Postby Cokey » Sun Dec 09, 2018 10:41 pm

bonefisher wrote:
Cokey wrote:the deadzone is at 13. so what is it i need to do to make it work at 13.00 anti recoil?

because deadzone 13.00 is what makes the game feel good.

If the deadzone is at 13 then you need to adjust anti recoil higher or off if the gun doesn't move where it is set.


but the recoil is too high at 20.00, So 13.00 is where it needs to be. but it wont allow me to use 13.00
User avatar
Cokey
Command Sergeant Major
Command Sergeant Major
 
Posts: 112
Joined: Sun Nov 11, 2018 5:04 pm

Re: anti recoil

Postby bonefisher » Sun Dec 09, 2018 11:33 pm

Use 13.1
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 98 guests