Professional Documents
Culture Documents
Logitech NoRecoil, Rapid Fire, Quickscope, Burst Script - BF4
Logitech NoRecoil, Rapid Fire, Quickscope, Burst Script - BF4
###################################################################################
#####################
-- werther$ script
collection
--
###################################################################################
#####################
--------------------------------------------------------------------------
---------------- how does it work? ---------------------------------------
--------------------------------------------------------------------------
--norecoil
----hold down right mouse button
----press / hold left mouse button
------"q" is being pressed 1 time for battlefield tagging
--------this means that the next action is being delayed because of the sleep value
------depending on the settings, your mouse is pulled down
--------the lower the settings, the more legit and smoother it looks
--rapid fire
----hold down right mouse button
----press / hold left mouse4
------mouse 1 is being spammed
------depending on the settings, your mouse is pulled down
--------the lower the settings, the more legit and smoother it looks
--burst
----hold down right mouse button
----press / hold left mouse5
------mouse 1 is pushed for the configured time
------a delay sets in, causing the recoil to fall back
------repeat
--quickscope
-----press mouse5
-------mouse 2 and shift is pressed
-------delays for the set time
-------if it is released then it shoots and then resets itself
--------------------------------------------------------------------------
---------------- settings ------------------------------------------------
--------------------------------------------------------------------------
--norecoil settings
----disclaimer: since it only pulls your mouse down, it probably won't negate
recoil perfectly
----it only pulls your mouse down if
------LEFT MOUSE is held down
------RIGHT MOUSE is pressed
----play around with these settings until perfect.
local no_recoil = 2 --how much the mouse is pulled down
local no_recoil_sleep = 12 --interval between how often the mouse gets pulled down
local no_recoil_predelay = 0 --change this if you only want to activate it after a
certain amount of ms
local rapid_fire = 0 --how much the mouse is being pulled down while rapid fire
local rapid_fire_sleep = 40 --delay between every shot
--quickscope settings
local quickscope_sleep = 250
--------------------------------------------------------------------------
---------------- functions -----------------------------------------------
--------------------------------------------------------------------------
function norecoil()
--Automated tagging in Battlefield
----Remove PressKey and ReleaseKey to disable
PressKey("Q")
Sleep(no_recoil_predelay)
ReleaseKey("Q")
if(legit_mode==true)then
repeat
MoveMouseRelative(0,get_random(no_recoil, legit_mode_percent))
Sleep(get_random(no_recoil_sleep, legit_mode_percent))
until not IsMouseButtonPressed(1)
else
repeat
MoveMouseRelative(0,no_recoil)
Sleep(no_recoil_sleep)
until not IsMouseButtonPressed(1)
end
end
function rapidfire()
if(legit_mode==false)then
repeat
PressMouseButton(1)
Sleep(lmouse_press)
ReleaseMouseButton(1)
MoveMouseRelative(0,rapid_fire)
Sleep(rapid_fire_sleep)
until not IsMouseButtonPressed(4)
else
repeat
PressMouseButton(1)
Sleep(get_random(lmouse_press, legit_mode_percent))
ReleaseMouseButton(1)
MoveMouseRelative(0,get_random(rapid_fire, legit_mode_percent))
Sleep(get_random(rapid_fire_sleep, legit_mode_percent))
until not IsMouseButtonPressed(4)
end
end
function perfectburst()
if(legit_mode==false)then
repeat
PressMouseButton(1)
Sleep(perfectburst_press)
ReleaseMouseButton(1)
Sleep(perfectburst_sleep)
until not IsMouseButtonPressed(5)
else
repeat
PressMouseButton(1)
Sleep(get_random(perfectburst_press, legit_mode_percent/5))
ReleaseMouseButton(1)
Sleep(get_random(perfectburst_sleep, legit_mode_percent/5))
until not IsMouseButtonPressed(5)
end
end
--------------------------------------------------------------------------
----------------OnEvent---------------------------------------------------
--------------------------------------------------------------------------
--legit_mode_toggle
if (IsKeyLockOn(legit_mode_toggle_key)) then
legit_mode=true
else
legit_mode=false
end
if(legit_mode) then
in_scope = true
OutputLogMessage("in_scope: ")
OutputLogMessage(tostring(in_scope))
OutputLogMessage("\n")
end
if (event == "MOUSE_BUTTON_RELEASED" and arg == 2) then
in_scope = false
OutputLogMessage("in_scope: ")
OutputLogMessage(tostring(in_scope))
OutputLogMessage("\n")
end
--Perfect Burst
else if IsMouseButtonPressed(5) and IsMouseButtonPressed(3) then
OutputLogMessage("perfect burst")
perfectburst()
end
end
end
--(Quick) Scope
if (in_scope == false and event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
ClearLog()
in_quickscope = 1
OutputLogMessage("quickscope in: ")
OutputLogMessage(in_quickscope)
PressMouseButton(3)
if(legit_mode) then Sleep(get_random(quickscope_sleep,
legit_mode_percent_quickscope))
else Sleep(250) end
PressKey("lshift")
else if (event == "MOUSE_BUTTON_RELEASED" and arg == 5 and not in_scope and
IsKeyLockOn("numlock")) then
PressMouseButton(1)
Sleep(lmouse_press)
ReleaseMouseButton(1)
ReleaseMouseButton(3)
ReleaseKey("lshift")
OutputLogMessage("quickscope out \n")
OutputLogMessage("\n \n")
in_quickscope=0
end
end
end