DayZ
250 ratings
StaminaSettings
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Character, Mechanics
File Size
Posted
Updated
31.424 KB
8 Apr, 2019 @ 9:22pm
30 Jun, 2020 @ 10:14am
15 Change Notes ( view )

Subscribe to download
StaminaSettings

Description
Allows you to set multipliers to stamina gain and drain constants of certain movements. You can also set multipliers for metabolic drain rates when walking, jogging and sprinting. This mod properly syncs the multipliers with the client, which fixes issues with the stamina bar jumping around and player animations glitching at low stamina.

Installation Steps
Run the server once with the mod installed, then go to your server profile folder and change the StaminaSettings config as needed.

Unlimited sprinting when max stamina is above a certain value
m_StaminaWhenSprintDrains
Your stamina will not drain from sprint when your max stamina(due to weight) is above this value. Stamina from all other actions will drain as usual. Setting to 100 is vanilla.

Multiplier/Coefficient Explanation
A multiplier or coefficient is a decimal number that is multiplied by the original DayZ constants. This allows you to always return to the default values by setting the multiplier to 1.
Example
If you want to reduce stamina drain when sprinting by 50% then you would set the multiplier to 0.5

Drain Multipliers
Climb - m_StaminaDrainClimbMult
Stamina drain when climbing over a large fence. (big vault)

Crouched Sprint - m_StaminaDrainCrouchedSprintMult
Stamina drain when sprinting while crouched.

Swim Sprint - m_StaminaDrainFastSwimMult
Stamina drain when swimming while holding down the sprint button.

Jump - m_StaminaDrainJumpMult
Stamina drain when you perform a regular jump.

Ladder Sprint - m_StaminaDrainLadderFastMult
Stamina drain when climbing a ladder

Melee Evade(dodge) - m_StaminaDrainMeleeEvadeMult
Stamina drain when you perform a dodge in melee combat.

Melee Heavy - m_StaminaDrainMeleeHeavyMult
Stamina drain when you perform a heavy melee swing(holding shift).

Melee Light - m_StaminaDrainMeleeLightMult
Stamina drain when you perform a light melee swing.

Sprint - m_StaminaDrainSprintingMult
Stamina drain while sprinting upright.

Vault - m_StaminaDrainVaultMult
Stamina drain when the player performs a small vault.

Gain Multipliers
Idle - m_StaminaGainIdleMult
Stamina gained when the player is idle.

Jog - m_StaminaGainJogMult
Stamina gained when the player is jogging.

Swim - m_StaminaGainSwimMult
Stamina gained when the player is swimming.

Walk - m_StaminaGainWalkMult
Stamina gained when the player is walking.

Threshold Multipliers
A threshold basically defines how much stamina you need to perform an action.DO NOT MESS WITH THESE UNLESS YOU REALLY UNDERSTAND THEM

Climb - m_StaminaThresholdClimbMult
Stamina needed to climb over a wall(big vault).

Hold Breath - m_StaminaThresholdHoldBreathMult
Stamina needed to start holding your breath.

Jump - m_StaminaThresholdJumpMult
Stamina needed to jump.

Melee Evade - m_StaminaThresholdMeleeEvadeMult
Stamina needed to perform a melee evade.

Melee Heavy - m_StaminaThresholdMeleeHeavyMult
Stamina needed to perform a heavy melee swing.

Sprint - m_StaminaThresholdSprintMult
Stamina needed to start sprinting.

Vault - m_StaminaThresholdVaultMult
Stamina needed to vault.

Weight Multipliers
Weight Limit - m_StaminaThresholdWeightLimitMult
A player's max stamina will start to be affected by their weight once they exceed this value.

Stamina Penalty - m_StaminaKgPenaltyMult
This is how much your max stamina gets reduced by your weight. Once you exceed the weight limit above, your max stamina will be reduced.

Metabolic Multipliers
Walk Energy Drain - m_MetabolicEnergyWalkMult
Energy drain when player is walking.

Jog Energy Drain - m_MetabolicEnergyJogMult
Energy drain when player is jogging.

