Home / Gmod Addons Marketplace / Gmod Fatigue mods + Sleep System


Media
Description πŸ‡¬πŸ‡§ Description πŸ‡«πŸ‡·

Gmod Fatigue mods + Sleep System - Script


Demonstration Youtube video of Gmod Fatigue mods + Sleep System

Gmod Fatigue & Sleep System is a sleep management addon for Gmod and it brings the sleep related server environment, entities and effects to it. I had created this system for my server to allow players to help each other, because when you sleep you become vulnerable. Taking a break and coming to share their experiences on the discord or the forum while their character was sleeping allowed them to meet players who would not normally participate in the conversations, the link of the discord or the wiki was displayed as a clickable button, so they could learn a little more about the server and discuss a little more with the community, while being a Roleplay action. In the RP it will always be better than falling in ragdoll which is not realistic in the current systems and heavy for the server. Some content has been added like caffeine pills that reduce fatigue. The effects of fatigue on your server are adjustable from a management menu included. It also includes a flexible HUD with 13 different modular styles. When the player is tired, the malus you choose to activate will take effect. The screen will be darker around the edges and the character's eyes will blink.


hud-flexible hud_fx entities-include entities-to-sleep actions until-you-sleep server-options set-user-protection database sleeping-bag consumables

Maximum image size
Description

Description of Gmod Fatigue mods + Sleep System

Summary:
  1. πŸ“˜ What is Gmod Fatigue mods and Sleep System addon?
  2. πŸ“¦ Contents of Gmod Fatigue mods and Sleep System
  3. ❓ What kind of need can Gmod Fatigue mods and Sleep System meet?
  4. βš™οΈ The integrated fatigue system management panel
  5. πŸ—ƒοΈ Saving stats on Gmod
  6. πŸ”› Fatigue system server modules (Gameplay options)
  7. 🎨 Flexible HUD to edit the fatigue indicator
  8. βœ”οΈ List of spawnable entities of the sleep system
  9. 🧲 Symbiosis with other gmod addons
  10. 🧩 Fatigue system APIs for devs
  11. πŸ’‘ Ideas for combining scripts to make an inn or motel (hotel) system


πŸ“˜ What is Gmod Fatigue mods and Sleep System addon?

Gmod Fatigue mods and Sleep System as its name indicates adds two complementary systems.
1. Fatigue mods will add the notion of fatigue, the flexible HUD, the special effect on the HUD when the player reaches the maximum in fatigue, the rules of gameplay and the conditions related to the fatigue but also the special effects and the malus for example the stamina does not reload any more when a player reaches the maximum threshold of fatigue.
2. Sleep System will bring several recovery methods, including a system that allows you to recover from fatigue by resting on an entity defined as such. And various ways to decrease the fatigue gauge such as coffee for example or caffeine pills, these are default examples that you can of course modify, delete or replace.

All these gameplay mechanics that revolve around fatigue will allow players to rest in a roleplay way, while his character will take a nap, an interface will offer him various things to do or link to visit as your discord or your website, or your store for example.

In another context you will have the possibility to place beds to offer rest in hotels or hostels. But also to deploy a tent, or a sleeping bag offering the possibility to your players to build camps and a way to rest their character. These elements are also deactivatable and are not imposed. The script is 3 files long.

On the configuration side you can configure the rest time. 3 seconds by default but if you want it to take longer you have the free will to do so. You are the owner, you decide.

A management panel will allow you to configure the HUD among 13 flexible styles. And manage various options.



πŸ“¦ Contents of Gmod Fatigue mods and Sleep System

1. A database that saves the user character's fatigue state, so he doesn't fix his fatigue problem by disconnecting and reconnecting.
2. Flexible HUD to customize the fatigue indicator
3. A management interface to manage everything.
4. Dynamic options to change gameplay, malus and conditions from the management interface.
5. A Job and Job Category Management System that allows you to limit fatigue alteration depending on the job you are doing or the rank of the user.
6. 9 spawnable entities to add content to the server but also to serve as examples.
7. A sleep interface allowing the user to visit links that you put yourself. For example your shop, your forum, discord, website, wiki, etc...
8. The sound played during the sleep is created by me. But you can replace it.



