Closed WilliamAkins closed 6 years ago
I've made a system that allows the player to get knocked out when they're HP runs out, the system can be further used for other things such as getting drunk etc. Below is a gif showing it in action, using a debug command to lower the HP. The gif is low fps due to the capture software.
I've done a lot of work on this system now. Not only will it handle getting knocked out. It has a fully working drunkenness, health, tiredness and hyper-active system. All these different states and effects can occur from varying other game events such as drinking coffee or alcohol.
As part of the vitals system, I've now finished making the next system which is the ability to pee in the game. Over time your bladder meter will decrease, when it reaches 0, you will automatically pee. However you can force yourself to pee if it's below 90%.
The new system I'm going to work on is the ability to be knocked out. This would be similar to dying in other games, except we don't actually want to kill the player. Should they get knocked out then they will wake up at one of the predefined respawn locations (Whichever is the nearest to where they got knocked out) and receive a penalty such as loosing some money and items. In the period of being knocked out time will also pass for a certain amount of time.