ParryAndDodgeConfig
Configure Valheim's timed-block/parry window and dodge invincibility duration. Parry timing is configurable from 10 ms to 2 seconds; dodge i-frames can be overridden independently or left vanilla.
模組介紹 作者原文
ParryAndDodgeConfig
A small client-side BepInEx/Harmony mod for Valheim 1.0 that lets you configure the timed-block/parry window and, independently, the duration of dodge invincibility frames.
Features
- Configure the parry window from 10 ms to 2 seconds.
- Configure dodge invincibility independently from the parry window.
- Dodge i-frames can be set from 1 ms to 2 seconds.
- Dodge i-frame override is disabled by default, preserving Valheim's vanilla behavior.
- The dodge override starts when Valheim actually enters its dodge-invulnerable state, not when the dodge button is pressed.
- The dodge override changes only the invulnerability flag; it does not change dodge movement, animation, stamina cost, dodge distance, perfect-dodge rewards, or damage.
- Does not modify Valheim's game files.
Configuration
After launching Valheim once with the mod installed:
BepInEx/config/com.rafal.configurableparrywindow.cfg
Example:
[Parry]
WindowSeconds = 0.40
[Dodge]
InvincibilityDurationSeconds = 0.20
Parry window
| Window | Setting |
|---|---:|
| 100 ms | 0.10 |
| 200 ms | 0.20 |
| 250 ms (vanilla) | 0.25 |
| 300 ms | 0.30 |
| 400 ms | 0.40 |
| 500 ms | 0.50 |
| 1 second | 1.00 |
Dodge invincibility
| Setting | Result |
|---|---|
| 0 | Use Valheim's vanilla dodge invincibility behavior |
| 0.10 | 100 ms of dodge invulnerability |
| 0.20 | 200 ms |
| 0.25 | 250 ms |
| 0.30 | 300 ms |
| 0.40 | 400 ms |
| 0.50 | 500 ms |
| 1.00 | 1 second |
The dodge setting is independent of the parry setting.
For example, this is valid:
[Parry]
WindowSeconds = 0.30
[Dodge]
InvincibilityDurationSeconds = 0.18
Restart Valheim after changing the configuration.
Important note about Valheim 1.0
Valheim 1.0 changed dodge invulnerability so that the vanilla state is driven by the dodge animation rather than being a simple permanent fixed-duration timer. This mod therefore does not replace the dodge animation or movement. When a custom duration is enabled, it overrides only the invulnerability state while the dodge is active.
If the configured value is longer than the actual dodge's invulnerable portion, the mod will not make the player invulnerable after Valheim has ended the dodge.
Installation
r2modman Mod Manager
Install ParryAndDodgeConfig. BepInEx will be installed as a dependency.
Manual
- Install BepInExPack for Valheim.
- Put ParryAndDodgeConfig.dll in:
Valheim/BepInEx/plugins/ParryAndDodgeConfig/
- Start Valheim once.
- Edit the generated config if desired.
Multiplayer
This is a client-side combat modification.
For a multiplayer group, every player who wants the modified parry/dodge timing should install the mod and use the desired settings. The mod does not add new network messages or modify world/save data.
Because both settings affect combat gameplay, multiplayer groups should agree on whether modified timing is allowed.
Compatibility
Built for the Valheim 1.0 Mono/BepInEx 5 environment.
The dodge implementation is based on the Valheim 1.0 members:
- Player.Dodge
- Player.UpdateDodge
- Player.m_dodgeInvincible
- Player.m_dodgeInvincibleCached
The parry implementation expects:
- Humanoid.BlockAttack
- Humanoid.m_blockTimer
If a future Valheim update changes those members, the mod may need an update.
Building from source
This repository intentionally does not redistribute Valheim's proprietary game assemblies.
Install BepInExPack for Valheim and the.NET SDK, then run:.\build.ps1
If Valheim is installed somewhere else:.\build.ps1 -ValheimDir "D:\Steam\steamapps\common\Valheim"
To build and automatically copy the DLL into the game's plugins folder:.\build.ps1 -ValheimDir "D:\Steam\steamapps\common\Valheim" -Deploy
To create the package:.\packaging\package.ps1 -Version "1.1.1"
License
The mod source is released under the MIT License.
Valheim and its game assemblies are property of Iron Gate AB / Coffee Stain Publishing and are not included with the so
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: