跳转到主要内容

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位于当前工作目录。

用法

简而言之

  1. 使用config.toml文件配置您的热键
  2. 与helldivers2一起运行程序
  3. 当您触发配置的热键之一时,将发生短暂的延迟(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 查看哈希值)

上传时间 Python 3

由以下组织支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面