AutoAttack
Toggle continuous attack with a keypress instead of holding the button.
模組介紹 作者原文
AutoAttack
Press a key to start continuous attacking — the mod keeps the attack button held for you — and press it again to stop. No more holding the attack button through long fights.
Client-side only: neither the server nor other players need the mod.
Features
- Toggle on/off with a keyboard shortcut (default Mouse1 + LeftAlt) or a gamepad combo (default JoyLBumper, JoyRBumper = L1 + R1).
- Pause: holding a configured button (block, jump, secondary attack, movement by default) temporarily pauses the toggle; it resumes automatically when you release it.
- Cancel: pressing a configured button stops the toggle completely.
- Weapon change protection: automatically cancels when the equipped weapon changes (can be disabled).
- Bows: keeps drawing and releases the shot automatically once fully drawn.
- Crossbows: waits for the reload instead of holding through it.
- On-screen messages for on/off/cancelled, with configurable texts (empty text = hidden) and position.
- Per-button configuration: every input button the game registers gets its own on/off entry, split into keyboard and gamepad sections and generated from the game's own input registry at startup.
- Master switch ([General] Enabled) to turn the mod fully off and get vanilla behavior.
Installation
Using a mod manager (recommended)
Install r2modman, Gale or the Mod Manager. BepInExPack is installed automatically as a dependency.
Manual
- Install BepInExPack for Valheim.
- Drop AutoAttack.dll into /BepInEx/plugins.
Configuration
Config file: BepInEx/config/orax.AutoAttack.cfg — every entry is documented inline.
- [General] > Master switch, cancel-on-weapon-change
- [Keyboard] > Toggle shortcut (Unity KeyCode names, e.g. Mouse1 + LeftAlt)
- [Gamepad] > Toggle combo (ZInput button names, e.g. JoyLBumper, JoyRBumper)
- [Keyboard cancel buttons] > [Gamepad cancel buttons] > Press to cancel the toggle
- [Keyboard pause buttons] > [Gamepad pause buttons] > Hold to pause the toggle
- [HUD], [Messages] > Message display, position and texts
Notes:
- The gamepad button list is generated at startup from the game's own input registry and reflects the controller layout active at that moment; restart the game after changing the layout to regenerate it.
- Unknown button names simply never trigger, and a warning is logged once.
Misc
Source code: GitHub repository
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
denikson-BepInExPack_Valheim