Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

P8f4El

I made a working stamina point concept, with leveling system.

Recommended Posts

http://jsfiddle.net/3aaQz/

 

It's just some ugly javascript code in a html file but it does the job at showing off what i'd like to see in DayZ eventually.

 

What i made is a stamina system that constantly gets drained depending on the situation and steadily refilled.

 

It's pretty simple and pretty intuitive i feel. How fast you are moving drains stamina, if you are carrying things around it will drain even faster. Actually the faster you try to move, the more noticeable the drain from the equipment becomes (each running mode has a different multiplier).

 

If you get shot or hurt, your max stamina level will decrease and can only be reverted by healing yourself up. The idea behind this is that when you shoot someone they will have a much tougher time getting away. It is kinda tough sprinting with a handful of bullets lodged in various body parts.

 

Sprinting, running, and walking all require a certain minimum amount of stamina. It's 70 for sprinting i believe which allows you to sprint for a good 10 seconds before you become too drained and can only walk.

 

If like mentioned you get shot (twice since i made it take away 20 max points here) you would not be able to sprint at all until healed.

 

Another thing i put in here are progression elements. Max Stamina, stamina regain and strength all gradually increase as you advance, fast at first but much slower after that. Mind you, they all have a ceiling. Would be silly to see people sprint from one end of the island to the other.

 

Mind you absolutely nothing about this has been balanced or anything.

 

I also made it so that the amount of stuff you carry on you influences your running speed and stamina drain. As your character gets stronger though this, for the same weight, gets less.

 

I thought about adding hunger, thirst and sickness influencing stamina, but i felt like, for something that really has no use, i put enough time in it already.

 

Hope you enjoyed this awe inspiring display of bad code, and actually not that many bugs.

Edited by P8f4El
  • Like 1

Share this post


Link to post
Share on other sites

This will probably be implimented. The longer you run, the more tired your char gets.

Share this post


Link to post
Share on other sites

×