Pan_kapkan-SaveCrossbowStateIncludeHook icon

SaveCrossbowStateIncludeHook

Client mod: a loaded crossbow or grappling hook stays loaded when you switch weapons. Based on SaveCrossbowState by Azumatt (thunderstore.io/c/valheim/p/Azumatt/SaveCrossbowState). Adds Grappling Hook support.

Last updated 18 hours ago
Total downloads 74
Total rating 1 
Categories Tools AI Generated
Dependency string Pan_kapkan-SaveCrossbowStateIncludeHook-1.0.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

SaveCrossbowStateIncludeHook

A client-side mod that remembers whether your crossbow or grappling hook is loaded. Put the weapon away, switch to something else, and when you take it out again it is still loaded. No more reloading every time you swap weapons.

Based on SaveCrossbowState

This mod is based on SaveCrossbowState by Azumatt. The original idea and implementation are his, and all credit for them goes to him. The original has not been updated for a long time and does not cover the new Grappling Hook, so this version extends it.

What is different from the original

  • Works with the Grappling Hook (GrapplingHook) in addition to crossbows.
  • Updated for the current version of Valheim and BepInExPack.
  • Optional debug logging for troubleshooting.

Features

  • A loaded crossbow stays loaded after you unequip it.
  • A loaded grappling hook stays loaded after you unequip it.
  • Firing the weapon resets the state, so you have to reload it as usual.
  • Client-side only. The server and other players do not need the mod.

Installation

  1. Install BepInExPack Valheim. A mod manager such as Thunderstore Mod Manager or r2modman installs it automatically as a dependency.
  2. Install this mod.
  3. Remove the original SaveCrossbowState if you have it. This mod will not load while the original is installed, because both do the same job and would conflict. Do not run it together with other mods that remember the crossbow state.

Configuration

The config file is BepInEx/config/Pan_kapkan.SaveCrossbowStateIncludeHook.cfg. It is created after the first launch.

Setting Default Description
DebugLogging false Writes details about reloadable items (prefab name, skill, reload state) to the BepInEx log when you unequip or fire them. Turn it on when reporting a problem.

Known limitations

  • Items of the same type share the reload state, so two grappling hooks (or two identical crossbows) in your inventory behave as one.

Credits

  • Azumatt, author of the original SaveCrossbowState.
  • Pan_kapkan, Grappling Hook support and update.