Special Anti-Recoil for XIM4 and XIM Apex

Documentation, usage tips and configuration guides for the Titan Two scripts and bytecodes published by the community users.

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby Mad » Thu Aug 22, 2019 6:20 pm

Mr -selfie wrote:When I try to find the values they flash so fast on the screen on consultuner . Is there any way to get them to slow down ?

This might help:
Code: Select all
#define ffb1 ffb_get_actual(FFB_1, 0)
#define ffb2 ffb_get_actual(FFB_2, 0)
 
main {
  if(is_active(4)) {
    if (ffb1) printf("FFB1: %f", ffb1);
    if (ffb2) printf("FFB2: %f", ffb2);
  }
}
ConsoleTuner Support Team || Discord || Custom Scripts
Mad
Colonel
Colonel
 
Posts: 1381
Joined: Wed May 22, 2019 5:39 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby bonefisher » Thu Aug 22, 2019 6:25 pm

Mr -selfie wrote:When I try to find the values they flash so fast on the screen on consultuner . Is there any way to get them to slow down ?

Shut OFF rapid fire mod and then look!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5351
Joined: Thu Jan 29, 2015 10:49 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby SweatyPapi » Fri Aug 23, 2019 2:37 am

Why is it a closed script? and is it possible to add these scripts to it:

1. Auto Run
2. Auto Slide for BO4 like the one I inputted (for some reason with this script I keep crouching)
3. Strafe
4. Aim Assist (Don't have to if you don't want to)

All of these are on the script file I posted. Just to make it a better COD script as a whole
User avatar
SweatyPapi
Sergeant Major
Sergeant Major
 
Posts: 89
Joined: Fri Feb 08, 2019 12:52 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby alanmcgregor » Fri Aug 23, 2019 5:51 am

SweatyPapi wrote:Why is it a closed script? and is it possible to add these scripts to it:

Explained earlier: viewtopic.php?f=23&t=12735&start=140#p88121

SweatyPapi wrote: and is it possible to add these scripts to it:

1. Auto Run
2. Auto Slide for BO4 like the one I inputted (for some reason with this script I keep crouching)
3. Strafe
4. Aim Assist (Don't have to if you don't want to)

All of these are on the script file I posted. Just to make it a better COD script as a whole

1, 2, 3. Can be added
4. Aim Assist is forcing Rightstick movement, which makes conflict with Anti-Recoil. Besides this script is meant for XIM users, we don't need "Aim Assist Mods" mods like that only hinders our aiming and makes it very hard to deal with the aim assist bubble contrary to joystick users (therefore its popularity on other scripts) where helps to get caught by the aim assist bubble.
Image
User avatar
alanmcgregor
Major
Major
 
Posts: 838
Joined: Tue Mar 27, 2018 8:38 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby SweatyPapi » Fri Aug 23, 2019 6:53 am

alanmcgregor wrote:
SweatyPapi wrote:Why is it a closed script? and is it possible to add these scripts to it:

Explained earlier: viewtopic.php?f=23&t=12735&start=140#p88121

SweatyPapi wrote: and is it possible to add these scripts to it:

1. Auto Run
2. Auto Slide for BO4 like the one I inputted (for some reason with this script I keep crouching)
3. Strafe
4. Aim Assist (Don't have to if you don't want to)

All of these are on the script file I posted. Just to make it a better COD script as a whole

1, 2, 3. Can be added
4. Aim Assist is forcing Rightstick movement, which makes conflict with Anti-Recoil. Besides this script is meant for XIM users, we don't need "Aim Assist Mods" mods like that only hinders our aiming and makes it very hard to deal with the aim assist bubble contrary to joystick users (therefore its popularity on other scripts) where helps to get caught by the aim assist bubble.



Awesome. I hope this can be in the next update soon. I can provide you with the script Bonefisher gave me. I changed the slide in BO4 because the script he had gave dead slides. This one guarantees a slide when you want, but you can still Prone


Code: Select all
 
#pragma METAINFO("BO4 Continous ANTI", 1, 0, "Bonefisher")
 