❓ What kind of need can Gmod Fatigue mods and Sleep System meet?

Do you want to avoid crash servers with ragdolls falling to the ground and colliding with the environment?
You want your players to make their character sleep in a roleplay way?
Do you want more player participation on certain links like for example to go chat on the forum or on discord during the rest time?
Add a new state alteration which is "Fatigue".



βš™οΈ The integrated fatigue system management panel

You have the possibility to manage everything from an interface that you are now used to see. And to switch between all the interfaces of my different systems from the shortened buttons.
From this single interface you will be able to manage the database, the DarkRP jobs (or team), the modules, and the HUD.



πŸ—ƒοΈ Saving stats on Gmod

The database allows you to save the state of fatigue of your users or their characters.
The backup prevents the fatigue from being restored after a simple disconnection.



πŸ”› Fatigue system server modules (Gameplay options)

The module panel allows you to enable and disable a wide variety of options.
The list of modules:
fatigue_reset: Reset fatigue points when a player dies. 0=OFF.
fatigue_progress_time: Fatigue naturally increases with time, in seconds. 0=OFF.
fatigue_progress_points: Number of fatigue points distributed per loop defined by: fatigue_progress_time.
fatigue_kill: If the fatigue threshold reaches the maximum the user dies.
fatigue_sprint: When the player is tired he can't sprint anymore.
fatigue_jump: When the player is tired he can't jump anymore.
persist_tent: Deployed obejts are persistent, after a reboot they are stored in their bag.
recup_time: How long does it take to sleep to be rested (in seconds).
fatigue_stamina: When the player is tired he doesn't recover his stamina anymore.
fatigue_mana: When the player is tired he doesn't recover his mana points anymore.



🎨 Flexible HUD to edit the fatigue indicator

The management interface allows you to edit the HUD from a simple menu. The HUD is ultra editable and has 13 different styles, each of which is customizable. All in all you have a good chance to make something unique for your server. You buy a script but you remain creative and the author of your visual, stop trying to look like another server and be part of those who have a unique server.



βœ”οΈ List of spawnable entities of the sleep system

Its spawnable entities appear in the spawnmenu of the sandbox gmod but also in the spawnmenu of the system of tiredness:

The entity Somnifère: Is a consumable which allows to increase by 50% the gauge of tiredness. Useful to test the system.
Caffeine pill: Allows to decrease the fatigue rate by 10%.
Cup of coffee: Allows to decrease the fatigue of 5%.
Sleeping bag: Allows you to deploy a sleeping bag to sleep anywhere.
5 Tent bags: Allows you to deploy a tent to sleep (Tent Blue, Tent Red, Tent Green, Tent Yellow, Tent Orange).
Bed 1: Is a bed that you can place anywhere on the map. If a player presses USE in front of it he can choose to rest.
Example Bed: Is an example bed entity to help you add more bed models.
Invisible Bed: If your map already has beds that you can't remove because they are not removable props it doesn't matter, place an invisible point that will allow your users to use it.



🧲 Symbiosis with other gmod addons

Bonuses by combination of addons allow to add extra functions. For example with the Stamina System if your user reaches a max fatigue level his stamina will not regenerate, which can make him sleep his character.

None of my scripts are DLC. Don't confuse the DLC that can't work without the base script. Each one plays its role individually and all of them can work without any Gamemode and do not depend on any other script to work properly, when you put them together you get a symbiosis automatically with support between their features. This means that features will complement each other without interference. And if this is the case the technical support is also to update each script of Originahl Scripts to solve the problem if there is one.

So among the scripts already in the store:
1. Possibility to display the fatigue rate only in the user's inventory to avoid displaying it on his HUD with Gmod Advanced Inventory System
2. Possibility to prevent the restoration of the stamina when a player is tired. With Gmod Stamina System + Editable HUD
3. Ability to prevent restoration of mana points when a player reaches the maximum fatigue threshold. With Gmod Mana System + HUD Creator



