-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwarzone recoil haxx
203 lines (150 loc) · 10.8 KB
/
warzone recoil haxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
------------------------------------------------------QUICKSTARTGUIDE------------------------------------------------------
---------------------------READ PLEASE---------------------------
--(-100). Please read tooltips and comments to understand code
--(-1). Please remember this is a simple no recoil script and can only move your mouse down vertically at a varying speed and horizontally one way.
--0. YOU CAN KEEP THE SCRIPT OPEN IN THE BACKGROUND(THIS PAGE) AND YOU CAN CHANGE SETTINGS. AFTER CHANGING SETTINGS PRESS "CTRL+S" TO SAVE AND IT WILL APPLY NEW VALUES
--1. Make sure you copied all of the script and you are not missing any "end"
--2. Press "CTRL+S"
--3. Press right click and leftclick, if your mouse moves down and you don't move it yourself. Congratulations the Script works
--4. You can now toggle HIGH recoil mode by pressing "CAPSLOK"/"scrolllock" check if you mouse goes down faster.(See Output log if it reads: "HIGH_Recoil=true", it is in highrecoil mode)
--5. You can now Toggle the script off completely by pressing "NUMLOK"
--6. You can change these two binds in the "BINDS" section of the script, do as the script says.
--7. If you want to change the speed of norecoil, Use simple settings: REEcoil=1000 and change it. Otherwise change these values(NoRecoilMin,NoRecoilMax,SleepNRMin,SleepNRMax,NoRecoilMinHIGH,NoRecoilMaxHIGH,SleepNRMinHIGH,SleepNRMaxHIGH)
--7,1. if you don't want random numbers just choose the same numbers in max and min
--7,2. Seettings are arranged in min and max, this means means, that you roll values inbetween your max and min value, this hopefully makes the script seem at bit more legit.
--11.If you want to change the Trigger speed of Rapidfire and RapidfireHIGH, change these values(PressSpeedMin, PressSpeedMax,NoRecoilRFMin,NoRecoilRFMax,SleepNRFMin,SleepNRFMax, and so on)
--12. If you wanna change binds like rapidfire or your ping button go to "BINDS" section, follow instructions.
--13. if you wanna remove Rapidfire go to "MAGIC AND WOODOO" and delete--"elseif IsMouseButtonPressed(Rapidfirebutton) then Autotag() RapidFire()"
--14. if you want the script to only tag enemies when you shoot delete this-- "NoRecoil() elseif IsMouseButtonPressed(Rapidfirebutton) then Autotag() RapidFire()" and Input 1000 to AUTOTAGONLY, Like this: "AUTOTAGONLY=1000"
--15. if you want to autotag faster or slower change(AltPressSpeedMin,AltPressSpeedMax,InBetweenSpeedMin,InBetweenSpeedMax)
--16. to delete Script delete everyuthiong in here and close the editor
--17.That's pretty much all if you got questions just write in the thread: https://www.unknowncheats.me/forum/call-of-duty-modern-warfare/394411-logitech-warzone-recoil-auto-tag-rapid-fire-lua-script.html?posted=1#post2800455
--#!)#¤U)(%?. heard something about keeping values local as sort of an etiquette for coders, velp sorry if all the global values hurts your eyes.
------------------------------------------------------SETTINGS AND VALUES------------------------------------------------------
----------------------------------------------Simple settings----------------------------------------------
--Adjust for more or less recoil
--1000 is default, 2000 is double as fast, 500 is half as fast and 2547 is 2.547 times as fast
REEcoil=1000 --<Change that if recoil is too much or too little
-----------------------------------------------------------------------------------------------------------------
----------------------------------------------Not so Advanced, advanced Settings----------------------------------------------
---------------------------NoRecoil---------------------------
-----------------tuned for MP7-----------------
NoRecoilMin=1 --Change this <-this is how long you mouse travels from one loop/rotation of the noracoil function
NoRecoilMax=3 --Change this
HorizontalRecoilModifier=0 --try this if your gun only moves to one side, I will not be making profiles for this script, but you can keep it open and change values for each gun when in game.
SleepNRMin=9 --Change this <-this is how long between loops, both make your mouse go faster downwards
SleepNRMax=18 --Change this
---------------------------NoRecoilHIGH---------------------------
-----------------tuned for AUG/Oden-----------------
NoRecoilMinHIGH=1 --Change this <-this is how long you mouse travels from one loop/rotation of the noracoil function
NoRecoilMaxHIGH=3 --Change this
HorizontalRecoilModifierHIGH=0 --try this if your gun only moves to one side, I will not be making profiles for this script, but you can keep it open and change values for each gun when in game.
SleepNRMinHIGH=4 --Change this <-this is how long between loops, both make your mouse go faster downwards
SleepNRMaxHIGH=12 --Change this
---------------------------Tagging settings(ms)--------------------------- this is also a recoil predelay, the longer this takes, the longer it takes for your no recoil to start
AltPressSpeedMin=20 --Change this
AltPressSpeedMax=60 --Change this <-this is the delay between pressing and releasing the alt button
InBetweenSpeedMin=20 --Change this <-this is the delay between button presses
InBetweenSpeedMax=80 --Change this
AUTOTAGONLY=0 -- Change this to add delay to when you AutoTag, only do this if you want predelay for Norecoil and Rapidfire or if you only use AutoTag.
---------------------------Rapidfire---------------------------
-----------------tuned for FAL/Pistol-----------------
PressSpeedMin=10 --Change this <-this is the delay between pressing and releasing left click
PressSpeedMax=60 --Change this
NoRecoilRFMin=6 --Change this <-this is recoil reduction
NoRecoilRFMax=14 --Change this
SleepNRFMin=45 --Change this <-this is the delay between clicks
SleepNRFMax=185 --Change this
---------------------------RapidfireHIGH---------------------------
-----------------tuned for Famas-----------------
PressSpeedMinHIGH=10 --Change this <-this is the delay between pressing and releasing left click
PressSpeedMaxHIGH=60 --Change this
NoRecoilRFMinHIGH=11 --Change this <-this is recoil reduction
NoRecoilRFMaxHIGH=20 --Change this
SleepNRFMinHIGH=45 --Change this <-this is the delay between clicks
SleepNRFMaxHIGH=185 --Change this
------------------------------------------------------BINDS------------------------------------------------------
--Enable/Disable, only scrollock capslock and numlock work for this bind: "scrolllock", "capslock", "numlock", you canalso delete: " if IsKeyLockOn(LockKey)then ", if you want it all at all times.
LockKey="numlock"
--LowRecoil/HighRecoil, only scrollock capslock and numlock work for this bind: "scrolllock", "capslock", "numlock",/
--Toggle
REcoilHIGHTogggle= "scrolllock"
--Norecoil bind Im too lazy to make an alternative bind to keyboard, if you ask nicely and i have time i might do it for you.
LC=1 --Left click 1 is the click type this means 3 will be right click(Only works for mousebuttons)
RC=3 --right click
--Tagbind, should work for all keyboard buttons, remember to use left or right for modifiers: "lalt", "lshift"
Autotagmfer="lalt"
--Rapidfirebind
LCRF=1 --just leftclick
Rapidfirebutton=4 -- tis my forward key for thumb use, tried to make arg events work to give more keybind possibilities, but i always found they had a weird delay/rythm to them making them unreliable.
---------------------------Stupid math, please don't touch---------------------------
Sensrelative=REEcoil/1000
------------------------------------------------------FUNCTIONS------------------------------------------------------
--don't see any reason why you should touch anything below this point, but be my guest.
EnablePrimaryMouseButtonEvents(true);
function RapidFire()
if (HIGH_Recoil==false) then
repeat
PressMouseButton(LCRF)
Sleep(math.random(PressSpeedMin,PressSpeedMax))
ReleaseMouseButton(LCRF)
MoveMouseRelative(0,math.random(NoRecoilRFMin,NoRecoilRFMax)*Sensrelative)
Sleep(math.random(SleepNRFMin,SleepNRFMax))
MoveMouseRelative(0,math.random(NoRecoilRFMin,NoRecoilRFMax)*Sensrelative/2)
until not IsMouseButtonPressed(Rapidfirebutton)
else
repeat
PressMouseButton(LCRF)
Sleep(math.random(PressSpeedMinHIGH,PressSpeedMaxHIGH))
ReleaseMouseButton(LCRF)
MoveMouseRelative(0,math.random(NoRecoilRFMinHIGH,NoRecoilRFMaxHIGH)*Sensrelative)
Sleep(math.random(SleepNRFMinHIGH,SleepNRFMaxHIGH))
MoveMouseRelative(0,math.random(NoRecoilRFMinHIGH,NoRecoilRFMaxHIGH)*Sensrelative/2)
until not IsMouseButtonPressed(Rapidfirebutton)
end
end
function Autotag()
PressKey(Autotagmfer)
Sleep(math.random(AltPressSpeedMin,AltPressSpeedMax))
ReleaseKey(Autotagmfer)
Sleep(math.random(InBetweenSpeedMin,InBetweenSpeedMax))
PressKey(Autotagmfer)
Sleep(math.random(AltPressSpeedMin,AltPressSpeedMax))
ReleaseKey(Autotagmfer)
Sleep(AUTOTAGONLY)
end
function NoRecoil()
if (HIGH_Recoil==false) then
repeat
MoveMouseRelative(HorizontalRecoilModifier,math.random(NoRecoilMin,NoRecoilMax)*Sensrelative)
Sleep(math.random(SleepNRMin,SleepNRMax))
until not IsMouseButtonPressed(LC)
else
repeat
MoveMouseRelative(HorizontalRecoilModifierHIGH,math.random(NoRecoilMinHIGH,NoRecoilMaxHIGH)*Sensrelative)
Sleep(math.random(SleepNRMinHIGH,SleepNRMaxHIGH))
until not IsMouseButtonPressed(LC)
end
end
------------------------------------------------------MAGIC AND WOODOO------------------------------------------------------
function OnEvent(event, arg)
--HIGHRecoiltoggle on/off
if IsKeyLockOn(REcoilHIGHTogggle)then
HIGH_Recoil=true
else
HIGH_Recoil=false
end
if IsKeyLockOn(LockKey)then --This toggles Recoil on/off
if IsMouseButtonPressed(RC)then --Loop for ADS. Primes Norecoil, Autotag and rapidfire
repeat
if IsMouseButtonPressed(LC) then --Norecoil
Autotag()
NoRecoil()
elseif IsMouseButtonPressed(Rapidfirebutton) then --Rapidfire
Autotag()
RapidFire()
end
until not IsMouseButtonPressed(RC) --end of Priming loop
end
end
end