/* *****************************************************************************
<cfgdesc>
[BO4 Special Edtion]
color          = #008000
shortdesc      = <font color="green">Runtime operations Use Interactive Configurations for changes to settings.
control        = info
 
[RAPID FIRE SETTINGS:]
color          = #008000
collapsible    = 2
shortdesc      = <font color="brown">ENABLE:<font color="green">Rapid Fire?</font>
byteoffset     = 0
bitsize        = 8
control        = radiobox
default        = 0
item           = Rapidfire OFF
item           = Rapidfire ON
 
[RAPID FIRE OPTIONS:]
group          = true
shortdesc      = <font color="brown">SHOTS PER SECOND:</font> <font color="green">   Set to desired sps setting 1~25 sps.</font>
byteoffset     = 1
bitsize        = 32
control        = spinboxf
default        = 165
minimum        = 10
maximum        = 250
step           = 05
decimals       = 1
 
[ANTI RECOIL SETTINGS:]
color          = #008000
collapsible    = 2
shortdesc      = <font color="brown">ENABLE:<font color="green"> Anti Recoil?
byteoffset     = 10
bitsize        = 1
bitoffset      = 7
control        = checkbox
default        = 1
item           = Anti Recoil ON
 
[Min Anti Recoil Percent]
group          = true
shortdesc      = <font color="brown">Minimum Percentage:<font color="green"> Anti Recoil to apply during aim stick movement.
byteoffset     = 11
bitsize        = 32
control        = spinboxf
default        = 200
minimum        = 0
maximum        = 1000
step           = 10
decimals       = 1
 
[Stick Noise Remover]
group          = true
shortdesc      = <font color="brown">STICK NOISE:<font color="green"> Set to the resting dead zone values for your right stick.
byteoffset     = 15
bitsize        = 32
control        = spinboxf
default        = 800
minimum        = 0
maximum        = 10000
step           = 50
decimals       = 2
 
[Anti Recoil Delay]
group          = true
shortdesc      = <font color="brown">Anti Recoil Delay:<font color="green"> (In MS) after fire button is pressed.
byteoffset     = 19
bitsize        = 16
control        = slider
default        = 0
minimum        = 0
maximum        = 1000
step           = 5
 
[Standing Anti Recoil Settings]
group          = true
shortdesc      = <font color="brown">Anti Recoil:<font color="green"> vertical pull force compensation.
byteoffset     = 21
bitsize        = 32
control        = spinboxf
default        = 1800
minimum        = -10000
maximum        = 10000
step           = 10
decimals       = 2
 
[Standing Anti Recoil H Settings]
group          = true
shortdesc      = <font color="brown">Anti Recoil:<font color="green"> horizontal pull force compensation.
byteoffset     = 25
bitsize        = 32
control        = spinboxf
default        = 00000
minimum        = -10000
maximum        = 10000
step           = 10
decimals       = 2
 
[Anti Recoil Timed]
group          = true
shortdesc      = <font color="brown">Anti Recoil Timed:<font color="green"> (In MS) length of top setting compensation then applying second settings.
byteoffset     = 29
bitsize        = 16
control        = slider
default        = 500
minimum        = 0
maximum        = 2500
step           = 5
 
[Anti Recoil Settings]
group          = true
shortdesc      = <font color="brown">Anti Recoil:<font color="green"> vertical pull force compensation.
byteoffset     = 31
bitsize        = 32
control        = spinboxf
default        = 1800
minimum        = -10000
maximum        = 10000
step           = 10
decimals       = 2
 
[Anti Recoil H Settings]
group          = true
shortdesc      = <font color="brown">Anti Recoil:<font color="green"> horizontal pull force compensation.
byteoffset     = 35
bitsize        = 32
control        = spinboxf
default        = 00000
minimum        = -10000
maximum        = 10000
step           = 10
decimals       = 2
 
[AIM ASSIST SETTINGS:]
color       = #008000
collapsible = 2
 
[AIM ASSIST]
group       = true
shortdesc   = <font color="green">Works when ads is applied or fired.</font>
byteoffset  = 39
bitsize     = 1
bitoffset   = 7
control     = checkbox
default     = 1
item        =  Enable Aim assist
 
[TURBO MELEE SETTINGS:]
color       = #008000
collapsible = 2
 
[TURBO MELEE MODz]
group       = true
shortdesc   = <font color="green">Options for Turbo Melee.</font>
byteoffset  = 54
bitsize     = 8
control     = radiobox
default     = 2
item        = Disable
item        = Hold for normal press or double tap for turbo melee.
item        = Hold for turbo melee or double tap for normal press.
 
 
[AIM ABUSE SETTINGS:]
color       = #008000
collapsible = 2
 
[Aim_Abuse Settings]
group          = true
shortdesc      = <font color="green">Enable Aim Abuse?</font>
byteoffset     = 56
bitsize        = 1
bitoffset      = 7
control        = checkbox
default        = 0
item           = Aim Abuse
 
[Auto Aim Hold Time]
group          = true
shortdesc      = <font color="brown">Auto Aim Hold Time:</font> <font color="green">Configure the time period, in milli-seconds, of which the ADS(Scope) button should be pressed when the aim-assist abuse is activated.</font>
byteoffset     = 57
bitsize        = 16
control        = spinbox
default        = 150
minimum        = 20
maximum        = 5000
step           = 50
 
[Auto Aim Release Time]
group          = true
shortdesc      = <font color="brown">Auto Aim Release Time:</font> <font color="green">Configure the time period, in milli-seconds, of which the ADS(Scope) button should be released when the aim-assist abuse is activated.</font>
byteoffset     = 59
bitsize        = 16
control        = spinbox
default        = 50
minimum        = 10
maximum        = 5000
step           = 5
 
[Auto Aim Fire Pre Pause Time]
group          = true
shortdesc      = <font color="brown">Auto Aim Fire Pre Pause Time:</font> <font color="green">Configure the time period, in milli-seconds, to pause rapid fire for given time before ads release.</font>
byteoffset     = 61
bitsize        = 16
control        = spinbox
default        = 5
minimum        = 0
maximum        = 5000
step           = 5
 
[Auto Aim Fire Post Pause Time]
group          = true
shortdesc      = <font color="brown">Auto Aim Fire Post Pause Time:</font> <font color="green">Configure the time period, in milli-seconds, to pause rapid fire for given time after ads release.</font>
byteoffset     = 63
bitsize        = 16
control        = spinbox
default        = 50
minimum        = 0
maximum        = 5000
step           = 5
 
[AUTO SPRINT SETTINGS:]
color       = #008000
collapsible = 2
 
[Auto Sprint]
group          = true
shortdesc   = <font color="green">Easy sprint: hold left stick forward too sprint. Adjust reload delay for weapon so you don't sprint cancel reload. Adjust reload cancel the same as delay just incase anytime of reloading and enemy is near engage stick forward fast to get out of reloading.</font>
byteoffset     = 67
bitsize        = 1
bitoffset      = 7
control        = checkbox
default        = 1
item           =  Enable Easy Sprint
 
[Reload Delay]
group          = true
shortdesc      = <font color="brown">Reload Delay:<font color="green"> (In MS) length that it takes when you first press reload to when magazine clicks in weapon.
byteoffset     = 68
bitsize        = 16
control        = slider
default        = 2000
minimum        = 0
maximum        = 3500
step           = 5
 
[Reload Cancel]
group          = true
shortdesc      = <font color="brown">Reload Cancel:<font color="green"> (In MS) length of time you sprint cancel reloading in case needing break out to fire on enemy.
byteoffset     = 70
bitsize        = 16
control        = slider
default        = 2000
minimum        = 0
maximum        = 3500
step           = 5
 
[STRAFE SETTINGS:]
color       = #008000
collapsible = 2
 
[Strafe MODz]
group       = true
shortdesc   = <font color="green">Strafe option.</font>
byteoffset  = 115
bitsize     = 8
control     = radiobox
default     = 0
item        = Disabled
item        = Enabled Strafe (Adjustable)
item        = Enabled Strafe(Hip only)(Adjustable)
 
[Strafe Adjustable Setting]
group       = true
shortdesc   = <br><b><font color="green">Strafe Adjustable Setting:</font></b>
byteoffset  = 116
bitsize     = 32
control     = spinbox
default     = 200
minimum     = 0
maximum     = 2000
step        = 1
 
</cfgdesc>
***************************************************************************** */

 
#include <display.gph>
#define wait(a)  wait((int)a);
#define float  fix32
 