🧩 Fatigue system APIs for devs

player:Fatigue() -- Returns the number of fatigue points of the user. (Client + Server)
player:GetMaxFatigue() -- Returns the maximum fatigue. (Client + Server)
player:addFatigue(add) -- Add and remove fatigue points. Works with positive and negative numeric values. (Server)
player:setFatigue(add) -- Allows you to directly assign the number of karma points of the user. (Server)



πŸ’‘ Ideas for combining scripts to make an inn or motel (hotel) system

Create an innkeeper (Created with Gmod Items Dealer) who will offer a room with a dialog window and the keys in his inventory (Lock and Key System created with Gmod Lock and Key System + Door Manager) for sale with his custom text that can sell the key to a one-time use room. Where a bed from the sleep system awaits its adventurer. And there you have an innkeeper who provides a room, and its key.


πŸ”Ή WIKI & F.A.Q πŸ‡¬πŸ‡§
Wiki πŸ‡¬πŸ‡§ Wiki πŸ‡«πŸ‡·

Wiki of Gmod Fatigue mods + Sleep System

Gmod Fatigue mods + Sleep System


☰ 1. Installation of Gmod Fatigue mods + Sleep System
Installation: Download and Unzip the folder norda_fatigue_sleep_system.zip Install the addon in the addons file of your Gmod server,
Path: garrysmod/addons/norda_fatigue_sleep_system
☰ 2. Where can I find resources and materials? What is the Gmod Fatigue mods + Sleep System Workshop id?
Vous trouverez les ressources dans le workshop de Garry's Mod sur Steam. - Gmod Workshop ID of Gmod Fatigue mods + Sleep System: 2967075466
- The AddWorkshop function is automatically added to the script server file and can be deactivated from the configuration file. : resource.AddWorkshop( 2967075466 )
- To add gmod workshop resources to your collection : Gmod Fatigue mods + Sleep System [Content Only] | Gmod Workshop
☰ 3. How to open the management menu of Gmod Fatigue mods and Sleep System?
By command: norda_fatigue_system
Or via the administration interface of : Gmod Admin System
☰ 4. Customize Gmod HUD to for example make the fatigue gauge on the HUD more discreet?
Yes to do this go to the management interface / HUD section here you will have control over the modification of the HUD. Everyone will have the same HUD on your server that you have created yourself.
Edit HUD of Sleep Mod
☰ 5. How to make the fatigue reset when a user dies?
From the management interface to the fatigue_reset line: Turn the option ON by simply clicking the button.
Modules of fatigue System
☰ 6. How do I change the progress time and fatigue points on my server?
From the management interface to the line fatigue_progress_time to set the time of loops in seconds. For example every 5 minutes set 300 seconds.
Modules of fatigue System
☰ 7. How to make extreme fatigue kill the player?
From the management interface to the fatigue_kill line: Turn the option ON by simply clicking the button.
Modules of fatigue System
☰ 8. How to make the Stamina not regenerate when the fatigue is at its maximum?
From the management interface to the fatigue_stamina line: Turn the option ON by simply clicking the button.
Modules of fatigue System
☰ 9. How can I make sure that the Mana does not regenerate when the fatigue is at its maximum?
From the management interface to the fatigue_mana line: Turn the option ON by simply clicking the button.
Modules of fatigue System
☰ 10. How to disable the sprint on gmod when the fatigue is at its maximum?
From the management interface to the fatigue_sprint line: Turn the option ON by simply clicking on the button.
Modules of fatigue System
☰ 11. How to disable the jump on gmod when the fatigue is at its maximum?
From the management interface to the fatigue_jump line: Turn the option ON by simply clicking on the button.
Modules of fatigue System
☰ 12. How to disable tent persistence to optimize the Gmod server?
From the management interface at the persist_tent line: Turn the option OFF by simply clicking the button.
Modules of fatigue System
☰ 13. How do I set the sleep time, e.g. I want the recovery time to be more than 3 seconds by default?
From the management interface to the line recup_time: to set the time of a sleep in seconds. For example for 5 minutes set 300 seconds. It is recommended not to set it too long to avoid tiring the player.
Modules of fatigue System
☰ 14. What are the consumables?
Sleeping pills: Increases fatigue by 50%.
Caffeine pills: Reduces fatigue by 10%.
Cup of coffee: Reduces fatigue by 5%.
Gmod spawnmenu fatigue entities
☰ 15. Does Gmod Fatigue mods and Sleep System already contain beds and everything?
Yes, the other entities that are not consumables are systems that give users the opportunity to rest.
It includes a sleeping bag that you can deploy.
A tent bag that you can set up/dismantle.
And spawnable beds.
The invisible bed allows you to place rest areas where there are non-removable beds on the map.
Spawnmenu of Fatigue Sleep System
☰ 16. Is the fatigue saved if a player disconnects?
Yes, the database is included in the management. This means that you can also edit the database.
Database of Fatigue Sleep System
☰ 17. How can I make fatigue immune for certain ranks, e.g. for super-administrators?
From the management interface in the RANK section: Set the fatigue resistance to 100% for e.g. superadmin ranks. If the rank doesn't exist add it with the green "Ranks" button
Manage fatigue progression for ranks
☰ 18. How to make the fatigue progress slower depending on the job? For example the night shift is more resistant to fatigue?
From the management interface in the Jobs section: Set the percentage resistance value to the jobs you want to alter. 50% to reduce the fatigue progression by half. 100% to be completely protected from the fatigue state.
Panel to edit fatigue progression
☰ 19. What happens if a character is totally tired?
That's up to you. You can prevent him from jumping, sprinting, dying, stopping stamina or mana recharge. The outline of the screen darkens, which makes you lose field of view. But moreover the eyes of the character blink which can sometimes in certain case is disabling. To fix this go to the management window.
Fatigue HUD effect on Gmod
☰ 20. How do you deploy a tent bag?
It's pretty intuitive if you see a tent bag press on it and stay close by because it won't set up by itself. A circular progress indicator will appear so wait for it to finish.
Deploy tent animation
☰ 21. Is it possible to delete entities that I don't want on my Gmod server?
Yes, go to the configuration file: to the table cfg.Fatigue_itm_List

