-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathNoRecoil-V2.lua
71 lines (57 loc) · 2.32 KB
/
NoRecoil-V2.lua
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
--[[
:::!~!!!!!:.
.xUHWH!! !!?M88WHX:.
.X*#M@$!! !X!M$$$$$$WWx:.
:!!!!!!?H! :!$!$$$$$$$$$$8X:
!!~ ~:~!! :~!$!#$$$$$$$$$$8X:
:!~::!H!< ~.U$X!?R$$$$$$$$MM!
~!~!!!!~~ .:XW$$$U!!?$$$$$$RMM!
!:~~~ .:!M"T#$$$$WX??#MRRMMM!
~?WuxiW*` `"#$$$$8!!!!??!!!
:X- M$$$$ `"T#$T~!8$WUXU~
:%` ~#$$$m: ~!~ ?$$$$$$
:!`.- ~T$$$$8xx. .xWW- ~""##*"
..... -~~:<` ! ~?T#$$@@W@*?$$ /`
W$@@M!!! .!~~ !! .:XUW$W!~ `"~: :
#"~~`.:x%`!! !H: !WM$$$$Ti.: .!WUn+!`
:::~:!!`:X~ .: ?H.!u "$$$B$$$!W:U!T$$M~
.~~ :X@!.-~ ?@WTWo("*$$$W$TH$! `
Wi.~!X$?!-~ : ?$$$B$Wu("**$RM!
$R@i.~~ ! : ~$$$$$B$$en:``
?MXT@Wx.~ : ~"##*$$$$M~
--~~SecHex's no Recoil Tool~~ -> https://github.com/SecHex
--]]
-- <===============~~Recoil Presets~~===============>
local recoilPresets = {
{strength = 4, horizontalStrength = 0, description = "low"},
{strength = 6, horizontalStrength = 1, description = "medium"},
{strength = 8, horizontalStrength = 2, description = "high"}
}
local selectedPresetIndex = 1
local noRecoilEnabled = true
-- <===============~~Functions~~===============>
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %s\n", event, arg)
if (event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true)
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 7) then
noRecoilEnabled = not noRecoilEnabled
if (noRecoilEnabled) then
OutputLogMessage("[+] No recoil is on\n")
else
OutputLogMessage("[-] No recoil is off\n")
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
selectedPresetIndex = (selectedPresetIndex % #recoilPresets) + 1
OutputLogMessage("[+] Selected recoil preset: %s\n", recoilPresets[selectedPresetIndex].description)
end
if (noRecoilEnabled and event == "MOUSE_BUTTON_PRESSED" and arg == 1 and IsMouseButtonPressed(1) and IsMouseButtonPressed(3)) then
local recoil = recoilPresets[selectedPresetIndex]
repeat
MoveMouseRelative(recoil.horizontalStrength, recoil.strength)
Sleep(14)
until not (IsMouseButtonPressed(1) and IsMouseButtonPressed(3))
end
end