uint8 rapid_fire;
fix32 sps;
fix32 hold_time, rest_time;
uint8 bUseAntiRecoil;
float ARecoil_H;
float ARecoil_V;
uint16 ARecoilDelay;
float ARecoil_H2;
float ARecoil_V2;
uint16 ARecoilTimed;
float MinARecoilPercent;
float StickNoise;
//Aim Abuse
bool bUseAimAbuse = FALSE;
int AutoAimHoldTime;
int AutoAimReleaseTime;
int AutoAimFirePrePauseTime;
int AutoAimFirePostPauseTime;
bool bAutoAimPauseFire = FALSE;
bool sprint_toggle;
bool AimAssist;
//Turbo Melee
uint8 bUseTurboMelee = 2;
bool turboMelee = TRUE;
bool  fast_melee;
uint8   STRAFE_MODz;
uint32  STRAFE_SHUFFLE;
uint16 reload_cancel;
uint16 reload_delay;
init
{
    pmem_load();
    rapid_fire = pmem_read(0);
    pmem_read(1, &sps);
    printf("<center><font style='color:blue;font-size:14px;',><br>RAPID FIRE: %u", rapid_fire);
    update_rapidfire();
 
    bUseAntiRecoil = (pmem_read(10) >> 7) & 0b1;
    printf("<center><font style='color:red;font-size:14px;',><br>ANTI RECOIL: %d", bUseAntiRecoil);
    pmem_read(11, &MinARecoilPercent);
    pmem_read(15, &StickNoise);
    pmem_read(19, &ARecoilDelay);
    pmem_read(21, &ARecoil_V);
    pmem_read(25, &ARecoil_H);
    pmem_read(29, &ARecoilTimed);
    pmem_read(31, &ARecoil_V2);
    pmem_read(35, &ARecoil_H2);
    update_anti_recoil();
    AimAssist = (pmem_read(39) >> 7) & 0b1;
    bUseTurboMelee = pmem_read(54);
    bUseAimAbuse = (pmem_read(56) >> 7) & 0b1;
    pmem_read(57, &AutoAimHoldTime);
    pmem_read(59, &AutoAimReleaseTime);
    pmem_read(61, &AutoAimFirePrePauseTime);
    pmem_read(63, &AutoAimFirePostPauseTime);
    sprint_toggle = (pmem_read(67) >> 7) & 0b1;
    pmem_read(68, &reload_delay);
    pmem_read(70, &reload_cancel);
    STRAFE_MODz = pmem_read(115);
    pmem_read(116, &STRAFE_SHUFFLE);
}
 
