PUBG no-recoil script for Logitech gaming mouse 绝地求生罗技鼠标宏
manual (English translation part comes from google) 使用说明
logitech gaming software
never got banwave in the past,but does not mean that there is no future.
2017.10.18
- Correct the logic of the suspension, easy to thunder.
- Increase the shielding of the shortcut keys, ignore_key, the default shift
2017.10.15
- Add sensitivity setting.
2017.10.14
- Added uzi and scar-l recoil table.
- The default fire button is changed to "pause".
- Removed the full part mode because the chances of using are too small, resulting in a lack of testing.
- Rewriting the logic: now the excitation speed is related to the weapon firing rate.
- download and install
logitech gaming software
[LGS] - click PUBG in LGS, select
Scripting
. - copy and paste script from adv_mode.lua to script box.
- Ctrl + S to save.
- the button number can be find in log windows, when the mouse button click, log prompt
event = MOUSE_BUTTON_RELEASED, arg = X
, the X is the button number. - Weapon has 6 kinds, and different models of Logitech mouse function keys may be less than 6, for unnecessary weapons allocation
nil
value. - You should always assign a button to cancel the set recoil compensation.
set_off_key
- the
fire key
button needs to be consistent with the game settings, and in the game to cancel the left mouse button binding. - When the
mode switch key
is pressed, recoil zoom 3-4x , easy to use quadruple mirror. - By default ,
fire key
ispause
,mode switch key
iscapslock
. - **All weapons use the single-shot model, which converts the individual into a fully automated mode, including M16a1. **
- You can set a ignore Key, and when the key is pressed, the script pauses.
- Limited by LGS, you can only select "lalt", "ralt", "alt" "lshift", "rshift", "shift" "lctrl", "rctrl", "ctrl" and Logitech G Key(Logitech game keyboard only)
- By default is "lshift"
- If you modify the mouse sensitivity settings in the game menu, you need to modify the settings.
- Mouse dpi does not affect the script running, Logitech has done this.
-
In the default mode, the shooting interval varies randomly from 30ms to 39ms. You can modify several variables to change this random range.
-
When
weapon_speed_mode = ture
, the use of weapons based on the rate of random fire.
Logitech's most gaming mice contain 5 shortcuts. The default 1 forward, 1 back, 1 zoom, a reduced dpi, a magnifying glass.
- Assign a button to use ump9, so that the keys are also suitable for full accessory m416 and scar-l.
- Assign a button to use m16a1, m16a1 with red dot sight or holographic sight, do not need other accessories, you can play a power.
- Assign a button using akm, akm mode also applies to sks and mini 14.
- Assign a button to use a big jump.
- Assign a button to cancel the no-recoil.
UAC will isolate user32.dll‘s function between users and administrators. both keybd_event and SendInput function are in user32.dll. so if you run pubg as administrator , you also need to run LGS as administrator.
You may not notice that pubg in the admin, may be pubg is child process of steam.exe , and steam is child process of steam update , steam update must run as admin.
By default , LGS will only run profile when game's window is "active", use GetActiveWindow , but in windows 10 , input and notification will often become active window, maybe bug maybe not.
- recoil table some from elitepvpers or ownedcore or other forums public information , other from developer self testing.
- all other source code, write by my self.
- The Unlicense
- No service, any suggest can use Issues.
logitech gaming software
过去没有触发过任何Ban wave,但过去没有,不代表将来也没有。
2017.10.18
- 修正关闭时的逻辑,方便丢雷。
- 增加暂时屏蔽压枪的快捷键,ignore_key,默认为shift
2017.10.15
- 增加灵敏度设置。
2017.10.14
- 新增了uzi 和 scar-l 的后座力表格。
- 默认开火键修改为"pause"
- 移除了全配件模式,因为使用机会太小,导致缺乏测试。
- 重写了逻辑:现在激发速度和武器射速相关。
-
下载并安装
logitech gaming software
。- LGS下载地址 : http://support.logitech.com/software/lgs
-
复制adv_mode.lua的代码到脚本框内。
-
按ctrl+s 保存。
- 按键编号可以通过查看下方日志得到,当按下鼠标按键时,下方日志提示
event = MOUSE_BUTTON_RELEASED , arg = X
,这个X就是按键编号。 - 枪械拥有6种,而不同型号的罗技鼠标功能键数量可能小于6,为不需要使用的武器分配
nil
值。 - 总是应该为取消设置后座力补偿分配一个按键。
set_off_key
- 开火
fire key
按键需要和游戏内设置一致,并在游戏内取消鼠标左键的绑定。 - 模式切换键
mode switch key
按下时,后座力放大3~4倍,便于使用四倍镜。 - 默认情况,开火键是"Pause",方向键上方最右一个。使用大小写锁定键切换4倍模式。
- 所有武器使用单发模式,这个脚本会将单发转化为全自动模式,包括M16a1
- 您可以设置一个忽略键,当按下该键时,脚本会暂停。
- 受限于LGS,你只能选择这些按键作为忽略键: "lalt", "ralt", "alt" "lshift", "rshift", "shift" "lctrl", "rctrl", "ctrl"
- 默认设置是 "lshift"
- 如果您修改游戏菜单中的鼠标灵敏度设置,则需要修改设置。
- 鼠标dpi不影响脚本运行,罗技已经做好了转换。
-
在默认模式下,射击间隔从30ms到39ms随机变化。 可以修改几个变量来更改此随机范围。
-
当
weapon_speed_mode = ture
, 使用武器速度做基准,而不是默认的30ms.
罗技的大多数游戏鼠标包含5个快捷键。默认1个前进、1个后退、1个放大dpi,一个缩小dpi,一个放大镜。
- 分配一个按键使用ump9,这样按键同时也适合全配件的m416和scar-l.
- 分配一个按键使用m16a1, m16a1搭配红点瞄准镜或全息瞄准镜,不需要其他配件,就可以发挥威力。
- 分配一个按键使用akm,akm的模式同样适用于sks和mini 14.
- 分配一个按键使用大跳。
- 分配一个给取消后座力补偿。
一般是因为使用代理加速器,导致游戏是以管理员身份运行导致的。
文件坐标:"C:\Program Files\Logitech Gaming Software\LCore.exe" ,可以在这个程序的属性>兼容性,勾选以“管理员身份运行此程序”
UAC会隔离user权限的user32.dll对管理员权限的进程访问. keybd_event 和 SendInput 都属于 user32.dll.所以,如果pubg是管理员权限运行的,也需要以管理员权限运行LGS。
你可能没有注意到Pubg是以管理员身份运行的,也许是因为pubg是 steam.exe的子进程 , steam 又是steam update的子进程。 steam update 以管理员权限更新steam。 也或许,是因为网游加速器需要lsp劫持或者vpn拨号,是以管理员权限启动的,然后通过加速器启动的游戏。
默认的,LGS只对当前的活动窗口生效。GetActiveWindow ,在Win10中,活动窗口可能被输入法或者提醒功能抢占。
- recoil table 后座力表格来自elitepvpers / ownedcore 等论坛的公开信息及个人测试。
- 后座力表格以外的源代码,均作者自己书写。
- 使用The Unlicense授权,允许任意使用。
- 不提供任何服务,功能性建议可以在Issues提出。