Sprint Energy Drain - m_MetabolicEnergySprintMult
Energy drain when player is sprinting.

Walk Water Drain - m_MetabolicWaterWalkMult
Water drain when player is walking.

Jog Water Drain - m_MetabolicWaterJogMult
Water drain when player is jogging.

Sprint Water Drain - m_MetabolicWaterSprintMult
Water drain when player is sprinting.

Hold Breath Settings
These values are strange and have unexpected outcomes. You will have to play with them to get them where you want it.
Hold Breath Start - m_StaminaDrainHoldBreathStartMult
Initial stamina drain when starting to hold breath.

Hold Breath Faster - m_StaminaDrainHoldBreathFasterMult
Stamina drain when drain becomes faster.

Hold Breath - m_StaminaDrainHoldBreathMult
Stamina drain while holding breath.

Hold Breath Duration - m_StaminaHoldBreathDuration
Time it takes for stamina drain to speed up while holding breath.

Hold Breath Sway Stable - m_HoldBreathSwayTimeStable
Time it takes to stabilize your aim when aiming down sights and holding breath.

Hold Breath Sway Time - m_HoldBreathSwayTimeIn
Time you have stable aim while holding breath.
Popular Discussions View All (2)
10
23 Aug, 2023 @ 1:03pm
Servers running this mod
Proxi
1
21 Dec, 2023 @ 9:21am
Realistic Stamina Settings
ᑎᒪᑎ
161 Comments
xenymbus 6 Jun @ 4:07pm 
@Feliks

"Good day. Thank you very much for the mod. It's simply fabulous. Completely disabling stamina, like in other mods, seems like cheating. You've got it just right, it's excellent, exactly what I needed. I installed it, adjusted it to my weight and gear, and it turned out great. My hero was previously a pathetic weakling... now he's a Fighter, a Veteran, a seasoned warrior..."

your opinion!

:steamthumbsup:
Feliks 9 May @ 5:14am 
День добрый.. большое спасибо за мод.. он просто сказка.. полностью отключать выносливость, как в других модах, это вроде как по читерски. У тебя с этим всё в порядке, просто класс, то что надо. Установил, настроил под свой вес и шмот, получилось просто здорово. Мой герой был ранее жалким дистрофиком.. теперь Боец , Ветеран, закалённый воин..
he died from shot_head 18 Mar @ 6:11pm 
Found a mistake in your mod.

It disables the ability to be able to push cars as you forgot to add:
m_StaminaConsumers.RegisterConsumer(EStaminaConsumers.PUSH, 0);
into the overridden RegisterStaminaConsumers() function.

You also forgot to add:
m_StaminaModifiers.RegisterExponentialEx(EStaminaModifiers.PUSH_CAR,data,);
into the RegisterStaminaModifiers() function.

Hope this helps.

https://dayzexplorer.zeroy.com/staminahandler_8c_source.html
c a v e m a n 20 Feb @ 5:24am 
Could you add a lean option cause I have an idea to fix this stupid ass movement meta of spam leaning how about we just add a stamina drain to it...sounds like a fix to me
Samy FIGUEROA 17 Feb @ 1:36am 
Why The question ''Is this Server Side Only?'' was never anwsered ?
Rank 1 Herald 3 Dec, 2024 @ 12:39pm 
Hi there, could we please have permission to use this mod on a monetised server?
Queen Peaches 24 Aug, 2024 @ 9:46am 
Can I repack this mod?
Axlson 8 Mar, 2024 @ 5:58pm 
How do I edit the values? When ever I do it I get an error
ᐯꀤ꓄ꍏ 21 Dec, 2023 @ 9:05am 
Thanks for the mod! But I need a little help. Can I change stamina in a way that brings it closer to realism? For example, increase stamina consumption and decrease replenishment while standing, walking or jogging. I change the necessary parameters, but nothing changes :(
Jonnu 27 Nov, 2023 @ 11:39am 
@Kreslavskiy put m_StaminaGainJogMult to 0