Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ONLY FOR LOGITECH MOUSE - ACTIVATION BUTTON: G6 - If you want you can change it with the buttons: G1, G2, G3, G4, G5, G6, G7, G8
- To change the button, change the number on "if (event == "MOUSE_BUTTON_PRESSED" and arg == 6) then"
- local recoil = false
- local rapidfire = false
- 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 == 6) then
- recoil = not recoil
- 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(-1,6)
- Sleep(14)
- MoveMouseRelative(1,-6)
- Sleep(14)
- until not IsMouseButtonPressed(1) or not IsMouseButtonPressed(3)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement