-- EnableRCS = true --- When Set to false, it'll turn off Recoil Control!
EnableRCS = true
-- RecoilControlMode = "Custom" --- Presets: "Low", "Medium", "High", "Ultra", "Insanity", "Custom"
RecoilControlMode = "Custom"
-- RcCustomStrength = 8 -- Increased for Rust AK; Value MUST be ROUNDED! No Decimal values such as 6.5!
RcCustomStrength = 8
-- RequireToggle = false -- Change to false if you want it to always be on.
RequireToggle = false
-- ToggleKey = "CapsLock" -- Usable Keys: "CapsLock", "NumLock", "ScrollLock"
ToggleKey = "CapsLock"
-- DelayRate = 90 -- Adjusted for Rust AK fire rate (~600 RPM, ~100ms per shot). DO NOT CHANGE IF YOU DON'T KNOW WHAT YOU'RE DOING.
DelayRate = 90
--[[
HOW TO USE FOR DUMBIES,
(RC)
1: If the "EnableRCS" is set to false, change to true.
2: Adjust your Recoil Control Strength, either by using a preset or a custom value!
3: Toggle it on (if you have ForceToggle enabled, else just do step 4.)
4: Hold Mouse1 and Mouse2 (LeftClick and RightClick) and it should drag your cursor downwards.
5: Aim at your target and your done!
(Things to note)
1: I did NOT make the Recoil Control Code, I just simplified everything, so you can adjust it to your needs
2: You don't need to hold down your toggle key, its a toggle.
3: You must hold mouse1 and mouse2, or else IT WONT WORK!
4: DelayRate Works in MS, the lower the faster. For Rust AK, 90ms approximates fire rate.
--]]
------------- Recoil Presets ------
if RecoilControlMode == "Low" then
RecoilControlStrength = 2
elseif RecoilControlMode == "Medium" then
RecoilControlStrength = 4
elseif RecoilControlMode == "High" then
RecoilControlStrength = 8
elseif RecoilControlMode == "Ultra" then
RecoilControlStrength = 12
elseif RecoilControlMode == "Insanity" then
RecoilControlStrength = 31
elseif RecoilControlMode == "Custom" then
RecoilControlStrength = RcCustomStrength
end
-- Pattern for Rust AK: vertical down with alternating horizontal compensation to counter sway
local pattern_index = 0
local horizontal_pattern = {0, -1, 2, -2, 1, -1, 0, 1} -- Simple sway counter; adjust as needed
if EnableRCS ~= false then
while true do
if RequireToggle ~= false then
if IsKeyLockOn(ToggleKey) then
if IsMouseButtonPressed(3) then
repeat
if IsMouseButtonPressed(1) then
repeat
pattern_index = (pattern_index + 1) % #horizontal_pattern + 1
local h_move = horizontal_pattern[pattern_index]
MoveMouseRelative(h_move, RecoilControlStrength)
Sleep(DelayRate)
until not IsMouseButtonPressed(1)
end
Sleep(1)
pattern_index = 0 -- Reset pattern on release
until not IsMouseButtonPressed(3)
end
end
else
if IsMouseButtonPressed(3) then
repeat
if IsMouseButtonPressed(1) then
repeat
pattern_index = (pattern_index + 1) % #horizontal_pattern + 1
local h_move = horizontal_pattern[pattern_index]
MoveMouseRelative(h_move, RecoilControlStrength)
Sleep(DelayRate)
until not IsMouseButtonPressed(1)
end
Sleep(1)
pattern_index = 0 -- Reset pattern on release
until not IsMouseButtonPressed(3)
end
end
Sleep(1)
end
end
EnablePrimaryMouseButtonEvents(true);
function OnEvent(event, arg)
end make it pull down and left at the same time