You are viewing a potentially older version of this package. View all versions.
Cartur-Carturs_Safe_Stamina-1.0.7 icon

Carturs Safe Stamina

Stamina costs nothing while no enemy is near. Chop, mine, sprint, jump, swim, sneak and build for free out in the quiet, and pay full price the moment something hostile walks into range. Each cost is separately toggleable.

Date uploaded a week ago
Version 1.0.7
Download link Cartur-Carturs_Safe_Stamina-1.0.7.zip
Downloads 1827
Dependency string Cartur-Carturs_Safe_Stamina-1.0.7

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 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.2333

README

Cartur's Safe Stamina

Stamina costs nothing while nothing is hunting you.

Chopping, mining, sprinting, jumping, swimming, sneaking, building, repairing and weapon swings are all free out in the quiet. Then something hostile walks into range and every cost comes straight back, at full price, mid-swing.

The bar also refills while you swim and while you swing — vanilla stops regeneration dead during both.

Every setting in the ConfigurationManager panel

What counts as safe

No hostile character within SafeRadius metres of you — 25 by default.

Hostility is the game's own check rather than a list of prefab names, so tamed animals are ignored, a boar that hasn't noticed you still counts, and anything a mod adds is judged by the same rule.

Settings

BepInEx/config/com.jekkle.valheim.cartursafestamina.cfg.

Setting Default What it does
SafeRadius 25 Metres. How close a hostile has to be before costs return.
AffectAttacks true Chopping, mining, weapon swings.
AffectSprint true Sprint drain.
AffectJump true Jump cost.
AffectBuild true Build, repair, remove piece.
AffectSwim true Swim drain.
AffectSneak true Crouch and sneak drain.

Each cost is its own switch, so you can leave combat or swimming paying full price.

ConfigurationManager makes every setting adjustable in game from the F1 menu, no restart. Optional.

Worth knowing

Free swimming also means you can't drown while safe. The drown timer only starts once stamina is empty, so a swim that costs nothing never gets there. That is why AffectSwim has its own switch — turn it off if you want the water to stay dangerous.

Skills still level. Run, swim, sneak and weapon XP accrue exactly as before.

Other characters pay normally. Nothing is waived for the boar or draugr inside your safe radius.

Mods that change stamina amounts stack fine — they set the number, this waives it.

Install

Use a mod manager (r2modman / Thunderstore / Gale) and it pulls in BepInEx for you. Manually: drop CarturSafeStamina.dll into BepInEx/plugins.


Free, and always will be. If it improved your game you can tip me on Patreon.

More from Cartur: HD Blood · Map Pins · Compass and Clock · Follow Command · Flooring · UI HUD · Waste Management

CHANGELOG

Changelog

1.0.9

  • Being over-encumbered never gets free stamina regeneration.
  • Attacks that give stamina back are no longer zeroed.

1.0.8

  • Works alongside Speedy Paths. Both mods changed the same stamina value around the same game call, and together they could leave sprinting free even in combat. Safe Stamina now zeroes the cost at the game's own stamina hook instead, for sprint, jump, swim and sneak, so no other mod's adjustments are disturbed.

1.0.7

  • No more free stamina while overloaded. Standing still and encumbered, the game's own drain never fires - it is gated on movement - so nothing kept the regeneration timer down, and this mod then regenerated anyway. Being over the weight limit costs you again.
  • The setting's description now mentions attacks, which have been covered since 1.0.5.

1.0.6

  • Listing only. The store page is rewritten: it leads with what the mod does instead of a links block, the settings table matches the config file, and it links every Cartur mod. No code change.

1.0.5

  • Stamina now refills while swimming and while attacking, when safe. Zeroing a cost was never the same as refilling: Player.UpdateStats sets the regen rate to 0 outright while you are swimming off the ground, mid-swing, mid-dodge, wall-running or encumbered, so the bar sat flat instead of filling. It now regenerates on those frames too, as long as nothing hostile is inside SafeRadius and the normal post-spend regen delay has passed. Follows the existing switches - the swim case obeys AffectSwim, attacks and dodges obey AffectAttacks.

1.0.4

  • Page only - the mod itself is unchanged from 1.0.3. Adds a link to Cartur's Flooring, so every mod of mine points at the others.

1.0.3

  • Sneaking is now free while safe, on its own AffectSneak switch. Crouching charged m_sneakStaminaDrain every tick even with nothing around, which is the one movement cost the mod had missed.
  • Documented ConfigurationManager as the easy way to change the settings in-game, with a screenshot of the panel.
  • Added Follow Command to the links to my other mods.

1.0.2

  • Moved the links to my other mods to the top of the page.

1.0.1

  • Added links to my other mods.

1.0.0

First release.

Stamina costs drop to zero while no hostile character is within SafeRadius (default 25m), and come back the moment one does. Covers attacks — chopping, mining and weapon swings — sprint, jump, swim, and build/repair/remove, each on its own switch.