Hello everyone! I decided on this script to improve the RP experience of the players and create some possible work for the doctors! With this fully configurable script, you will have the opportunity to create and use diseases!
There are currently 4 diseases available (I'm happy to update with new ideas, so please propose them to me!):
Broken leg: The walk will be limping, it will definitely fall if it starts while there is a 25% chance of falling while standing.
Cold: There will be a sneeze animation and black screen as a closed eye simulation.
Headache: Vibration of the screen
Stomach Ache: You will be hungrier.
Config
There is the possibility in the config to set whatever is needed.
It is configured to give you the choice of whether the diseases should be contagious or not.
~ If anyone is interested I’m available to help you put the option in the doctors menu.
How do you get sick?
The player can get sick completely randomly.
For stomach ache, you get sick if you are hungry within a certain amount of time.
For colds, it could also happen when the weather is rainy or snowy or even while you are in the water.
Your leg could break if you are shot or hit by a vehicle
How can I be treated?
From version v1.0.3, doctors will have the possibility to diagnose a blip, so that the system tells them the treatment. Treatments are items that, if used, after the animation of the pill will cure the disease.
Contagion options!
In case you choose to make them contagious:
The broken leg would only infect people who would be hit by the fall.
A cold would only infect nearby players.
Update v1.0.4 (02/10/2021) Starting with this version, it is possible to set masks that decrease the probability of being infected and areas in which there is a lower or greater probability of being infected. All updates are free. Latest version: 1.0.5
Conclusions Any disease can be added or removed! Since the script is not obfuscated, it will allow you to add whatever you want with a few simple steps.
Hi! The disease and effects are different, also, in that code, you have to work a lot to add other effects, you can only have one disease at a time and the code doesn’t seem optimized to me very much. It is also not contagious.
Diseases are not fatal in themselves, but they will certainly kill you, if for example you are driving and sneezing, you will probably crash, if you fall, you will take damage!
Suggestion make player have to sleep/rest identify an entity and press E to sleep. If player dont sleep start ragdoling randomly and maybe black screens. Until he falls asleep on the street. Then a timer to get him up.
Ok, yeah, it’s totally doable, but I don’t think it’s about a disease script, more like an “esx_sleep” maybe? With a possible integration to the disease script that if you don’t sleep maybe you get a headache. Thank you for the tip!
It’s not something you build up over time, it’s a completely random situation, so a bar wouldn’t be useful. For the other idea, however, it could be very interesting.