Anti-Recoil Utility

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

Re: Anti-Recoil Utility

Postby alanmcgregor » Mon Apr 08, 2019 7:33 pm

BlessUp wrote:Love the script thank you for all the hard work I did have one question though.

Is there a reason you cant change Anti Recoil Delay to zero appears minimum value Is 10

Script reassures to prepare the dead-zone when adding any amount of recoil compensation for proper micro-movement performance. 10 is the lowest value. I do prefer 20 actually.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: Anti-Recoil Utility

Postby BlessUp » Thu Apr 11, 2019 8:16 am

Do you have any recommended values for pubg? Just a ballpark starting area.
User avatar
BlessUp
Master Sergeant
Master Sergeant
 
Posts: 40
Joined: Fri May 22, 2015 12:18 am

Re: Anti-Recoil Utility

Postby alanmcgregor » Fri Apr 12, 2019 4:57 pm

Sorry dude, I don't have PUBG. Hope someone else chime in.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: Anti-Recoil Utility

Postby gasknr » Mon Apr 15, 2019 3:14 am

What does the feature below mean? I am not entirely sure..

"percentage of anti recoil to always apply, regardless of aim movement"
User avatar
gasknr
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Sun Dec 03, 2017 12:29 am

Re: Anti-Recoil Utility

Postby alanmcgregor » Mon Apr 15, 2019 5:05 pm

gasknr wrote:What does the feature below mean? I am not entirely sure..

"percentage of anti recoil to always apply, regardless of aim movement"


Exactly that.

Handling recoil compensation (doing anti-recoil) is manually moving the right stick to compensate recoil, this means also that by doing so you can't aim as freely. People tends to think on anti-recoils scripts work like if they were a in-game perk/addon that reduce recoil while keeping free aim control, this is not true.

Anti-Recoil Scripts what the do is like having a helping hand doing those recoil compensation corrections subtle and precise for you. So this setting is pretty much how "strong" or present you want that helping hand.

Some games requires more some less.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: Anti-Recoil Utility

Postby ycksy » Mon Apr 15, 2019 5:08 pm

alanmcgregor wrote:I going to add a "Select Device: option:
(_) Controller.
(o) Numeric Keypad.

So Numeric keypad users can disable controller toggles (combos for select from a controller). :smile0517:



This is where I really got interested in this script. I love the quick binding options, but curious Is there any specific reason not to have the number pad option changed to include an input mapping like your pro apex script? Would feel better to simply map those binds to 1 2 3 4 or etc? for keybord users. I feel like hitting 1 on another keypad is harder than hitting 0 on the keypad I am playing on, and that is the hardest number to hit. That would allow both number pads and keyboard and pretty much any device I would think as long as it's plugged directly to the titan.
User avatar
ycksy
First Sergeant
First Sergeant
 
Posts: 43
Joined: Tue Aug 28, 2018 3:07 pm

Re: Anti-Recoil Utility

Postby alanmcgregor » Mon Apr 15, 2019 7:38 pm

All the Titan Two persistent memory is occupied, there is no room for custom keys mapping like the Apex.

I could make it with custom key mapping but it will sacrifice a feature: AutoSave and Adjust memory on-fly.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: Anti-Recoil Utility

Postby DontAtMe » Tue Apr 16, 2019 4:51 am

alanmcgregor wrote:All the Titan Two persistent memory is occupied, there is no room for custom keys mapping like the Apex.

I could make it with custom key mapping but it will sacrifice a feature: AutoSave and Adjust memory on-fly.

I took a look at how many bytes you were using in the Anti-Recoil Utility Script, and I noticed a lot your pmem was taken up by variables occupying 32 bits.

I was able to free up 47 bytes (3, 4, 5, 8, 9, 12, 13, 16, 17, 20, 21, 24, 25, 28, 29, 32, 33, 36, 37, 40, 41, 44, 45, 48, 49, 52, 53, 56, 57, 60, 61, 64, 65, 68, 69, 72, 73, 76, 77, 80, 81, 84, 85, 110, 111, 116 and 117).
This should be well more then enough to implement custom key mappings.

