Helldivers 2宏
项目描述
Helldivers2策略宏
这是用于在Helldivers2中宏策略输入的软件。
仅限Windows使用。
请注意:此项目不努力隐藏自己,规避检测或绕过任何反作弊措施。如果您在Helldivers2中使用此软件,不能保证您不会被封禁。自行承担风险。
安装
先决条件:此要求您在默认位置安装autohotkey。Python用户可以使用pip install ahk[binary]来满足此要求。
二进制下载
请访问发行页面以获取传统Windows设置安装或zip下载。这是非Python开发者的首选方法。
使用pip
对于Python开发者,您也可以使用pip进行安装
pip install hd2_macros
在此方法中,您需要使用python -m hd2_macros启动,并预期config.toml位于当前工作目录。
用法
简而言之
- 使用
config.toml文件配置您的热键 - 与helldivers2一起运行程序
- 当您触发配置的热键之一时,将发生短暂的延迟(
hotkey_start_delay)——足够您确保您的策略菜单已打开——程序将输入相关策略的WASD输入。
配置
在安装目录(或对于使用 pip 安装的当前工作目录)中,使用 config.toml 文件来配置您的热键配置。
# General settings apply for all loadouts
[general]
# How long to wait for the helldivers window before exiting
win_wait = 120
# Delay in seconds between when the hotkey pressed and beginning of WASD inputs
# Intended to allow you enough time to ensure the strategem menu is up and ready for input
hotkey_start_delay = 1.0
# Change logging verbosity (valid values are "DEBUG", "INFO", "WARNING", "ERROR")
log_level = "DEBUG"
# Hide the system tray icon for the application
no_tray_icon = false
# Define a hotkey that can be used to stop the program
# By default, bound to Windows key + Q
exit_hotkey = "#q"
# The time in between key UP/DOWN events when inputting macros.
# Lowering this value will make inputs faster, but may cause inputs to be dropped.
key_delay = 0.1
# If you have AutoHotkey in a non-default location, you may specify it by uncommenting this line:
# autohotkey_executable_path = "C:\Path\To\AutoHotkey64.exe"
# You can explicitly specify the version of AutoHotkey (v1 or v2). Usually, this is not necessary.
# When omitted, the version of Autohotkey is determined automatically
# autohotkey_version = ""
# The default input type is 'WASD' - you can change this to arrow keys by uncommenting this setting:
# input_type = "Arrows"
# A Loadout provides a mapping of Strategems to hotkeys. Each loadout specifies a hotkey used to switch to that loadout.
# For hotkey/modifiers syntax, see https://www.autohotkey.com/docs/v2/Hotkeys.htm and https://www.autohotkey.com/docs/v2/KeyList.htm
# The default loadout is the loadout used at program starts
[ default_loadout ]
switch_hotkey = "#1" # press Win+1 to load this loadout
[ default_loadout.hotkeys ]
# Maps the orbital precision strike strategem to "Windows key + n"
# All stratagem names are lowercase
"orbital precision strike" = "#n"
# Add separate sets of loadouts using `[ loadouts.<NAME> ]`
[ loadouts.secondary ]
switch_hotkey = "#2" # press Win+2 to load this loadout
[ loadouts.secondary.hotkeys ]
"orbital precision strike" = "#b"
"mortar sentry" = "#s"
"eagle cluster bomb" = "#c"
# You can add as many loadouts as you want.
# ...
策略列表
重机枪镭射炮补给轨道照明弹地狱炸弹增援机枪反坦克步枪坚定者可消耗反坦克无后坐力步枪火焰喷射器自动炮电磁炮矛老鹰穿梭攻击老鹰空中打击老鹰集束炸弹老鹰凝固汽油弹空中打击跳伞包老鹰烟雾攻击老鹰110毫米火箭弹发射器老鹰500公斤炸弹轨道加特林炮弹幕轨道空中爆炸打击轨道120毫米高爆弹幕轨道行进弹幕轨道380毫米高爆弹幕轨道激光轨道电磁炮打击轨道精确打击轨道毒气打击轨道电磁脉冲打击轨道烟雾打击重机枪阵地护盾生成中继站特斯拉塔机枪哨兵加特林哨兵迫击炮哨兵看门狗自动炮哨兵火箭弹哨兵电磁脉冲迫击炮哨兵反步兵地雷场补给包手榴弹发射器激光炮燃烧地雷看门狗越野车弹道护盾背包电弧投射器护盾发生器背包爱国者外骨骼服
另请参阅:输入映射的 constants.py。
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。
源代码分发
hd2_macros-1.2.4.tar.gz (9.7 kB 查看哈希值)
构建分发
hd2_macros-1.2.4-py3-none-any.whl (10.7 kB 查看哈希值)