narukami-ParryStrike icon

ParryStrike

Parry enemy attacks with your own swing. Time your strike to negate the damage, stagger and knock back the attacker. Window, stamina cost and effects are fully configurable.

Last updated a day ago
Total downloads 34
Total rating 0 
Categories Tweaks AI Generated Enemies PvP
Dependency string narukami-ParryStrike-0.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351

README

Parry Strike

Parry enemy attacks with your own swing — no shield required.

Parry Strike adds a timing window to your attacks. If an enemy hits you while that window is open, the hit is completely negated: the attacker is staggered and knocked back, you gain Blocking skill and adrenaline, and you get the block spark, sound and a brief hit-stop.

Miss the timing and you take the damage exactly as vanilla would deal it.


How it works

  1. You start a swing — the mod opens a parry window.
  2. If an enemy lands a melee hit during that window, the damage is fully negated.
  3. The attacker is staggered and knocked back.
  4. You gain Blocking skill, adrenaline, and the perfect-block visuals.
  5. A little stamina is spent (configurable).
  6. Hit outside the window → normal damage, nothing changes.

Window modes

ParryOnWindup Behaviour
true (default) The window covers your whole attack animation, plus ParryWindow seconds after the hit frame. Forgiving — good for a first playthrough.
false Strict "strike for strike": the window opens only on your weapon's hit frame and lasts ParryWindow seconds.

What can and cannot be parried

Parry Strike only reacts to a hit that:

  • comes from a creature, or from a player with PvP enabled;
  • is flagged blockable by the game (m_blockable) — i.e. something a shield could have stopped;
  • arrives from the front (same rule as the vanilla block);
  • is not a projectile (while OnlyMelee = true).

Never parried: fall damage, fire, poison, drowning, trees, traps and similar environmental damage. If you are actively holding a vanilla block at that moment, the normal block takes over and the mod stays out of the way.

Multiplayer

The mod works wherever the player owns the character, so it is client-side — install it on the clients that want it. Nothing needs to be installed on the server, and it does not change any network messages. It is not a cheat-style stat modifier: it only reacts to damage that was already about to be applied to you.


Installation

With a mod manager (recommended)

Install through r2modman, Thunderstore Mod Manager or Gale and enable Parry Strike. BepInEx is pulled in automatically as a dependency.

Manual

  1. Install BepInExPack for Valheim.
  2. Copy ParryStrike.dll into <Game>/BepInEx/plugins/ParryStrike/.
  3. Launch the game. The config appears at BepInEx/config/narukami.parrystrike.cfg.

Configuration

File: BepInEx/config/narukami.parrystrike.cfg The file is generated on first launch; edit it with the game closed, or use a configuration manager (r2modman / Gale / BepInEx ConfigurationManager).

[General]

Setting Default Description
Enabled true Turn strike-parrying on or off.
ParryWindow 0.30 Window length in seconds (0.05–1.5).
ParryOnWindup true Open the window during the wind-up. false = strict strike-for-strike.
OnlyMelee true Only melee hits can be parried (no arrows or projectiles).
OneParryPerSwing true A single swing can parry only one hit.
AllowBowParry false Allow parrying while drawing a bow.

[Balance]

Setting Default Description
StaminaCost 10 Stamina spent per successful parry (0 = free).
StaggerAttacker true Stagger the attacker.
DeflectAttacker true Knock the attacker back.
DeflectForceMultiplier 1.0 Multiplier for the knockback force.
RaiseBlockingSkill true Raise the Blocking skill on a parry.
AdrenalineGain 5 Adrenaline granted per parry.
DurabilityLoss true Spend weapon durability on a parry.

[Visual]

Setting Default Description
ShowDamageText true Show the floating "Blocked" number.
FreezeFrame true Brief hit-stop on the parry for impact.

[Debug]

Setting Default Description
DebugLog false Verbose parry logging to the BepInEx console.

