
Stamina Panic
Stamina too low? No need to panic right!?Details
Stamina Panic
Sound the alarm when your stamina gets too low.
This mod plays a customizable looping audio cue when your stamina drops below a defined threshold โ perfect for keeping you alert during long climbs or dangerous sprints.
๐ฎ Features
- ๐ Looping Audio Alert: A sound plays continuously when your stamina drops too low.
- โ๏ธ Configurable Volume: Adjust volume between 0โ100% in real time using ModConfig.
- ๐บ Custom Threshold: Set your desired stamina warning threshold.
- ๐ต Custom Audio Support: Drop your own
.ogg
or.wav
sound file into the mod folder. - โ No Lobby Noise: Audio only plays during actual gameplay scenes.
- โฑ๏ธ Startup Delay: A 30-second grace period after starting a run avoids false alerts while stamina fills up.
- โ LOOPABLE audio files come with the download but add your own if youd like!
๐ง Installation
- Download the mod
- Extract and Drop into the BepInEx plugins folder
- Launch Game to generate the config file ๐ฅor use Thunderstore Mod Manager!๐ฅ
Drop your custom audio file in:
BepInEx/plugins/tony4twentys-Stamina_Panic/audio/
Accepted formats: .ogg
or .wav
๐ ๏ธ Configuration
The config file is located at:
BepInEx/config/tony4twentys.Stamina_Panic.cfg
Or configure live in-game using ModConfig.
Options:
Setting | Description | Default |
---|---|---|
StaminaThreshold |
Stamina value that triggers alert (0.0 โ 1.0) | 0.2 |
CueVolume |
Volume level for the sound (0 โ 100) | 100 |
SoundFolderPath |
Location of audio file (auto-detects first .ogg /.wav ) |
Set automatically |
FadeOutTime |
Time in seconds to fade out the audio when stamina recovers | 1.5 |
๐ง How It Works
-
The mod waits 30 seconds after gameplay begins.
-
It then checks your
TotalStamina
value every second. -
If your stamina is below the configured threshold:
- It starts playing your custom sound.
- The sound loops until stamina goes back up.
-
Volume updates dynamically during playback based on config.
๐ Example Folder Structure
BepInEx/
โโโ config/
โ โโโ tony4twentys.Stamina_Panic.cfg
โโโ plugins/
โ โโโ tony4twentys-Stamina_Panic/
โ โโโ audio/
โ โโโ __.ogg
โ โโโ __.wav
๐จโ๐ผ Credits
- Author: tony4twenty
- Check out my other PEAK mods