You are viewing a potentially older version of this package. View all versions.
Swmarly-SwmarlyValheimBetterFistsWeapons-1.0.0 icon

SwmarlyValheimBetterFistsWeapons

Gives every Unarmed/Fists weapon the vanilla knife secondary attack instead of the unarmed kick.

Date uploaded 2 weeks ago
Version 1.0.0
Download link Swmarly-SwmarlyValheimBetterFistsWeapons-1.0.0.zip
Downloads 52
Dependency string Swmarly-SwmarlyValheimBetterFistsWeapons-1.0.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350

README

Swmarly Valheim Better Fists Weapons

This BepInEx mod gives every vanilla Unarmed/Fists weapon the normal vanilla knife special attack.

What it changes

Fist weapons such as the Fenris claws no longer perform the unarmed kick when middle-clicking. Their secondary attack is replaced with the same attack definition used by Valheim's knives, including:

  • the knife secondary animation and hit shape;
  • the knife attack timing and stamina cost;
  • the knife's special-attack damage multiplier;
  • the fist weapon's own slash audio and visual effects from its primary attack;
  • the normal weapon damage and Fists/Unarmed skill scaling of the equipped fist weapon.

The mod copies the live knife attack at runtime instead of hardcoding a multiplier. That keeps the behavior aligned with the installed Valheim build and with any knife-balance changes that happen before the item database is built.

Multiplayer and dedicated servers

Install the mod on the dedicated server and on every client. The change is made to each peer's local item database; it does not add a new item, recipe, or network protocol. Having the same version everywhere keeps the attack definition and combat behavior consistent for all players.

The plugin also loads in the dedicated-server process. The server does not need to render the animation, but loading the same item-data patch there avoids having different weapon definitions between the server and clients.

Compatibility

The patch runs after Valheim builds ObjectDB. It looks for a knife item with a real secondary attack, then applies a clone of that attack to every item whose skill type is Skills.SkillType.Unarmed. It safely skips non-item entries in ObjectDB.m_items.

If another mod deliberately changes knife or fist secondary attacks, the final definition present when ObjectDB.Awake completes is what this mod mirrors. Load order can therefore matter when another mod also edits these same attack fields.

Building

The project targets .NET Framework 4.7.2 and expects these paths:

  • Valheim: C:\Program Files (x86)\Steam\steamapps\common\Valheim
  • BepInEx: the BepInEx directory inside the Valheim installation

Override them when necessary:

dotnet build src -c Release `
  -p:ValheimManagedDir="D:\Games\Valheim\valheim_Data\Managed" `
  -p:BepInExCoreDir="D:\Games\Valheim\BepInEx\core"
python scripts/package.py

The GitHub Actions workflow downloads the current dedicated-server assemblies and builds the Thunderstore package automatically.

CHANGELOG

Changelog

1.0.1

  • Version bump for the first release package.

1.0.0

  • Initial release.
  • Replaced the secondary kick on Unarmed/Fists weapons with the vanilla knife secondary attack.
  • Preserved the weapon's own damage and Fists/Unarmed skill scaling while copying the knife attack's special-attack behavior and damage multiplier.
  • Preserved each fist weapon's vanilla primary-attack slash audio and visual effect lists on the new heavy attack.
  • Kept the vanilla unarmed kick when no weapon is equipped; only actual fist weapons are changed.
  • Added dedicated-server and multiplayer installation guidance.