main {
 
    // - RAPIDFIRE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if(get_actual(BUTTON_5)) {
    if (bAutoAimPauseFire == FALSE)
    {
        set_val(BUTTON_5, 100.0);
    if(rapid_fire == 1)
        combo_run(RapidFire);
    }
    }else combo_stop(RapidFire);
 
    if (bUseAntiRecoil)
    {
 
        if (abs(get_actual(STICK_1_X)) < StickNoise) set_val(STICK_1_X, 0.0);
        if (abs(get_actual(STICK_1_Y)) < StickNoise) set_val(STICK_1_Y, 0.0);
        if (abs(get_actual(STICK_2_X)) < StickNoise) set_val(STICK_2_X, 0.0);
        if (abs(get_actual(STICK_2_Y)) < StickNoise) set_val(STICK_2_Y, 0.0);
 
        if (event_active(BUTTON_5))
        {
            combo_run(recoil_compensation);
        }
        if(event_release(BUTTON_5))
        {
            combo_stop(recoil_compensation);
        }
    }
    if(AimAssist == 1)
    {
    if(get_val(BUTTON_8)&& !get_actual(BUTTON_5)) {
        combo_run(ARA);
    } else
    if(get_val(BUTTON_5)) {
        combo_run(ARAF);
    }
    if(is_active(STICK_1_X)){combo_stop(ARA);combo_stop(ARAF);}
    if(is_active(STICK_1_Y)){combo_stop(ARA);combo_stop(ARAF);}
    }
    if(turboMelee == 1)
    {
    if(bUseTurboMelee == 1)
        {
        if(fast_melee)
              {
            if(get_val(BUTTON_6))
                    {
                combo_run(TurboMelee);
 
            }else
                        {
                fast_melee = 0;
            }
            }else if(event_active(BUTTON_6) && time_release(BUTTON_6) < 140)
                        {
                fast_melee = 1;
            }
        }
    if(bUseTurboMelee == 2)
        {
          if(get_actual(BUTTON_6))
              {
            combo_run(TurboMelee);
 
        }else if(event_release(BUTTON_6))
                {
            combo_stop(TurboMelee);
        }
        if(event_active(BUTTON_6) && time_release(BUTTON_6) < 140)
                {
            fast_melee = !fast_melee;
 
        }else if(event_release(BUTTON_6) && time_active(BUTTON_6) <= 140)
                {
            fast_melee = !fast_melee;
        }
        if(fast_melee)
        {
            if(get_actual(BUTTON_6))
            {
                combo_stop(TurboMelee);
 
                set_val(BUTTON_6, 100.0);
 
            }else if(event_release(BUTTON_6))
                        {
                fast_melee = FALSE;
            }
        }
    }
    }
    if (bUseAimAbuse)
    {
        if (get_actual(BUTTON_8) && !get_actual(BUTTON_5))
        {
            combo_run(AimAbuse);
        }
        else
        {
            bAutoAimPauseFire = FALSE;
            combo_stop(AimAbuse);
        }
    }
    if(sprint_toggle)
    {
    if(get_actual(BUTTON_15))
    {
        combo_run(auto_slide);
 
    }
    // - SPRINT MOD - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if(get_val(STICK_2_Y) < -90.0) {
        combo_run(EasySprint);
    }
    if(get_actual(BUTTON_5) || get_actual(BUTTON_8) ||
       get_actual(BUTTON_4) || get_actual(BUTTON_7)) {
        combo_stop(EasySprint);
    }
    if(is_release(BUTTON_17) && time_active(BUTTON_17) <= reload_delay) {
        combo_stop(EasySprint);
    }
    if(is_active(STICK_2_Y) && time_active(STICK_2_Y) < reload_cancel)reload_delay = 0;
    }
    if(STRAFE_MODz == 1) {
    if(get_val(BUTTON_5)) {
        combo_run(strafe);
    }else if(event_release(BUTTON_5)) {
        combo_stop(strafe);
    }
    if(is_active(STICK_2_X) || is_active(STICK_2_Y)) {
        combo_stop(strafe);
    }
    }
    if(STRAFE_MODz == 2) {
    if((!get_val(BUTTON_8) && get_val(BUTTON_5)) || (event_release(BUTTON_8) && get_val(BUTTON_5))) {
        combo_run(strafe);
    }else if(event_release(BUTTON_5)) {
        combo_stop(strafe);
    }
    if(is_active(STICK_2_X) || is_active(STICK_2_Y)) {
        combo_stop(strafe);
    }
    }
}
 
