Help FIX line 28 LUA SCRIPT
--[[FLUX Recoil mod - Logitech mouse V1.1]]
--Press G7 for recoil
--Press G9 for rapidfire, stop with shift
--Press G8 for lean macro - Must download LGS profile to get!
--Cycle anti-recoil amount with scrollwheel
--Scrollwheel -> Plus
--Scrollwheel <- Minus
--Modes range from 0 - 4! Default on is 2.
local recoil = false
local rapidfire = false
local recoilmode = 2 -- <---- Change this to change your default setting
local a --[-1]
local b --[2 ]
local a0 --[1 ]
local b0 --[-2]
local rsleep
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 == 10 and IsKeyLockOn("numlock") == true) then
if (recoilmode >= 0 and recoilmode <= 3) then
recoilmode = recoilmode + 1
OutputLogMessage("Set Recoil Mode: ")
OutputLogMessage(recoilmode)
OutputLogMessage("\n")
else
OutputLogMessage("Error - Out of cycle range bounds!\n")
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 11 and IsKeyLockOn("numlock") == true) then
if (recoilmode >= 1) then
recoilmode = recoilmode - 1
OutputLogMessage("Set Recoil Mode: ")
OutputLogMessage(recoilmode)
OutputLogMessage("\n")
else
OutputLogMessage("Error - Out of cycle range bounds!\n")
end
end
-- Mode 0 -- "off"
if (recoilmode == 0) then
a = 0
b = 0
a0 = 0
b0 = 0
rsleep = 30
end
-- Mode 1 -- "Small jitters - Also very good for people who only want help controlling alot of recoil"
if (recoilmode == 1) then
a = -1
b = 1
a0 = 1
b0 = -1
rsleep = 16
end
-- Mode 2 -- "Perfect mode"
if (recoilmode == 2) then
a = -1
b = 2
a0 = 1
b0 = -2
rsleep = 16
end
-- Mode 3 -- "Used for the p90 but if you use alot, higher chance of ban because the screen shake is so visible"
if (recoilmode == 3) then
a = -1
b = 3
a0 = 1
b0 = -3
rsleep = 16
end
-- Mode 4 -- "PUBG mode, just looks like pulling down hard. Looks the most legit"
if (recoilmode == 4) then
a = 0
b = 2
a0 = 0
b0 = 0
rsleep = 14 -- The lower this number is the faster it pulls down! It is in millisecs
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 7) then
recoil = not recoil
rapidfire = false
if (recoil == true) then
OutputLogMessage("Recoil is On\n")
else
OutputLogMessage("Recoil is Off\n")
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil == true and rapidfire == false) then
if IsMouseButtonPressed(1) and IsMouseButtonPressed(3)then
repeat
MoveMouseRelative(a,b)
Sleep(rsleep)
MoveMouseRelative(a0,b0)
Sleep(rsleep)
until not IsMouseButtonPressed(1) or not IsMouseButtonPressed(3)
end
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 9) then
rapidfire = not rapidfire
recoil = false
if (rapidfire == true) then
OutputLogMessage("Rapidfire is On\n")
else
OutputLogMessage("Rapidfire is Off\n")
end
end
if (IsMouseButtonPressed(1) and rapidfire == true) then
repeat
PressMouseButton(1)
Sleep(30)
ReleaseMouseButton(1)
Sleep(30)
until IsModifierPressed("shift")
end
end