Skip to content

An AutoHotKey script and Python CLI to minimize recoil with auto weapon detection for Apex Legends. (Only works on 1080p).

License

Notifications You must be signed in to change notification settings

nihmno/Apex-NoRecoil-2021

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apex-NoRecoil-2021

All Contributors

An AutoHotKey script and Python CLI to minimize recoil with auto weapon detection for Apex Legends. (Only works on 1080p).

Apex Legends 压枪宏,带武器自动检测,包含了一个ahk的版本和一个python的版本. (只支持 1080p)

AHK Script - Description 介绍

This repository contains an Autohotkey script to help you minimize weapon recoil. Your weapon is auto-detected by the script (no need to press the F key anymore! XD). The detection is based on a straightforward and naive strategy (I call it three-pixel-detection). It is pretty safe because all it does is just capture some pixels and then use mouse DllCall to move your mouse. Run the compiled version if you want more protection. Current support weapon: R99, R301, RE45, Flatline, Spitfire, Havoc, Volt, Devotion, L-Star, Hamlok, Prowler, Alternator, P2020 and Rampage.

该库包含了一个带自动武器检测的 Apex Legends 压枪宏,不读内存,不注入游戏文件,纯粹就是识别像素颜色并帮助你移动鼠标,不会封号(这就类似于那些淘宝卖好几百的主播专用压枪宏)。目前支持枪械包括 R99, R301, RE45, Alternator, Flatline, Spitfire, Havoc, Volt, Devotion, L-Star, Hamlok, Prowler, P2020 and Rampage.

  • Pros
    • simple 简单
    • out of the box 开箱即用
    • support different language setting in game 支持不同的游戏语言设置
  • Cons
    • too many magic pixel position 太多神奇的像素位置设定
    • need lots of modification to support other resolution 很难去支持别的分辨率
    • not many people know how to code with AHK, not DIY friendly 脚本编程语言小众

Python CLI - Description 介绍

The repository also contains a Python version of the AHK script. It uses the Google Tesseract OCR and OpenCV to detect the weapon being used via key listener. The recoil-patterns are applied via win32api mouse_event. The program was built to be consumed as a CLI. The Python dir also contains a recoil-pattern creation tool which can be found in the modules dir. For more info please read the README in the python dir.

该库也包含了一个有着相似功能的 Python 脚本。这个脚本使用到了 Google Tesseract OCR 和 OpenCV 技术并通过监测键盘输入去进行武器检测。这个脚本主要通过命令行交互界面进行操作。

  • Pros
    • DIY friendly 客制化容易
    • Cool CLI 好看的命令行界面
    • Smart detection strategy 更为智能的武器检测策略
  • Cons
    • detection based on OCR, only support English charactor 只支持英文游戏界面
    • currently don't have as much as features as the AHK one 目前功能没有ahk版本那么多

Contributing

It would be good if you can help me setup some more accurate recoil value or make the script support more weapons. Check the code and send me a pull request if you do so. I really appreciate that.

目前补偿还不是特别精确,因为调试的过程比较枯燥。我希望有朋友可以帮我调试相应的补偿或提供更多枪械的检测。欢迎大家给我发 pull request。谢谢!

Credit

I learn a lot from thyaguster/NoRecoilApex. But his code is pretty bad. There are thousands of lines of duplicated code in that repo. And some of the logic is wrong. (e.g. sleep twice to get the accuracy. Why not double the sleep value). So I make my own. Their code is about three thousand lines, but mine is only about 350, which comes with auto-weapon-detection. I didn't write the GUI to help to change the mouse sensitivity yet. You can send me a pull request if you do so.

Contributors


Aaron Yau

💻

Brandon Williams

💻

filen1

🔣

About

An AutoHotKey script and Python CLI to minimize recoil with auto weapon detection for Apex Legends. (Only works on 1080p).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • AutoHotkey 42.4%
  • Python 38.5%
  • Go 19.1%