Delete the line that contains the class name of the entity you want to remove. And reboot your server.
☰ 22. How do I save the beds I have placed on the map? Because Perma Props does not work.
From the blue admin button at the top right of the control panel you will have a save button. It only concerns entities like beds. They are listed only in the variable cfg.Sleepents_Persistance_class in the configuration file. Don't forget to include the beds you have added in addition to the default ones. This does not concern the deployed objects, there is another option for those dealt with in the next question.
Menu Save Sleep Entities
☰ 23. How to make sure that the tents are not persistent indefinitely?
You can define how many reboots a deployed object stays persistent. I put 5 reboots by default. Abandoned items can disappear without frustrating your players. An item is considered abandoned when it is not stored and deployed. To deactivate the saving of the tents. Simply set the persist_tent variable to 0 reboot.
Menu module Gmod Sleep System
☰ 24. I spawned the tents but they don't save how do I do it?
Deployable entities like tents and sleeping bags are only saved when they are deployed. If you spawn them via the gmod spawnmenu this does not trigger the backup.
Tips

Tip to avoid the leak of Gmod Fatigue mods + Sleep System installed on your Garry's Mod server: How avoid the Leak of your Gmod scripts
How Install an addon on Gmod? : How install an addon on Gmod
How Publish an addon on the Gmod workshop? : Documentation how create a content pack to publish on the workshop?

Gmod Addon


πŸ“₯ Download 2.1


🎫 Open Ticket
⛔️ Sorry, you are not connected


avatar-76561198033784269

Creator: Norda Scripts

Sales :35
Published :1 year
Last update :
Version :version 2.1
DRM :Yes
Categories : Gmod addons
Requierements : Garry's Mod Server
Languages : πŸ‡¬πŸ‡§ πŸ‡«πŸ‡·
Tags :
DarkRP Jobs VGUI HUD Gameplay Management Allgamemode