Coder Social home page Coder Social logo

logitech-pubg's Introduction

logitech-pubg

PUBG no-recoil script for Logitech gaming mouse 绝地求生罗技鼠标宏

manual (English translation part comes from google) 使用说明

AY YOUR OWN RISK

  • logitech gaming software never got banwave in the past,but does not mean that there is no future.

ChangeLog

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.

How To Use

Edit Setting

1. Assigned button number for weapon

  • 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

2. Set the fire key and the mode switch 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 is pause , mode switch key is capslock.
  • **All weapons use the single-shot model, which converts the individual into a fully automated mode, including M16a1. **

3. Ignore Key

  • 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"

4. Sensitivity Setting

  • 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.

5. Obfs Setting

  • 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.

6. You should always use Ctrl + S to save script after edit script.

Recommended settings

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.

Not working?

run LGS as administrator

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.

set "Lock profile while game is running"

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.

Copyright

  • 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"
  • 移除了全配件模式,因为使用机会太小,导致缺乏测试。
  • 重写了逻辑:现在激发速度和武器射速相关。

食用说明

编辑设置

1. 为枪械分配按键编号

  • 按键编号可以通过查看下方日志得到,当按下鼠标按键时,下方日志提示event = MOUSE_BUTTON_RELEASED , arg = X,这个X就是按键编号。
  • 枪械拥有6种,而不同型号的罗技鼠标功能键数量可能小于6,为不需要使用的武器分配nil值。
  • 总是应该为取消设置后座力补偿分配一个按键。set_off_key

2. 设置开火按键和模式切换按键

  • 开火fire key按键需要和游戏内设置一致,并在游戏内取消鼠标左键的绑定。
  • 模式切换键mode switch key按下时,后座力放大3~4倍,便于使用四倍镜。
  • 默认情况,开火键是"Pause",方向键上方最右一个。使用大小写锁定键切换4倍模式。
  • 所有武器使用单发模式,这个脚本会将单发转化为全自动模式,包括M16a1

3. 忽略键

  • 您可以设置一个忽略键,当按下该键时,脚本会暂停。
  • 受限于LGS,你只能选择这些按键作为忽略键: "lalt", "ralt", "alt" "lshift", "rshift", "shift" "lctrl", "rctrl", "ctrl"
  • 默认设置是 "lshift"

4. 灵敏度设置

  • 如果您修改游戏菜单中的鼠标灵敏度设置,则需要修改设置。
  • 鼠标dpi不影响脚本运行,罗技已经做好了转换。

5. 混淆设置

  • 在默认模式下,射击间隔从30ms到39ms随机变化。 可以修改几个变量来更改此随机范围。

  • weapon_speed_mode = ture, 使用武器速度做基准,而不是默认的30ms.

6.编辑脚本后记得ctrl + s保存。

推荐设置

罗技的大多数游戏鼠标包含5个快捷键。默认1个前进、1个后退、1个放大dpi,一个缩小dpi,一个放大镜。

  • 分配一个按键使用ump9,这样按键同时也适合全配件的m416和scar-l.
  • 分配一个按键使用m16a1, m16a1搭配红点瞄准镜或全息瞄准镜,不需要其他配件,就可以发挥威力。
  • 分配一个按键使用akm,akm的模式同样适用于sks和mini 14.
  • 分配一个按键使用大跳。
  • 分配一个给取消后座力补偿。

常见问题 ? 无法自动射击 ?

一般是因为使用代理加速器,导致游戏是以管理员身份运行导致的。

以管理员身份运行LGS

文件坐标:"C:\Program Files\Logitech Gaming Software\LCore.exe" ,可以在这个程序的属性>兼容性,勾选以“管理员身份运行此程序”

UAC会隔离user权限的user32.dll对管理员权限的进程访问.  keybd_eventSendInput 都属于 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提出。

logitech-pubg's People

Contributors

liantian-cn avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.