DayZ
InediaStamina
Showing 41-48 of 48 entries
< 1  2  3  4  >
Update: 28 Jun, 2023 @ 7:18am

Added handling of stimulants to actions ActionDisinfect* , ActionGiveBlood* , ActionGiveSaline* similar to ActionInject*.

Update: 25 Jun, 2023 @ 10:06am

1) General stamina now drains faster when the character is hot, the multiplier is set in the config, "StaminaGeneralOptions.HeatMultiplier" parameter, by default it is "2", i.e. the consumption of stamina is increased by 2 times.
2) Added the ability to add injectors to stimulants ("StaminaStimulants" parameter in the config).
2) Added effect of morphine effect on general stamina and the effect of adrenaline and morphine effects on sleep.
Parameters in the config:
StaminaGeneralOptions.EpinephrineMultiplier (defaut: 0.2)
StaminaGeneralOptions.MorphineMultiplier (default: 1, i.e. has no effect)
StaminaSleepOptions.EpinephrineMultiplier (defaut: 0.2)
StaminaSleepOptions.MorphineMultiplier (default: 50)

Update: 21 Jun, 2023 @ 7:10pm

Small fixes after previous update.

Update: 21 Jun, 2023 @ 5:43pm

After these changes, I recommend updating the configuration file by deleting it and restarting the server. After the first player enters, a new file will appear with new parameters.
You can also add new parameters (they will be described below) yourself to an existing file, or leave everything as it is and then the new parameters with default values will be used.

1) Added comfortable places where general stamina or sleep is restored faster (or slower, configurable).
Places are configured in the configuration file, parameter "ComfortablePlaces".
By default - only two tents are set, large and medium:
"Comfortable Places": [
{
"ItemClass": "MediumTentClutterCutter",
"StaminaSleepMultiplier": 2.0,
"StaminaGeneralMultiplier": 1.0
},
{
"ItemClass": "LargeTentClutterCutter",
"StaminaSleepMultiplier": 2.0,
"StaminaGeneralMultiplier": 1.0
}
]
Multiplier - is the value by which the current regeneration value will be multiplied when player is near an object.

2) "InediaStaminaGeneralOptions.WalkingWeightDebuffBorderKg" parameter has been added to config.
If player load weight in kg exceeds this border, then when walking, the general stamina will decrease, and if the general stamina level is critical, continuing to move will eventually lead to loss of consciousness.
In this regard, the information message has been changed.
From:
"You are too tired. Continued running may result in loss of consciousness."
To:
"You are too tired. High physical activity in this state can lead to loss of consciousness."

3) Fixed bug where the general stamina was spent only on the first hit and ignored the combo.
Heavy melee attacks now cost 3x more stamina than light melee attacks.
Melee firearm weapon attacks now also consume general stamina.

4) Increased some default general stamina consumption parameters:
InediaStaminaGeneralOptions.CostPerRollPercent = -0.5
InediaStaminaGeneralOptions.CostPerJumpPercent = -1
InediaStaminaGeneralOptions.CostPerClimbPercent = -1

5) Added admin commands to make it easier to test mod on your server.
\setgs <valuePercent> - set current player general stamina to <valuePercent>
\setss <valuePercent> - set current player sleep stamina to <valuePercent>
\setplayergs <playerName> <valuePercent> - set general stamina for the specified player to <valuePercent>
\setplayerss <playerName> <valuePercent> - set sleep stamina for the specified player to <valuePercent>

All commands work only for admin. Admin SteamID is set in config file, parameter "adminSteamId". Server restart is required.

Update: 20 Jun, 2023 @ 1:01pm

Fixed bug.
When extracting the bark of a tree, the mechanics of cutting a tree worked.

Update: 20 Jun, 2023 @ 9:35am

1) Changed the effect of epinephrine.
Now the effect of epinephrine will not restore general stamina, but will affect the speed of its consumption.
You can change the multiplier in the config file, parameter StaminaGeneralOptions.EpinephrineMultiplier. Default is 0.2. This means that when consuming general stamina while running -0.15% per second, under the effect of epinephrine it will decrease to -0.15 * 0.2 = -0.03%

2) Changed the mechanics of consuming general stamina while walking.
Now, when walking, if the character's weight exceeds 50 kg, the general stamina will not be restored, but consumed.

Update: 18 Jun, 2023 @ 5:52am

1) Fixed a bug with checking the level of general stamina at the beginning of cutting a tree or mining a stone.
2) Added the ability to separately disable the functionality of general stamina or sleep stamina.
You can do this in the config file:
%DayZserverDir%/profiles/Inedia/InediaStaminaConfig.json
Options:
StaminaGeneralOptions.IsActive => 0 to disable the general stamina functionality
StaminaSleepOptions.IsActive => 0 to disable sleep functionality
If these options are not in the configuration file, you can add them, or delete the existing configuration file and restart the server, the configuration file will be recreated with the new options after first player joins on the server.

If the sleep stamina functionality is disabled, the SleepinessModifier for the general stamina will always be "1".
If the functionality of the general stamina is disabled, the lack of sleep loses its meaning, since before that the lack of sleep lowered the regeneration rate of the general stamina.
Therefore, in case of disabling the functionality of the general stamina - lack of sleep imposes the following debuffs:
- Affects the speed of movement depending on the critical or low level of sleep;
- Adds a chance to lose consciousness when the level of sleep is below the critical;

If for some reason the server ignores the parameters from the configuration file - check the server crash reports, there may be errors in the json file:
%DayZserverDir%/profiles/crash_*.log

Update: 16 Jun, 2023 @ 11:59am