Battlefield 4 (ACE-21) no recoil. LUA script for all Logitech G mice.

byk

Coder
Joined
Jun 10, 2014
Messages
320
Reaction score
36
Points
28
Battlefield 4 - carbine ACE-21
Add script in u profile. How to(read this post) - http://baunticheats.com/forum/index.php?threads/how-to-logitech-enable-insert-lua-script-Как-воткнуть-скрипт-в-профиль.5866/

Enjoy! ^^

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(5)  -- to prevent it from being stuck on suck give a fuck
    end
 
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
        recoil = not recoil
    end

    if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
        repeat  
            ReleaseMouseButton(1)
            Sleep(38)
            MoveMouseRelative(-1,11)          
            Sleep(38)
        until not IsMouseButtonPressed(1)
    end
end
 

pupkin

Administrator
Staff member
Joined
Jan 30, 2014
Messages
21,119
Reaction score
1,394
Points
125
найс
 
  • Like
Reactions: byk