Code:
---CREATED BY VAPORTUTORIAL for a BUGISOFT GAME
---MultiWeapons Script for R6s - V1
---HOW TO USE
---FIVER = G8
---SIXR = G7
---SEVENR = G6
---EIGHTR = G4
---ZEROR = G9
---DONT EDIT THIS!!!
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)
end
---FOR Nomad, Maverik, Hibana,Zofia, Sledge, Thermite, Thatcher, Lesion, Valkyrie
if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then
sixr = false
sevenr = false
eightr = false
zeror = false
fiver = not fiver
---FOR Iq (Commando and AUG), Blackbeard, Ash (G36), Gridlock (Assault Rifle), Echo, Ela, Mira, Bandit, Jackal, Capitao (Assault Rifle)
else if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
fiver = false
sevenr = false
eightr = false
zeror = false
sixr = not sixr
---FOR Ash(R4c), Doc, Rook,Ying, Fuze (Light Machine), Thermite, Lesion, Mute, Vigil, Capitao (Light Machine), Alibi, Gridlock (Light Machine), Kaid (AUG), Kapkan, Tachanka, Mokk, Jager
else if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
fiver = false
sixr = false
eightr = false
zeror = false
sevenr = not sevenr
---FOR Caveira (Submachine Gun), Glaz (sniper), Pulse, Castle, Frost, Mozzie (commando and p10)
else if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then
fiver = false
sixr = false
sevenr = false
zeror = false
eightr = not eightr
---FOR Twitch (F2), Dokkaebi (Secondary Gun), Lion, Buck, Smoke (Smg 11), Rook (p90), Hibana (Bearing 9)
else if (event == "MOUSE_BUTTON_PRESSED" and arg == 11) then
fiver = false
sixr = false
sevenr = false
eightr = false
zeror = not zeror
end
OutputLogMessage("fiver = %s, sixr = %s, sevenr = %s, zeror = %s\n", tostring(fiver), tostring(sixr), tostring(sevenr), tostring(zeror))
firebutton = event == "MOUSE_BUTTON_PRESSED" and arg == 1
---FIVER SETTINGS
if (firebutton and fiver) then
if fiver then
repeat
Sleep(14) --> EDITABLE
MoveMouseRelative(1, 10) --> EDITABLE
Sleep(14) --> EDITABLE
MoveMouseRelative(-1,-5) --> EDITABLE
until not IsMouseButtonPressed(1)
end
---SIXR SETTINGS
else if (firebutton and sixr) then
if sixr then
repeat
Sleep(14) --> EDITABLE
MoveMouseRelative(1, 10) --> EDITABLE
Sleep(14) --> EDITABLE
MoveMouseRelative(-1,-4) --> EDITABLE
until not IsMouseButtonPressed(1)
end
---EIGHTR SETTINGS
else if (firebutton and eightr) then
if eightr then
repeat
Sleep(14) --> EDITABLE
MoveMouseRelative(1, 10) --> EDITABLE
Sleep(14) --> EDITABLE
MoveMouseRelative(-1,-8) --> EDITABLE
until not IsMouseButtonPressed(1)
end
---ZEROR SETTINGS
else if (firebutton and zeror) then
if zeror then
repeat
Sleep(14) --> EDITABLE
MoveMouseRelative(1, 10) --> EDITABLE
Sleep(14) --> EDITABLE
MoveMouseRelative(-1,0) --> EDITABLE
until not IsMouseButtonPressed(1)
end
---SEVENR
else if (firebutton and sevenr) then
if sevenr then
repeat
Sleep(14) --> EDITABLE
MoveMouseRelative(1, 10) --> EDITABLE
Sleep(14) --> EDITABLE
MoveMouseRelative(-1, -6) --> EDITABLE
until not IsMouseButtonPressed(1)
end
end
end
end
end
end
end
end
end
end
end
For people here that can't understand, stop holding your fire button after you unload you magazine, pretty simple huh? No more "screen shaking".