Valheim
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
176
Size
108KB
ADDatHost Valheim hosting
30% off

Infinite Stamina

Infinite stamina for the local player in Valheim. No stamina is ever consumed, actions never fail on low stamina, and the bar stays full.

What it does

  • Blocks Player.UseStamina with a Harmony prefix, so nothing drains stamina: sprinting, jumping, attacking, blocking, dodging, swimming, bow drawing, repairing, sneaking.
  • Player.HaveStamina always returns true, so attacks, blocks, dodges and jumps are never refused for low stamina.
  • A postfix on Player.Update refills m_stamina to m_maxStamina every frame, so the stamina bar stays visually full.
  • Only affects Player.m_localPlayer. Other players and creatures are untouched.

Installation

Requires BepInEx (BepInExPack for Valheim).

  • Mod manager: install with the Thunderstore Mod Manager, done.
  • Manual: copy InfiniteStamina.dll to <Valheim>\BepInEx\plugins\.

Important: the plugin has to sit in the BepInEx that is actually loaded. If you start the game through the Thunderstore Mod Manager, the manager uses its own profile BepInEx and ignores the one in the game folder. The mod manager installation handles this for you.

Configuration

Config file: BepInEx\config\com.kevin.valheim.infiniteStamina.cfg

[General]
Enabled = true      # infinite stamina on/off, applies instantly
KeepBarFull = true  # refill the bar every frame

Notes

  • Client-side mod. Stamina is client-authoritative in Valheim, so other players are not affected and no server mod is needed.
  • No known incompatibilities. The plugin only touches three Player stamina members.

Changelog

See CHANGELOG.md.


Infinite Stamina (Deutsch)

Unendliche Ausdauer fuer den lokalen Spieler in Valheim. Es wird keine Ausdauer mehr verbraucht, Aktionen scheitern nie an zu wenig Ausdauer, und die Leiste bleibt voll.

Was es macht

  • Blockiert Player.UseStamina per Harmony-Prefix: kein Verbrauch beim Sprinten, Springen, Angreifen, Blocken, Ausweichen, Schwimmen, Bogenspannen, Reparieren und Schleichen.
  • Player.HaveStamina liefert immer true, Angriffe, Blocks, Ausweichen und Spruenge werden also nie wegen fehlender Ausdauer abgelehnt.
  • Ein Postfix auf Player.Update fuellt m_stamina jede Frame auf m_maxStamina, die Leiste bleibt voll.
  • Gilt nur fuer Player.m_localPlayer. Andere Spieler und Kreaturen bleiben unveraendert.

Installation

Benoetigt BepInEx (BepInExPack fuer Valheim).

  • Mod Manager: ueber den Thunderstore Mod Manager installieren, fertig.
  • Manuell: InfiniteStamina.dll nach <Valheim>\BepInEx\plugins\ kopieren.

Wichtig: Das Plugin muss in dem BepInEx liegen, das wirklich geladen wird. Startest du ueber den Thunderstore Mod Manager, nutzt der sein Profil-BepInEx und ignoriert das im Spielordner. Bei Installation ueber den Mod Manager passt das automatisch.

Konfiguration

Datei: BepInEx\config\com.kevin.valheim.infiniteStamina.cfg

[General]
Enabled = true      # unendliche Ausdauer an/aus, wirkt sofort
KeepBarFull = true  # Leiste jede Frame auffuellen

Hinweise

  • Client-seitige Mod. Ausdauer ist in Valheim client-autoritativ, andere Spieler sind nicht betroffen, ein Server-Mod ist nicht noetig.
  • Keine bekannten Inkompatibilitaeten. Das Plugin fasst nur drei Ausdauer-Member von Player an.

Changelog

Siehe CHANGELOG.md.

Source

Plugin.cs    - Plugin-Klasse, Config, Patch-Registrierung
Patches.cs   - Harmony-Patches auf Player.UseStamina/HaveStamina/Update
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.