Code: Select all
/*<cfgdesc>
[ANTI-RECOIL SCRIPT UTILITY]
color        = #006666
shortdesc    = <b>FEATURES</b>:<br>+ 10 Slots for Custom Anti-Recoil.<br>+ Numeric Keypad support added.<br>+ Adjust Vertical and Horizontal Anti-Recoil on Fly.<br>+ Display Info at Device Monitor.<br>+ Auto Save.<br>+ Anti-Recoil at: Hip, ADS or Hip + ADS.<br>+ Custom Rapid Fire.<br><br><u>TURN ON/OFF SCRIPT</u>: <br>CONTROLLER: HOLD <b>(TouchPad|View)</b>, PRESS <b>(PS|XBOX)</b>, RELEASE <b>(TouchPad|View)</b><br>NUMERIC KEYPAD: Press <b>* Asterisk</b> Key<br><br><b>Credits and Special Thanks to</b>: <br><span style="color: #009933;"><b>AryanX</b></span>, <span style="color: #009933;"><b>bonefisher</b></span>, <span style="color: #009933;"><b>mpalpha</b></span> for its contribution to this script.
control        = info
 
[Select your Device]
color        = #006666
shortdesc    = Choose your preferred device to activate mods and slot selection:
byteoffset    = 112
bitsize     = 8
control        = radiobox
default        = 0
item         = Console Controller
item         = Numeric Keypad
 
[Anti-Recoil]
color        = #006666
shortdesc    = <<<MULTILINE
Drag free Anti-Recoil design for <b>XIM APEX</b>.
 
<b>Controller:</b>
<b>In-game ON/OFF:</b>
Hold <b>(TouchPad|View)</b>
Press <b>(L2|LT)</b>
Release <b>(TouchPad|View)</b>
 
<b>Numeric Keypad:</b>
Press <b>+</b> (Plus) Key
 
For tuning recoil compensation in-game: Click Below.
MULTILINE
byteoffset    = 0
bitsize        = 8
control        = combobox
default        = 1
item        = Disabled
item        = Hip Fire
item        = Aiming Down Sight
item         = Hip + ADS
 
[Optional ADS Anti-Recoil Percent]
color        = #006666
shortdesc    = <<<MULTILINE
<b>Exclusive for HIP + ADS Anti-Recoil Option</b>.
Most games introduce lower recoil when ADS than HIP fire.
 
Set a lower % of HIP antirecoil for your ADS.
 
100% = Same as HIP.
50%  = Half as HIP.
30%  = 30% of HIP.
 
Want my ADS AntiRecoil be % than my HIP:
MULTILINE
byteoffset    = 114
bitsize     = 16
control        = spinboxf
default        = 10000
minimum        = 1000
maximum        = 10000
step        = 10
decimals    = 2
 
[Stick Noise - Deadzone Remover]
color        = #006666
shortdesc     = <<<MULTILINE
Default value 6.32
For a more accurate tuning: Check <b>Device Monitor</b> on GTuner.
Set this value to the MAX value of your thumbstick resting position.
MULTILINE
byteoffset    = 1
bitsize        = 16
control        = spinboxf
default        = 632
minimum        = 0
maximum        = 2000
step        = 1
decimals     = 2
 
[Anti-Recoil Delay]
color        = #006666
shortdesc    = Time before recoil compensation kicks-in
byteoffset    = 106
bitsize     = 16
control        = spinbox
default        = 75
minimum        = 10
maximum        = 300
step        = 5
 
 
[Minimum Anti-Recoil Percent]
color        = #006666
shortdesc    = Percent of Anti-Recoil to always apply regardless of aim movement, lowered if drift is present.
byteoffset    = 108
bitsize     = 16
control        = spinboxf
default        = 1500
minimum        = -5000
maximum        = 10000
step        = 1
decimals    = 2
 
[Slot Selection on-fly]
color        = #006666
shortdesc    = <<<MULTILINE
 
<b>Using a Controller:</b>
<b>For Slots 1 to 5:</b>
Hold (<b>Circle|B</b>)
Press (<b>Slot Button</b>). <i>eg Up D-Pad for Slot 1</i>
Release (<b>Circle|B</b>)
 
<b>For Slots 6 to 10:</b>
Hold (<b>L2|LT</b>)
Press (<b>Slot Button</b>). <i>eg Up D-Pad for Slot 1</i>
Release (<b>L2|LT</b>)
 
<b>Using Numeric Keypad</b>
Press the Key indicated next.
 
<b>Titan Two</b> Display will show the current Slot Number.
MULTILINE
control        = info
 
[Rapid-Fire]
color        = #990000
shortdesc    = <<<MULTILINE
<b>Automatic shooting mode</b>, while Fire button is held down.
 
Turn ON/OFF Rapid-Fire for each slot next.
MULTILINE
control        = info
 
[SLOT 1 =  NUMPAD KEY1 or Hold (Circle|B) Press (UP D-Pad)]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 6
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 1 Horizontal Recoil Compensation]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 46
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 1 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 118
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 1 - Rapid-Fire Hold Time]
color        = #990000
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 86
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 1 - Rapid-Fire Release Time]
color        = #990000
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 96
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 2 = NUMPAD KEY2 or Hold (Circle|B) Press (DOWN D-Pad)]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 10
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 2 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 50
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 2 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 119
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 2 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 87
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 2 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 97
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 3 = NUMPAD KEY3 or Hold (Circle|B) Press (LEFT D-Pad)]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 14
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 3 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 54
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 3 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 120
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 3 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 88
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 3 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 98
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 4 = NUMPAD KEY4 or Hold (Circle|B) Press RIGHT D-Pad]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 18
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 4 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 58
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 4 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 121
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 4 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 89
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 4 Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 99
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 5 = NUMPAD KEY5 or Hold (Circle|B) Press SQUARE|X]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 22
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 5 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 62
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 5 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 122
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 5 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 90
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 5 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 100
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 6 = NUMPAD KEY6 or Hold (L2|LT) Press UP D-Pad]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 26
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 6 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 66
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 6 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 123
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 6 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 91
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 6 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 101
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 7 = NUMPAD KEY7 or Hold (L2|LT) Press DOWN D-Pad]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 30
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 7 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 70
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 7 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 124
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 7 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 92
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 7 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 102
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 8 = NUMPAD KEY8 or Hold (L2|LT) Press LEFT D-Pad]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 34
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 8 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 74
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 8 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 125
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 8 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 93
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 8 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 103
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 9 = NUMPAD KEY9 or Hold (L2|LT) Press RIGHT D-Pad]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 38
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
[SLOT 9 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 78
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 9 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 126
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 9 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 94
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 9 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 104
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[SLOT 10 = NUMPAD KEY0 or Hold (L2|LT) Press SQUARE|X]
color        = #006666
shortdesc    = Vertical recoil compensation
byteoffset    = 42
bitsize     = 16
control        = spinboxf
default        = 3000
minimum        = -10000
maximum        = 10000
step        = 1
decimals    = 2
 
 
[SLOT 10 Recoil H]
color        = #006666
group         = true
shortdesc    = Horizontal Recoil Compensation.
byteoffset    = 82
bitsize     = 16
control        = spinboxf
default        = 0
minimum        = -10000
maximum        = 10000
step        = 1
decimals     = 2
 
[SLOT 10 - Rapid-Fire]
collapsible = 2
color        = #990000
shortdesc    = Automatic shooting mode for this anti-recoil slot.
byteoffset    = 127
bitsize        = 8
control        = radiobox
default        = 0
item        = OFF
item        = ON
 
[SLOT 10 - Rapid-Fire Hold Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Hold Time
byteoffset    = 95
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 240
step        = 1
 
[SLOT 10 - Rapid-Fire Release Time]
color        = #006666
group         = true
shortdesc    = Rapid-Fire Release Time
byteoffset    = 105
bitsize     = 8
control        = slider
default        = 40
minimum        = 10
maximum        = 100
step        = 1
 
[In-Game Anti-Recoil Tunnig]
collapsible = 2
color        = #006666
shortdesc    = <<<MULTILINE
Anti-Recoil can be adjust in-game, as follows:
<i>Hold</i> <b>(TouchPad|View)</b> for fine tunning
OR
<i>Hold</i> <b>(Options)</b> for quick tunning
 
Then,
 
<b>Vertical Adjustment</b>
 
<i>Press</i> <b>Down D-Pad</b> to <b>ADD</b> Vertical Anti-Recoil, crosshair goes &#8595;
<b>OR</b>
<i>Press</i> <b>Up D-Pad</b> to <b>REMOVE</b> Vertical Anti-Recoi, crosshair goes &#8593;
 
<b>Horizontal Adjustment</b>
 
<i>Press</i> <b>Left D-Pad</b> to <b>MOVE</b> crosshair to the left &#8592;
<b>OR</b>
<i>Press</i> <b>Right D-Pad</b> to <b>MOVE</b> crosshair to the right &#8594;
 
<i>Press</i> <b>(Square|X)</b> to <b>RESET</b> Vertical and Horizontal Anti-Recoil
<i>Release</i> <b>(TouchPad|View)</b> or <b>(L3|LS)</b> when finish.
 
MULTILINE
byteoffset     = 113
bitsize     = 1
bitoffset     = 1
control        = checkbox
default     = 1
item         = Enable Adjust Anti-Recoil on Fly
</cfgdesc>*/

 
#define fix32(a)int a;fix32 fix32_##a
fix32(ads_ar_recoil_percent);
fix32(stick_noise);
fix32(ar_recoil_percent);
fix32(s1_vertical_recoil);
fix32(s1_horizontal_recoil);
fix32(s2_vertical_recoil);
fix32(s2_horizontal_recoil);
fix32(s3_vertical_recoil);
fix32(s3_horizontal_recoil);
fix32(s4_vertical_recoil);
fix32(s4_horizontal_recoil);
fix32(s5_vertical_recoil);
fix32(s5_horizontal_recoil);
fix32(s6_vertical_recoil);
fix32(s6_horizontal_recoil);
fix32(s7_vertical_recoil);
fix32(s7_horizontal_recoil);
fix32(s8_vertical_recoil);
fix32(s8_horizontal_recoil);
fix32(s9_vertical_recoil);
fix32(s9_horizontal_recoil);
fix32(s10_vertical_recoil);
fix32(s10_horizontal_recoil);
#undef fix32
 