combo RapidFire
{
    set_val(BUTTON_5, hold_time ? 100.0 : 0.0);
    wait(hold_time);
    set_val(BUTTON_5, rest_time ? 0.0 : 100.0);
    wait(rest_time);
    set_val(BUTTON_5, rest_time ? 0.0 : 100.0);
}
 
combo recoil_compensation
{
    wait(ARecoilDelay);
    AntiRecoil(STICK_1_X, ARecoil_H);
    AntiRecoil(STICK_1_Y, ARecoil_V);
    wait(ARecoilTimed);
    AntiRecoil(STICK_1_X, ARecoil_H2);
    AntiRecoil(STICK_1_Y, ARecoil_V2);
    wait(2000);
}
 
combo recoil_compensation2 {
  AntiRecoil(STICK_1_Y, 28.0);
  wait(450); // hold for 100 ms THIS IS MADDOX RECOIL COMPENSATION.
  AntiRecoil(STICK_1_Y, 28.0);
  wait(300); // hold for 100 ms
  AntiRecoil(STICK_1_Y, 16.0);
  wait(375); // hold for 20ms
  AntiRecoil(STICK_1_Y, 16.0)
  wait(350); // hold for 20ms
  AntiRecoil(STICK_1_Y, 16.00);
  wait(400);
  AntiRecoil(STICK_1_Y, 16.00);; // 15 right horizontal
  wait(375); // hold for 20ms
  AntiRecoil(STICK_1_Y, 16.00);
  wait(2000);
}
combo AimAbuse
{
    bAutoAimPauseFire = FALSE;
    set_val(BUTTON_8, 100);
    wait(AutoAimHoldTime - AutoAimFirePrePauseTime);
    bAutoAimPauseFire = TRUE;
    wait(AutoAimFirePrePauseTime);
    set_val(BUTTON_8, 0.0);
    wait(AutoAimReleaseTime);
    set_val(BUTTON_8, 100);
    wait(AutoAimFirePostPauseTime);   
}
 
combo ARA
{
    set_val(STICK_1_X, irand(25, 16));
    wait(20);
    set_val(STICK_1_Y, irand(25, 16));
    wait(20);
    set_val(STICK_1_X, irand(-25, -16));
    wait(20);
    set_val(STICK_1_Y, irand(-25, -16));
    wait(20);
}
combo ARAF
{
    set_val(STICK_1_X, irand(24, 16));
    wait(20);
    set_val(STICK_1_Y, irand(24, 16));
    wait(20);
    set_val(STICK_1_X, irand(-24, -16));
    wait(20);
    set_val(STICK_1_Y, irand(-24, -16));
    wait(20);
}
 
combo TurboMelee
{
    set_val(BUTTON_6, 100.0);
    wait(40);
    set_val(BUTTON_6, 0.0);
    wait(40);
    set_val(BUTTON_6, 0.0);
}
 
combo EasySprint
{
    set_val(BUTTON_9, 100.0);
    wait(40);
    set_val(BUTTON_9, 0.0);
    wait(40);
    set_val(BUTTON_9, 0.0);
    reload_delay = 2000;
}
 
combo auto_slide {
    set_val(BUTTON_9, 100.00);
    set_val(BUTTON_15, 100.00);
    wait(20);
    set_val(BUTTON_9, 0.00);
    set_val(BUTTON_15, 100.00);
    wait(20);
    set_val(BUTTON_9, 100.00);
    set_val(BUTTON_15, 100.00);
    wait(20);
    set_val(BUTTON_9, 0.00);
    set_val(BUTTON_15, 100.00);
}
 
combo strafe
{
    set_val(STICK_2_X, -100);
    wait(STRAFE_SHUFFLE/2);
    set_val(STICK_2_X, 100);
    wait(STRAFE_SHUFFLE);
    set_val(STICK_2_X, 100);
    set_val(STICK_2_X, -100);
    wait(STRAFE_SHUFFLE);
    set_val(STICK_2_X, 100);
    wait(STRAFE_SHUFFLE);
    set_val(STICK_2_X, 100);
    set_val(STICK_2_X, -100);
    wait(STRAFE_SHUFFLE/2);
    set_val(STICK_2_X, 100);
}
 
void update_rapidfire() {
    printf("<center><font style='color:blue;font-size:14px;',><br>SHOTS PER SECOND: %.04f", sps);
 
    hold_time = 500.0 / sps;
    rest_time = hold_time - 1.0;
    if(rest_time < 0.0) rest_time = 0.0;   
 
    return;
}
 
void update_anti_recoil(){
    printf("<center><font style='color:red;font-size:14px;',><br>VERTICAL RECOIL COMPENSATION: %.04f", ARecoil_V);
    printf("<center><font style='color:brown;font-size:14px;',><br>HORIZONTAL RECOIL COMPENSATION: %.04f", ARecoil_H);
    printf("<center><font style='color:red;font-size:14px;',><br>VERTICAL RECOIL COMPENSATION 2: %.04f", ARecoil_V2);
    printf("<center><font style='color:brown;font-size:14px;',><br>HORIZONTAL RECOIL COMPENSATION 2: %.04f", ARecoil_H2);
 
    return;
}
 
int irand(int vmin, int vmax) {
    return(((int)(rand() * (fix32)(vmax + 1 - vmin))) + vmin);
}
 
void AntiRecoil(uint8 AxisToApply, float ARecoilToApply)
{
    float CurrentX = get_val(STICK_1_X);
    float CurrentY = get_val(STICK_1_Y);
    float MinARecoilFactor = MinARecoilPercent / 100.0;
    float MinARecoilToApply = MinARecoilFactor * ARecoilToApply;
    //This sets the ARecoil to be dependent on both X and Y axis movement. With more emphasis on Y
    float MovementARecoilToApply = (1.0 - MinARecoilFactor) * ((ARecoilToApply * (100.0 - sqrt(CurrentX*CurrentX + CurrentY*CurrentY))) / (100.0 + abs(CurrentX) + (CurrentY*CurrentY*0.5)));
    set_val(AxisToApply,clamp(MinARecoilToApply + MovementARecoilToApply + get_val(AxisToApply),-100.00,100.00 - MinARecoilToApply));
}
User avatar
SweatyPapi
Sergeant Major
Sergeant Major
 
Posts: 89
Joined: Fri Feb 08, 2019 12:52 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby SweatyPapi » Fri Aug 23, 2019 7:43 am

alanmcgregor wrote:
SweatyPapi wrote:Why is it a closed script? and is it possible to add these scripts to it:

Explained earlier: viewtopic.php?f=23&t=12735&start=140#p88121

SweatyPapi wrote: and is it possible to add these scripts to it:

1. Auto Run
2. Auto Slide for BO4 like the one I inputted (for some reason with this script I keep crouching)
3. Strafe
4. Aim Assist (Don't have to if you don't want to)

All of these are on the script file I posted. Just to make it a better COD script as a whole

1, 2, 3. Can be added
4. Aim Assist is forcing Rightstick movement, which makes conflict with Anti-Recoil. Besides this script is meant for XIM users, we don't need "Aim Assist Mods" mods like that only hinders our aiming and makes it very hard to deal with the aim assist bubble contrary to joystick users (therefore its popularity on other scripts) where helps to get caught by the aim assist bubble.




Thanks for the explanation. That is actually a wonderful reason and valid point. With your script It felt perfect and allowed me to move my ADS accurately while using the Anti-Recoil. It didn't feel forced like controller Anti-Recoil which is a double negative for the xim due to AA bubble in BO4. Appreciate the great work ! I appreciate you and bonefish helping the community! All of the mods are great!


Perfect word for the aiming of this script with Anti-Recoil:

"Harmony" - Explains this script perfectly
User avatar
SweatyPapi
Sergeant Major
Sergeant Major
 
Posts: 89
Joined: Fri Feb 08, 2019 12:52 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby alanmcgregor » Fri Aug 23, 2019 4:00 pm

ycksy wrote:Don't blame you at all. This community would have been pretty dead this year without your contributions and many others you've listed previously in your credits. I almost exclusively use your scripts and Sachis or no ones at all.

I plan on getting back into a apex soon and trying this out on it. I haven't played in many months, but the new game modes may draw me back in.

Hopefully we get some more good FPS games soon, because I am really getting tired of console gaming.

Thanks man, I appreciated.

Yeah this was a very... kind of disappointing/boring year game for year isn't it?, devs trying to cash in on the BR genre, which takes time, and releasing incomplete rushed games because of that.

After seen this Script great acceptance from XIM users, I was on decide if making a Swift knive with generic mods so you can adapt this script for any game or, create separated specific script for a game with this AR, due its closed nature. But that will be a bit hard to support.

Then life knock on to door to take a new business, got shorted of time, and a family member health condition is very vulnerable so I kind of supporting two business and two families. (writing with the flu right now), but I'm not complain it, life is like that but... that's the reason I had been inactive with the support.
Image
User avatar
alanmcgregor
Major
Major
 
Posts: 838
Joined: Tue Mar 27, 2018 8:38 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby SweatyPapi » Sat Aug 24, 2019 1:43 am

Yeah that’s ended pretty bad.. another phase that nobody is talking about is the bubble that esports is creating which could take out a lot of titles that we know and love .

The true players on Xim understand that you guys have life’s outside of being a mod for us. People who don’t are just completely ignorant. I can’t understate how much I have learned from you guys. Get better and take your time man

Would I would do regarding the anti-recoil is provide the knowledge to a MOD that you know is always available for support. Then the learning from the community will be fluid, all while keeping the same confidentiality with the script.

But Alan, I cannot tell you How ground breaking this anti recoil is. I know you and a lot of the mods worked together to do it and speaking from a supporter perspective. I TRULY appreciate you guys! You guys have a passion that most toxic players do not . Most people want the easiest way when it’s the path to that answer that is the difference, not answer itself
User avatar
SweatyPapi
Sergeant Major
Sergeant Major
 
Posts: 89
Joined: Fri Feb 08, 2019 12:52 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby alanmcgregor » Sat Aug 24, 2019 10:23 pm

