Battlefield 1 / No Recoil. LUA Script. Logitech mouse ALL Models.

byk

Coder
Joined
Jun 10, 2014
Messages
320
Reaction score
36
Points
28
Remove simple recoil. Only Automatico 1918.

PHP:
function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %d\n", event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2)  -- to prevent it from being stuck on
    end
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
        recoil = not recoil
        spot = not spot
    end
   if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
        if recoil then
            repeat
                --Sleep(20)
                Sleep(21)
                MoveMouseRelative(0, 2)
                Sleep(21)
                MoveMouseRelative(0, 3)
                Sleep(21)
                MoveMouseRelative(0, 4)
                Sleep(21)
                MoveMouseRelative(0, 4)
            until not IsMouseButtonPressed(1)
        end
    end
end
 
Last edited:

byk

Coder
Joined
Jun 10, 2014
Messages
320
Reaction score
36
Points
28
Remove recoil. Only MP-18.
PHP:
function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %d\n", event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2)  -- to prevent it from being stuck on
    end
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
        recoil = not recoil
        spot = not spot
    end
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
        if recoil then
            repeat
                --Sleep(20)
                Sleep(21)
                MoveMouseRelative(0,1)
                Sleep(21)
                MoveMouseRelative(0, 2)
                Sleep(21)
                MoveMouseRelative(0, 2)
                Sleep(21)
                MoveMouseRelative(0, 3)
            until not IsMouseButtonPressed(1)
        end
    end
end
 
  • Like
Reactions: Beson