uint8
device,
ar_type,
s1_rf,
s1_hold,
s1_release,
s2_rf,
s2_hold,
s2_release,
s3_rf,
s3_hold,
s3_release,
s4_rf,
s4_hold,
s4_release,
s5_rf,
s5_hold,
s5_release,
s6_rf,
s6_hold,
s6_release,
s7_rf,
s7_hold,
s7_release,
s8_rf,
s8_hold,
s8_release,
s9_rf, s9_hold,
s9_release,
s10_rf,
s10_hold,
s10_release,
ar_on_the_fly;
 
uint16
ar_delay;
 
init{
  pmem_load();
 
// Select your Device
  pmem_read(112, &device);
 
// Anti-Recoil
  pmem_read(0, &ar_type);
 
// Optional ADS Anti-Recoil Percent
  pmem_read(114, &ads_ar_recoil_percent);
  fix32_ads_ar_recoil_percent = (fix32)ads_ar_recoil_percent/256f;
#define ads_ar_recoil_percent fix32_ads_ar_recoil_percent
 
// Stick Noise - Deadzone Remover
  pmem_read(1, &stick_noise);
  fix32_stick_noise = (fix32)stick_noise/256f;
#define stick_noise fix32_stick_noise
 
// Anti-Recoil Delay
  pmem_read(106, &ar_delay);
 
// Minimum Anti-Recoil Percent
  pmem_read(108, &ar_recoil_percent);
  fix32_ar_recoil_percent = (fix32)ar_recoil_percent/256f;
#define ar_recoil_percent fix32_ar_recoil_percent
 
// Slot 1 Recoil
  pmem_read(6, &s1_vertical_recoil);
  fix32_s1_vertical_recoil = (fix32)s1_vertical_recoil/256f;
  pmem_read(46, &s1_horizontal_recoil);
  fix32_s1_horizontal_recoil = (fix32)s1_horizontal_recoil/256f;
#define s1_horizontal_recoil fix32_s1_horizontal_recoil
 
// Slot 1 Rapid Fire
  pmem_read(118, &s1_rf);
  pmem_read(86,  &s1_hold);
  pmem_read(96,  &s1_release);
 
// Slot 2 Recoil
  pmem_read(10, &s2_vertical_recoil);
  fix32_s2_vertical_recoil = (fix32)s2_vertical_recoil/256f;
  pmem_read(50, &s2_horizontal_recoil);
  fix32_s2_horizontal_recoil = (fix32)s2_horizontal_recoil/256f;
#define s2_horizontal_recoil fix32_s2_horizontal_recoil
 
// Slot 2 Rapid Fire
  pmem_read(119, &s2_rf);
  pmem_read(87,  &s2_hold);
  pmem_read(97,  &s2_release);
 
// Slot 3 Recoil
  pmem_read(14, &s3_vertical_recoil);
  fix32_s3_vertical_recoil = (fix32)s3_vertical_recoil/256f;
  pmem_read(54, &s3_horizontal_recoil);
  fix32_s3_horizontal_recoil = (fix32)s3_horizontal_recoil/256f;
#define s3_horizontal_recoil fix32_s3_horizontal_recoil
 
// Slot 3 Rapid Fire
  pmem_read(120,&s3_rf);
  pmem_read(88,&s3_hold);
  pmem_read(98,&s3_release);
 
// Slot 4 Recoil
  pmem_read(18,&s4_vertical_recoil);
  fix32_s4_vertical_recoil = (fix32)s4_vertical_recoil/256f;
  pmem_read(58,&s4_horizontal_recoil);
  fix32_s4_horizontal_recoil = (fix32)s4_horizontal_recoil/256f;
#define s4_horizontal_recoil fix32_s4_horizontal_recoil
 
// Slot 4 Rapid Fire
  pmem_read(121,&s4_rf);
  pmem_read(89,&s4_hold);
  pmem_read(99,&s4_release);
 
// Slot 5 Recoil
  pmem_read(22,&s5_vertical_recoil);
  fix32_s5_vertical_recoil = (fix32)s5_vertical_recoil/256f;
  pmem_read(62,&s5_horizontal_recoil);
  fix32_s5_horizontal_recoil = (fix32)s5_horizontal_recoil/256f;
#define s5_horizontal_recoil fix32_s5_horizontal_recoil
 
// Slot 5 Rapid Fire
  pmem_read(122,&s5_rf);
  pmem_read(90,&s5_hold);
  pmem_read(100,&s5_release);
 
// Slot 6 Recoil
  pmem_read(26,&s6_vertical_recoil);
  fix32_s6_vertical_recoil = (fix32)s6_vertical_recoil/256f;
  pmem_read(66,&s6_horizontal_recoil);
  fix32_s6_horizontal_recoil = (fix32)s6_horizontal_recoil/256f;
#define s6_horizontal_recoil fix32_s6_horizontal_recoil
 
// Slot 6 Rapid Fire
  pmem_read(123,&s6_rf);
  pmem_read(91,&s6_hold);
  pmem_read(101,&s6_release);
 
// Slot 7 Recoil
  pmem_read(30,&s7_vertical_recoil);
  fix32_s7_vertical_recoil = (fix32)s7_vertical_recoil/256f;
  pmem_read(70,&s7_horizontal_recoil);
  fix32_s7_horizontal_recoil = (fix32)s7_horizontal_recoil/256f;
#define s7_horizontal_recoil fix32_s7_horizontal_recoil
 
// Slot 7 Rapid Fire
  pmem_read(124,&s7_rf);
  pmem_read(92,&s7_hold);
  pmem_read(102,&s7_release);
 
// Slot 8 Recoil
  pmem_read(34,&s8_vertical_recoil);
  fix32_s8_vertical_recoil = (fix32)s8_vertical_recoil/256f;
  pmem_read(74,&s8_horizontal_recoil);
  fix32_s8_horizontal_recoil = (fix32)s8_horizontal_recoil/256f;
#define s8_horizontal_recoil fix32_s8_horizontal_recoil
 
// Slot 8 Rapid Fire
  pmem_read(125,&s8_rf);
  pmem_read(93,&s8_hold);
  pmem_read(103,&s8_release);
 
// Slot 9 Recoil
  pmem_read(38,&s9_vertical_recoil);
  fix32_s9_vertical_recoil = (fix32)s9_vertical_recoil/256f;
  pmem_read(78,&s9_horizontal_recoil);
  fix32_s9_horizontal_recoil = (fix32)s9_horizontal_recoil/256f;
#define s9_horizontal_recoil fix32_s9_horizontal_recoil
 
// Slot 9 Rapid Fire
  pmem_read(126,&s9_rf);
  pmem_read(94,&s9_hold);
  pmem_read(104,&s9_release);
 
// Slot 10 Recoil
  pmem_read(42,&s10_vertical_recoil);
  fix32_s10_vertical_recoil = (fix32)s10_vertical_recoil/256f;
  pmem_read(82,&s10_horizontal_recoil);
  fix32_s10_horizontal_recoil = (fix32)s10_horizontal_recoil/256f;
#define s10_horizontal_recoil fix32_s10_horizontal_recoil
 
// Slot 10 Rapid Fire
  pmem_read(127,&s10_rf);
  pmem_read(95,&s10_hold);
  pmem_read(105,&s10_release);
 
//In-Game Anti-Recoil Tunnig
  ar_on_the_fly = (pmem_read(113)>>1)&1;
 
// Test 
  printf("ADS Anti-Recoil Percent = %.2f", ads_ar_recoil_percent);
  printf("Stick Noise = %.2f", stick_noise);
  printf("Minimum Anti-Recoil Percent = %.2f", ar_recoil_percent);
  printf("ar_on_the_fly = %d", ar_on_the_fly);
}
User avatar
DontAtMe
Captain
Captain
 
Posts: 502
Joined: Tue Oct 02, 2018 4:49 am

Re: Anti-Recoil Utility

Postby ycksy » Tue Apr 16, 2019 2:31 pm

Ah, I think you may have mentioned this before; I remember now. Thanks.
User avatar
ycksy
First Sergeant
First Sergeant
 
Posts: 43
Joined: Tue Aug 28, 2018 3:07 pm

Re: Anti-Recoil Utility

Postby alanmcgregor » Tue Apr 16, 2019 4:24 pm

ycksy wrote:Ah, I think you may have mentioned this before; I remember now. Thanks.


Maybe in the update :) is a good question anyways.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

PreviousNext

Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 47 guests