Suggested presets

  • Forgiving / power fantasy — ParryWindow = 0.5, ParryOnWindup = true, StaminaCost = 0
  • Balanced (default) — ParryWindow = 0.3, ParryOnWindup = true, StaminaCost = 10
  • Souls-like — ParryWindow = 0.15, ParryOnWindup = false, StaminaCost = 15

Troubleshooting

  1. Check BepInEx/LogOutput.log for Parry Strike v0.1.0 loaded.
  2. On the first successful parry the log prints First parry: <enemy>, prevented N damage. — that confirms the mechanic fired.
  3. Parrying feels too hard → raise ParryWindow to 0.4–0.5, or keep ParryOnWindup = true.
  4. Parrying feels too easy → set ParryOnWindup = false and ParryWindow = 0.15–0.2.
  5. Still nothing → enable DebugLog = true, reproduce the situation, and attach the log to a bug report.

Compatibility

  • Valheim 1.0.20 — tested in game, and the Harmony targets and every game reference are verified against the 1.0.20 assemblies at build time
  • BepInEx 5.4.23.x, HarmonyX 2.9
  • Client-side; safe to add to an existing world or remove at any time
  • No known conflicts: the mod hooks Character.RPC_Damage, Humanoid.StartAttack and Humanoid.OnAttackTrigger with prefixes/postfixes only and never rewrites vanilla IL
  • Other mods that also patch Character.RPC_Damage may run before or after Parry Strike; if you use several combat overhauls, test them together

Русский

Парирование ударом — парируйте атаку врага собственной атакой. Щит не нужен.

Мод добавляет окно парирования к вашим ударам. Если враг попадает по вам, пока окно открыто, урон полностью гасится: врага отбрасывает и оглушает, вы получаете навык «Блокирование», адреналин, искры и звук идеального блока. Промахнулись по таймингу — получаете обычный урон, как в ваниле.

Режимы окна

  • ParryOnWindup = true (по умолчанию) — окно действует всю анимацию вашей атаки плюс ParryWindow секунд после кадра удара. Прощает ошибки в тайминге.
  • ParryOnWindup = false — строго «удар в удар»: окно только с момента кадра удара.

Что парируется: ближний блокируемый удар существа или игрока с включённым PvP, пришедший спереди. Что нет: падение, огонь, яд, вода, деревья, ловушки, стрелы (пока OnlyMelee = true). Если вы в этот момент держите обычный блок — работает блок.

Установка: установите BepInExPack для Valheim, скопируйте ParryStrike.dll в <Игра>/BepInEx/plugins/ParryStrike/. Конфиг появится в BepInEx/config/narukami.parrystrike.cfg.

Настройки (файл narukami.parrystrike.cfg)

Параметр По умолчанию Описание
Enabled true Включить парирование ударом.
ParryWindow 0.30 Длительность окна в секундах (0.05–1.5).
ParryOnWindup true Открывать окно на замахе. false — строго «удар в удар».
OnlyMelee true Только ближние атаки (без стрел).
OneParryPerSwing true Одна атака — одно парирование.
AllowBowParry false Парирование во время натяга лука.
StaminaCost 10 Выносливость за парирование (0 — бесплатно).
StaggerAttacker true Оглушать врага.
DeflectAttacker true Отбрасывать врага.
DeflectForceMultiplier 1.0 Множитель силы отброса.
RaiseBlockingSkill true Повышать навык «Блокирование».
AdrenalineGain 5 Адреналин за парирование.
DurabilityLoss true Тратить прочность оружия.
ShowDamageText true Текст «Заблокировано».
FreezeFrame true Короткая заморозка кадра.
DebugLog false Подробный лог в консоль BepInEx.

Если парировать слишком сложно — увеличьте ParryWindow до 0.4–0.5. Если слишком легко — ParryOnWindup = false и ParryWindow = 0.15–0.2.


Credits

Made by Narukami. Built with BepInEx 5 and HarmonyX. Not affiliated with Iron Gate Studio. Valheim is a trademark of Iron Gate Studio.