SweatyPapi wrote:"Harmony" - Explains this script perfectly

I like it!, for nickname :)

SweatyPapi wrote:But Alan, I cannot tell you How ground breaking this anti recoil is. I know you and a lot of the mods worked together to do it and speaking from a supporter perspective. I TRULY appreciate you guys! You guys have a passion that most toxic players do not . Most people want the easiest way when it’s the path to that answer that is the difference, not answer itself

Deep words man, respect. Thanks.

Well, I believe in the community and I'm very grateful with every experienced: J2Kbr, bonefisher, Scachi, pabloscripts, Buffy, Sillyasskid sky418, prototype who were very generous in sharing their knowledge with me and helping me to familiarize myself with the platform.

Although at the beginning, I had a pair of detractors and an altercation, however I have shown that I can write code on my own and my interest is not monetary, your donations have been a great incentive for me, that my work is valued.

The way I see things, my role is to be a facilitator, not all T2 users have the time or the way to invest to write their own codes, as well as those who write them we do not have the time, experience and gameplay knowledge of a specific game, so your feedback is equally valuable.

Well, had been said...
I will add the Strafe (with custom widespan)
I will take the slide you provide
Auto-Run, well that's is simple yet complicated routine. I mean I can't do a Auto-Run that works for all games, some games has its particular issues, like reloading or activating a ability, so I can't do one generic that will work with most games. I going to add like Sections with a subset of mods for specific games. In a way that you can have this script in several memory slots and enable via Interactive Configuration Interface only the mods you need for a specific game.

I will add a: Battlefield V, PUBG, WarFace, CoD section soon. :smile0203: :smile0517:
Image
User avatar
alanmcgregor
Major
Major
 
Posts: 838
Joined: Tue Mar 27, 2018 8:38 am

Re: Special Anti-Recoil for XIM4 and XIM Apex

Postby SweatyPapi » Sun Aug 25, 2019 4:01 pm

alanmcgregor wrote:
SweatyPapi wrote:"Harmony" - Explains this script perfectly

I like it!, for nickname :)

SweatyPapi wrote:But Alan, I cannot tell you How ground breaking this anti recoil is. I know you and a lot of the mods worked together to do it and speaking from a supporter perspective. I TRULY appreciate you guys! You guys have a passion that most toxic players do not . Most people want the easiest way when it’s the path to that answer that is the difference, not answer itself

Deep words man, respect. Thanks.

Well, I believe in the community and I'm very grateful with every experienced: J2Kbr, bonefisher, Scachi, pabloscripts, Buffy, Sillyasskid sky418, prototype who were very generous in sharing their knowledge with me and helping me to familiarize myself with the platform.

Although at the beginning, I had a pair of detractors and an altercation, however I have shown that I can write code on my own and my interest is not monetary, your donations have been a great incentive for me, that my work is valued.

The way I see things, my role is to be a facilitator, not all T2 users have the time or the way to invest to write their own codes, as well as those who write them we do not have the time, experience and gameplay knowledge of a specific game, so your feedback is equally valuable.

Well, had been said...
I will add the Strafe (with custom widespan)
I will take the slide you provide
Auto-Run, well that's is simple yet complicated routine. I mean I can't do a Auto-Run that works for all games, some games has its particular issues, like reloading or activating a ability, so I can't do one generic that will work with most games. I going to add like Sections with a subset of mods for specific games. In a way that you can have this script in several memory slots and enable via Interactive Configuration Interface only the mods you need for a specific game.

I will add a: Battlefield V, PUBG, WarFace, CoD section soon. :smile0203: :smile0517:



Awesome man! Just to let you know, the new Modern warfare coming out has double sprint. For COD I would add a generic Auto run, however the double sprint I wouldn't worry about until the games final release. the Timing can change.

Your MOD in MW Alpha is just too good.. the Recoil centers in MW AFTER you fire and the timing anti-recoil scripts I have used is great. This mod tears through AIM assist and I literally can challenge any gunfights. great to see it translate into the new COD.

Great work everyone! you guys rock!
User avatar
SweatyPapi
Sergeant Major
Sergeant Major
 
Posts: 89
Joined: Fri Feb 08, 2019 12:52 am

PreviousNext

Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 15 guests