Valheim
Install with App

Details

Latest version
1.1.2
Last Updated
First Uploaded
Downloads
128
Likes
0
Size
9.7KB
Dependants
ADDatHost Valheim hosting
€1

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

Thunderstore / r2modman / Thunderstore Mod Manager

Install ParryAndDodgeConfig from Thunderstore. BepInEx will be installed as a dependency.

Manual

  1. Install BepInExPack for Valheim.
  2. Put ParryAndDodgeConfig.dll in: Valheim/BepInEx/plugins/ParryAndDodgeConfig/
  3. Start Valheim once.
  4. 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 Thunderstore 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 source package.

DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro