Arma 3 Recoil-Reducer

Posts 1–13 of 13 · Page 1 of 1
Arma 3 Recoil-Reducer
Took Strafe's "No Recoil" and made it smaller and make more sense, why would you need a "No Recoil" for Arma 3 on anything other than Arma 3 right?

- Removed useless code and comments
- Added a WinActive check for Arma 3

Code:
Insert::Suspend

*~LButton::
	if WinActive("ahk_class Arma 3")
	{
		while GetKeyState("LButton")
		{    
			DllCall("mouse_event", uint, 1, int, 0, int, change_this_value(1-6 i advise), uint, 1, int, 0)
			Sleep, 5
		}
	}
return
How-To-Use:
1. Create an AHK file and paste the code in.
3. Change "change_this_value(1-6 i advise)" to 1-6 depending on how much anti-recoil you want
3. Run the AHK file
4. Hold left mouse button in Arma 3
Quote Originally Posted by BLURREDDOGE View Post
Took Strafe's "No Recoil" and made it smaller and make more sense, why would you need a "No Recoil" for Arma 3 on anything other than Arma 3 right?

- Removed useless code and comments
- Added a WinActive check for Arma 3

Code:
Insert::Suspend

*~LButton::
	if WinActive("ahk_class Arma 3")
	{
		while GetKeyState("LButton")
		{    
			DllCall("mouse_event", uint, 1, int, 0, int, change_this_value(1-6 i advise), uint, 1, int, 0)
			Sleep, 5
		}
	}
return
How-To-Use:
1. Create an AHK file and paste the code in.
3. Change "change_this_value(1-6 i advise)" to 1-6 depending on how much anti-recoil you want
3. Run the AHK file
4. Hold left mouse button in Arma 3




could you convert it so that its possible to be processed from Logitech macro?
No, there isn't a mousemove function on Logitech Gaming Software.

edit: I'm dying inside, technically it isn't on it, you have to add it in scripting when you right click on a profile.
Quote Originally Posted by BLURREDDOGE View Post
No, there isn't a mousemove function on Logitech Gaming Software.


Than how can they reduce the recoil on PUBG, R6S, Fortnite and so on with Logitech Mouse Macro? see below...
"Logitech Mouse Simple Anti Recoil Script"

Code:
EnablePrimaryMouseButtonEvents(true);
 
function OnEvent(event, arg)
	if IsKeyLockOn("numlock" )then
		if IsMouseButtonPressed(3)then
			repeat	
				if IsMouseButtonPressed(1) then
					repeat
						MoveMouseRelative(0,1)
						Sleep(33)
					until not IsMouseButtonPressed(1)
				end				
			until not IsMouseButtonPressed(3)
		end		
	end
end
Quote Originally Posted by dashurry1989 View Post
Than how can they reduce the recoil on PUBG, R6S, Fortnite and so on with Logitech Mouse Macro? see below...
"Logitech Mouse Simple Anti Recoil Script"

Code:
EnablePrimaryMouseButtonEvents(true);
 
function OnEvent(event, arg)
	if IsKeyLockOn("numlock" )then
		if IsMouseButtonPressed(3)then
			repeat	
				if IsMouseButtonPressed(1) then
					repeat
						MoveMouseRelative(0,1)
						Sleep(33)
					until not IsMouseButtonPressed(1)
				end				
			until not IsMouseButtonPressed(3)
		end		
	end
end
OOf, that's news to me. Since you couldn't add it normaly I thought you couldn't script it. I've never noticed the scripting tab.
It's here on Logitech gaming software:


- - - Updated - - -

Quote Originally Posted by dashurry1989 View Post
Than how can they reduce the recoil on PUBG, R6S, Fortnite and so on with Logitech Mouse Macro? see below...
"Logitech Mouse Simple Anti Recoil Script"

Code:
EnablePrimaryMouseButtonEvents(true);
 
function OnEvent(event, arg)
	if IsKeyLockOn("numlock" )then
		if IsMouseButtonPressed(3)then
			repeat	
				if IsMouseButtonPressed(1) then
					repeat
						MoveMouseRelative(0,1)
						Sleep(33)
					until not IsMouseButtonPressed(1)
				end				
			until not IsMouseButtonPressed(3)
		end		
	end
end
In that case you could have a profile for games where this script will be active, I'm looking but i can't find a windowcheckactive for LGS since Lua makes me cry.

An overview of LGSLua: https://github.com/chenty0704/LGS-li...riesLuaAPI.pdf
In that case you could have a profile for games where this script will be active, I'm looking but i can't find a windowcheckactive for LGS since Lua makes me cry.

An overview of LGSLua: https://github.com/chenty0704/LGS-li...riesLuaAPI.pdf


exactly, thats why i asked you if you could rewrite it in LUA. Since its comming from the mouse software and not from ahk its more secure but not undetectable must more secure. Thanks for the LUA github im reading it atm but i dont know any computer language.

I got this script :CREDITS to @insomniac2k1

Code:
EnablePrimaryMouseButtonEvents(true);

local recoil_coords = {
    { x = 0, y = 1 } 
}

local recoil_coords_0 = {
    { x = -1, y = 0 }
}
local recoil_coords_1 = {
    { x = -1, y = 1 }
}

local recoil_coords_2 = {
    { x = -2, y = 1 }
}

local recoil_coords_noclick = {
    { x = 0, y = 2 }
}

local recoil = not true;
local key = "U";
local key2 = "t";
local key3 = "q";
local state1 = not true;
local state2 = not true;
local modifier = 7;

function flashlight ()
    if not IsMouseButtonPressed(3)and not state1 then
        state1 = true;           
        PressKey(key2)
        Sleep(40)
        ReleaseKey(key2)
    end
end

function flashlight_off ()
    if state2 then
        state1 = not true;
        state2 = not true;
    else
        state1 = not true;
        state2 = not true;
        PressKey(key2)
        Sleep(40)
        ReleaseKey(key2)
    end
end

function suppress (x,y,sleep)
    if not sleep then sleep="22" end
    PressKey(key)
    Sleep(sleep)
    MoveMouseRelative(x,y)
    Sleep(sleep)
    MoveMouseRelative(x,modifier)
    ReleaseKey(key)
    Sleep(38)
end

function spot ()
    PressAndReleaseKey(key3)     
end


function OnEvent(event, arg)
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 11)    then
        recoil = not recoil
        OutputLogMessage("AWS - No-Recoil-Flashlight-spot, %s \n", tostring(recoil))
     end

     if recoil then
     Sleep(1)

-- Section below assumes that you have a G13 or similar keyboard. Comment out if you do not have macro configurable keyboard "WASD" keys
     if (event == "G_PRESSED" and arg == 4) then
         PressKey("lshift")
     end
     
     if (event == "G_RELEASED" and arg == 4) then
         ReleaseKey("lshift")
     end
     
     
     if (event == "G_PRESSED" and arg == 10) then
         PlayMacro("spot")
     end
     
     if (event == "G_PRESSED" and arg == 11) then
         PlayMacro("spot")
     end
     
     if (event == "G_PRESSED" and arg == 12) then
     PlayMacro("spot")
     end
-- Section above assumes that you have a G13 or similar keyboard. Comment out if you do not have macro configurable keyboard "WASD" keys
     
     if (event == "MOUSE_BUTTON_PRESSED" and arg == 9) then
         modifier = modifier +1;
     end
     
     if (event == "MOUSE_BUTTON_PRESSED" and arg == 10) then
         modifier = modifier -1;
     end

     if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
        repeat
        for i, v in ipairs(recoil_coords) do
            if (IsMouseButtonPressed(3)) then
                state1 = true; 
                state2 = true;                                    
                suppress(recoil_coords_0[i].x,recoil_coords_0[i].y+modifier)
                suppress(recoil_coords_1[i].x,recoil_coords_1[i].y+modifier)
            else    
                suppress(recoil_coords_noclick[i].x,recoil_coords_noclick[i].y)
                -- flashlight() -- only enable if you have a flashlight equipped
            end
        end   
        until not IsMouseButtonPressed(1)
        --flashlight_off()  -- only enable if you have a flashlight equipped
     end

     else 
         if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
             PressKey(key)
         end
         if (event == "MOUSE_BUTTON_RELEASED" and arg == 1) then
             ReleaseKey(key)
         end
    end
end

its not accurate as @NotSo script.
Quote Originally Posted by dashurry1989 View Post
exactly, thats why i asked you if you could rewrite it in LUA. Since its comming from the mouse software and not from ahk its more secure but not undetectable must more secure. Thanks for the LUA github im reading it atm but i dont know any computer language.

I got this script :CREDITS to @insomniac2k1

Code:
EnablePrimaryMouseButtonEvents(true);

local recoil_coords = {
    { x = 0, y = 1 } 
}

local recoil_coords_0 = {
    { x = -1, y = 0 }
}
local recoil_coords_1 = {
    { x = -1, y = 1 }
}

local recoil_coords_2 = {
    { x = -2, y = 1 }
}

local recoil_coords_noclick = {
    { x = 0, y = 2 }
}

local recoil = not true;
local key = "U";
local key2 = "t";
local key3 = "q";
local state1 = not true;
local state2 = not true;
local modifier = 7;

function flashlight ()
    if not IsMouseButtonPressed(3)and not state1 then
        state1 = true;           
        PressKey(key2)
        Sleep(40)
        ReleaseKey(key2)
    end
end

function flashlight_off ()
    if state2 then
        state1 = not true;
        state2 = not true;
    else
        state1 = not true;
        state2 = not true;
        PressKey(key2)
        Sleep(40)
        ReleaseKey(key2)
    end
end

function suppress (x,y,sleep)
    if not sleep then sleep="22" end
    PressKey(key)
    Sleep(sleep)
    MoveMouseRelative(x,y)
    Sleep(sleep)
    MoveMouseRelative(x,modifier)
    ReleaseKey(key)
    Sleep(38)
end

function spot ()
    PressAndReleaseKey(key3)     
end


function OnEvent(event, arg)
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 11)    then
        recoil = not recoil
        OutputLogMessage("AWS - No-Recoil-Flashlight-spot, %s \n", tostring(recoil))
     end

     if recoil then
     Sleep(1)

-- Section below assumes that you have a G13 or similar keyboard. Comment out if you do not have macro configurable keyboard "WASD" keys
     if (event == "G_PRESSED" and arg == 4) then
         PressKey("lshift")
     end
     
     if (event == "G_RELEASED" and arg == 4) then
         ReleaseKey("lshift")
     end
     
     
     if (event == "G_PRESSED" and arg == 10) then
         PlayMacro("spot")
     end
     
     if (event == "G_PRESSED" and arg == 11) then
         PlayMacro("spot")
     end
     
     if (event == "G_PRESSED" and arg == 12) then
     PlayMacro("spot")
     end
-- Section above assumes that you have a G13 or similar keyboard. Comment out if you do not have macro configurable keyboard "WASD" keys
     
     if (event == "MOUSE_BUTTON_PRESSED" and arg == 9) then
         modifier = modifier +1;
     end
     
     if (event == "MOUSE_BUTTON_PRESSED" and arg == 10) then
         modifier = modifier -1;
     end

     if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
        repeat
        for i, v in ipairs(recoil_coords) do
            if (IsMouseButtonPressed(3)) then
                state1 = true; 
                state2 = true;                                    
                suppress(recoil_coords_0[i].x,recoil_coords_0[i].y+modifier)
                suppress(recoil_coords_1[i].x,recoil_coords_1[i].y+modifier)
            else    
                suppress(recoil_coords_noclick[i].x,recoil_coords_noclick[i].y)
                -- flashlight() -- only enable if you have a flashlight equipped
            end
        end   
        until not IsMouseButtonPressed(1)
        --flashlight_off()  -- only enable if you have a flashlight equipped
     end

     else 
         if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
             PressKey(key)
         end
         if (event == "MOUSE_BUTTON_RELEASED" and arg == 1) then
             ReleaseKey(key)
         end
    end
end

its not accurate as @NotSo script.
From what I understand, Logitech Gaming software uses their own version of Lua that has diffenent function names, also I know no Lua. It looks like you found one anyawy.
have no recoil for mk200 ?
Quote Originally Posted by muh50 View Post
have no recoil for mk200 ?
Just go to Eden editor, give yourself the mk200 and change the values around until you find the best ones for anti-recoil.
The recoil pattern heads to the top-right so just do the opposite.
Hello, please tell me how can I run that script on Atech x7?
Quote Originally Posted by Thekello View Post
Hello, please tell me how can I run that script on Atech x7?
Google "A4tech x7 anti-recoil" and a post from 22 Nov 2014 should show up
What do i need to write to get half anti recoil
like what do i change in Change
Thank you for posting this. When I am able, I will also be releasing (for free) ARMA 3 pulldown/no recoil scripts for bloody mouse users or those that can use .bwf files.
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us