Create

Safe Stamina — Zero Stamina Cost Outside Combat & Contextual Hostility Checks

  • Valheim — Safe Stamina — Zero Stamina Cost Outside Combat & Contextual Hostility Checks
  • Valheim — Safe Stamina — Zero Stamina Cost Outside Combat & Contextual Hostility Checks
Author:
Cartur
Size:
14.32 kB
Date:
Yesterday, 14:10
Downloads:
1
0.0 / 10
No one has rated the file yet.

A gameplay quality-of-life mod Cartur's Safe Stamina for Valheim that completely removes stamina consumption whenever the player is outside of combat danger. Felling forests, excavating subterranean ore veins, sprinting logistics across meadows, and raising scaffolding require zero stamina reserves. The instant an enemy entity enters your detection perimeter, full stamina costs re-engage immediately—even mid-swing. Routine camp maintenance and harvesting chores cease to be a chore, while combat scenarios retain their full vanilla balancing and tactical weight.

Key Features:

  • Zero-Cost Out-of-Combat Actions — Tree chopping, rock mining, melee/ranged swings, sprinting, jumping, swimming, crouching/sneaking, alongside building, repairing, and deconstructing pieces cost zero stamina.
  • Granular Category Toggles — Every supported mechanic has its own independent configuration toggle, allowing players to retain standard stamina drain for specific actions (such as swimming or combat swings) while leaving building and sprinting free.
  • Native Hostility Detection (BaseAI.IsEnemy) — Relies directly on Valheim's internal hostile AI evaluation rather than hardcoded prefab registries: tamed animals never trigger costs, unaware aggressive boars still re-arm stamina drain, and mod-added hostile creatures integrate seamlessly without custom patches.
  • Performance-Throttled Spatial Scans — Area scans check for hostiles every quarter of a second (250 ms) rather than executing expensive distance checks every render frame, eliminating CPU bottlenecks.

Configuration Settings (com.jekkle.valheim.cartursafestamina.cfg):

  • SafeRadius (default: 25) — Safety radius in meters. The proximity threshold an enemy must cross before standard stamina costs return.
  • AffectAttacks (default: true) — Covers tree chopping, mining, and weapon attacks.
  • AffectSprint (default: true) — Toggles stamina drain exemption while sprinting.
  • AffectJump (default: true) — Toggles stamina drain exemption while jumping.
  • AffectBuild (default: true) — Toggles stamina drain exemption while placing, repairing, or breaking building pieces.
  • AffectSwim (default: true) — Toggles stamina drain exemption while swimming.
  • AffectSneak (default: true) — Toggles stamina drain exemption while crouching/sneaking.

Installation Instructions:

  1. Ensure BepInEx for Valheim is installed.
  2. Download the mod archive.
  3. Place CarturSafeStamina.dll into your plugins folder:
    <Valheim_Directory>\BepInEx\plugins\
  4. Launch the game. The config file com.jekkle.valheim.cartursafestamina.cfg will be automatically generated inside BepInEx/config/ upon first launch.

Useful links:

Comments 0