Drug/Hunger System:

Official server feature documentation can be found here

Moderators: Lead Developers, Junior Developers, Lead Admins, Developers

Post Reply
User avatar
Damian
Retired Administrator
Retired Administrator
Posts: 16175
Joined: Fri Aug 10, 2007 5:55 am

Drug/Hunger System:

Post by Damian » Mon Aug 22, 2011 8:03 am

Technical overview
Script name: Drugs
Script author(s): Damian
With the efforts of the people from DW&A we really may have quite the winner with this drug revamp. So credits towards: Sforza, Kaikoa, Julia, Or-L, and Cahneggs - viewtopic.php?f=5&t=112942 .

First and foremost drugs are drugs, they will obviously have their incentives when using them and it will of course come with light enjoyment to fulfill the dirty desire. It doesn't change the fact that there will be repercussion when taking them. I've been planning long and hard to find a good balance between usage, fun, and realism when creating this entire drug system. Drugs are not meant to be candy, but they are meant to be sold and taken by people who deem it so.

Drugs are meant to be that, just drugs. The system, the reactions, the everything will be left up for the user to experience on their own. The addiction reaction will be random, the effects will be widely different and random as well, hell even the over-dose system will be quite random as well for a lot of people. That was the main focus with the drugs, not only making each and every drug a different experience but to have each of the effects and reactions be random as well.

I believe with this system some people will obviously not do drugs if they don't want to take the risk, some people will most likely take the drugs as a hobby, some will see it as a necessity for their character. The huge OOC moral values are gone, and the drugs are free to do what they're truly deemed to be doing. Along with that people can freely make decisions about doing drugs without having the risk of dying instantly anymore. Like I said tho, what goes up must come down so many times there will be consequences for the things people choose to do.

@Hunger System
    The hunger system will work hand in hand in the deciding factor for people to use drugs which is one of the MAIN reasons I decided to add this system with the revision. The hunger system works primarily off a float value pHunger. pHunger can range from -100.0 to 100.0, as dictated by the script. The default value is 0.0.

    Every hour the value of this var goes up by random(3)(0-2), meaning either 2.0, 1.0 or 0.0. Once it reaches the values of 10.0 you will notice your health will go down by 1.0 every 1 minute. When it reaches 11.0 you will notice your health go down by 1.1, once it reaches 20.0 you'll notice your health will go down by 2.0 every 1 minute. You get the idea of what is going on here so I'll stop right there.

    It will become vital for people to /eat now and then, thus providing actual revenue and more roleplay towards restaurants & fast foods. No it's not RPGish and you wont be forced to eat every hour of the day. You only start to lose health once your pHunger var reaches 10.0 and it takes 5-10 or more hours to get that far. So you do the math.

    ps: Sprunk and candy machines do not decrease your pHunger value.

    ----
    Values of -1 and below will not require a person to eat as they will never have to abide by the eating system. They are subject to random cases of throwing up though and losing huge amounts of health to that rarely though. Remember it will be extremely rare, not constant.

@Addiction
    The way the system is now if you're addicted to a drug you will fall under the 15 minute check. Every 15 minutes a random check will be decided for a person, if the check deems so the person drug addiction will kick in. Meaning they will have the chance to lose health every 70 seconds. The health lost depends on the addiction level, and the effects placed on the person will also be based off that.

    The drug addiction can last from 10 to 25 minutes. You can either go to a doctor for legal drugs or use the drug you're currently addicted to to make the drug addiction kick in go away. The last alternative would be to just wait it out since the addiction level goes down a few points every hour. Once again with the drug system the choice is up to the player how and what they want to do with drugs.

    You will NOT be losing high amounts of health constantly and it is scripted not to kill you even if you are at low health. So the old heavy addiction system is no more.

@Drug Smugglers & Drug Dealers
    Drug smugglers have access to about 3(4 if you count crack) and Drug Dealers have access to about 5(6 if you count crack). This further pushes for a system that lets people form the drug system into however they deem it to be. Smugglers could challenge Dealers, Dealers and Smugglers could work together, one faction could be full of smugglers while another is full of dealers. Up to the people to decide.

    The drugs currently right now aren't better than one another, they're all just equally different. The way the system is designed to be. Drug Smugglers will stay an official only job, acquired through /smugglerjob. Anyone can be a Drug Dealer through /drugjob.

    Only drug dealers in official factions can /buy ingredients at drug stores. Unofficial members have to buy ingredients off others to create your drugs.

@Commands
    First thing I had planned for the command system for drugs was to go back to the old user-friendly drug system. I felt the old command names had better responses in comparison to the current /drug listing ones.
    • /mydrugs
        Self explanatory, it shows the drugs that are currently on you.
    • /vehdrugs
        Self explanatory once more, used to show what drugs are inside of a vehicle.
    • /givedrug
        Self explanatory, give a player a drug.
    • /dropdrug
        Self explanatory, drop a drug.
    • /testdrug [slot]
        To see the strength of the drug on you.
    • /putdrug(/pd) [slot] [amount]
        This command is used to place drugs inside of private vehicles.
    • /putalldrugs(/pad) ([emote])
    • /takedrug(/td) [vehicle slot] [amount]
        Used to take a drug from a vehicle.
    • /takealldrugs(/tad) ([emote])
    • /usedrug [slot] ([emote])
        This command is used to use the drugs on you. It comes with an emote option now so you can take it however you roleplayed taking it.
    • /propdrugs
        Shows the drugs inside of a house.
    • /takedrug/putdrug/pad/tad
        Work with houses now as well.
    • /extract
        For the certain ingredients to make Heroin or LSD
    • /buildsmuggle
        {DRUG SMUGGLERS ONLY} To construct your drug smuggling mission.
    • /mysmuggle
        {DRUG SMUGGLERS ONLY} To see your missions so far.
    • /clearsmuggle
        {DRUG SMUGGLERS ONLY} To clear out the smuggle mission built up.
    • /requestsmuggle
        {DRUG SMUGGLERS ONLY} To clear out the smuggle mission built up.
    • /buy
        {DRUG DEALERS ONLY}Use this at drug stores to see a list of items you can buy. Only official members have access to /buy.
    • /extract
        {DRUG DEALERS ONLY}Use this inside of a property to extract Opium and or Glory Seeds into their designated drugs. Process takes around 2-4 hours and once done it gets added to the property's drug slots.
    • /mix [ingredients/cocaine] [amount]
        Use this create your mixtures. You're only able to mix 5 substances together at this moment.
    • /mymix
        To see your current mixture.
    • /createdrug
        Once you're done with your mixture use this command to finally fuse it together and see what you get. The way formulas work now for the drugs created relies on certain formulas to get a good strength. Has to be the right formulas to get what you want.
    • /prescribe [playerid/playername] [drug name] [amount]
        {MEDICS ONLY}To remove drugs from someone.
    • /takedrugs
        {POLICE OFFICERS ONLY}To remove drugs from someone.
    • /frisk
        {POLICE OFFICERS ONLY}Drugs on person is shown there.

@Drugs
    Demerol
      http://en.wikipedia.org/wiki/Pethidine
  • How is created: Bought from doctors
  • Status: Legal
  • Type: Ingested(Pill)
    +
    • Decrease addiction level by 7.
    • Removes the addiction kick-in effects for the time being.
    -
    • Raises hunger level by 6.
    • Decrease spawn health by 5.
    • Shakey screen.

    Morphine
      http://en.wikipedia.org/wiki/Morphine
  • How is created: Bought from doctors
  • Status: Legal
  • Type: Ingested(Pill)
    +
    • Decrease addiction level by 17.
    • Removes the addiction kick-in effects for the time being.
    -
    • Decrease spawn health by 13.
    • Shakey screen.
    • Raises hunger level by 15.

    Haloperidol
      http://en.wikipedia.org/wiki/Haloperidol
  • How is created: Bought from doctors
  • Status: Legal
  • Type: Ingested(Pill)
    +
    • Decrease addiction level by 3.
    • Removes the addiction kick-in effects for the time being.
    • If addicted to certain drugs it will drop the addiction level farther than the other pharmaceutical drugs on rare occasions
    -
    • Decrease spawn health by 7
    • Shakey screen.
    • Lowers hunger level by 10

    Aspirin
      http://en.wikipedia.org/wiki/Aspirin
  • How is created: Bought from doctors.
  • Status: Legal
  • Type: Ingested(Pill)
    +
    • Removes the addiction kick-in effects for the time being.
    -
    • Decrease spawn health by 0 or 1.
    • Raises hunger level by random(3).
    • If you're out of spawnhealth you will lose health and throw up.

    Steroid
      http://en.wikipedia.org/wiki/Steroid
  • How is created: Steroids are bought from Drug Stores for $270 by Drug Dealers.
  • Status: Illegal
  • Type: Injected(Needle)
    @
    • Health goes up 10 by 20 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 50.
    • Shakey screen.
    • Lowers hunger level by (MAX_HEALTH_BONUS/10)
    • Weather effect.
    @
    • If it's the person's first time taking the drug their addiction level will rise by 3 towards the drug.
    • If addicted to the drug already the addiction level will go up by 3+random(3).
    • If addicted to another drug the addiction level will go up by 1.
    • If addiction to another drug is around 7 or lower they will be hooked on to Steroids instead if strong enough.

    Heroin
      http://en.wikipedia.org/wiki/Heroin
  • How is created: Extract the Heroin from Opium poppies inside of a Drug Den property type and wait 4 hours. The Opium plant is smuggled in by Drug Smugglers.
  • Status: Illegal
  • Type: Injected(Needle)
    @
    • Health goes up 5 by 12 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 65.
    • Lowers hunger level by (MAX_HEALTH_BONUS/10).
    • If strong enough the person will go into slow-mo mode.
    • Weather effects.
    @
    • If it's the person's first time taking the drug their addiction level will rise by 3 towards the drug.
    • If addicted to the drug already the addiction level will go up by 3+random(4).
    • If addicted to another drug the addiction level will go up by 2.
    • If addiction to another drug is around 14 or lower they will be hooked on to Heroin instead if strong enough.

    LSD
      http://en.wikipedia.org/wiki/Lysergic_acid_diethylamide
  • How is created: Extract the LSD from the Morning Glory Seed inside of a Drug Den property type and wait 2 hours. Drug Dealers buy morning glory seeds from drug stores.
  • Status: Illegal
  • Type: Ingested(Pills)
    @
    • Health goes up 2 by 4 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 50.
    • Lowers hunger level by (MAX_HEALTH_BONUS/10).
    • Slow-Mo Mode if the drug quality if high enough.
    • Shakey Camera effect
    @
    • If it's the person's first time taking the drug their addiction level will rise by 3 towards the drug.
    • If addicted to the drug already the addiction level will go up by 3+random(5).
    • If addicted to another drug the addiction level will go up by 2.
    • If addiction to another drug is around 14 or lower they will be hooked on to LSD instead if strong enough.

    Ecstasy
      http://en.wikipedia.org/wiki/MDMA
  • How is created: Ecstasy requires the following ingredients-Hydrogen Peroxide, Formic Acid, and Isosafrole. The base of the drug is 2HyP, 9FA, and 3ISO. It's up to you from this point on to find the proper formula to achieve Ecstasy with 100strength.
  • Status: Illegal
  • Type: Ingested(Pills)
    @
    • Health goes up 5 by 8 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 50.
    • Shakey screen.
    • Lowers hunger level by (MAX_HEALTH_BONUS/10).
    • Flashy weather.
    @
    • If it's the person's first time taking the drug their addiction level will rise by 5 towards the drug.
    • If addicted to the drug already the addiction level will go up by 5+random(5).
    • If addicted to another drug the addiction level will go up by 4.
    • If addiction to another drug is around 10 or lower they will be hooked on to Ecstasy instead if strong enough.

    Cocaine
      http://en.wikipedia.org/wiki/Cannabis_%28drug%29
  • How is created: Cocaine is smuggled in by Drug Smugglers.
  • Status: Illegal
  • Type: Snorted
    @
    • Health goes up 7 by 10 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 70.
    • Lowers hunger level by (MAX_HEALTH_BONUS/10).
    • Weather Effects
    @
    • If it's the person's first time taking the drug their addiction level will rise by 3 towards the drug.
    • If addicted to the drug already the addiction level will go up by 3+random(6).
    • If addicted to another drug the addiction level will go up by 2.
    • If addiction to another drug is around 15 or lower they will be hooked on to Cocaine instead if strong enough.

    Marijuana
      http://en.wikipedia.org/wiki/Cannabis_%28drug%29
  • How is created: Herb(Marijuana) seeds have to be smuggled in by Drug Smugglers first. Either they can plant it or they can give it to someone else to plant. Same system that's currently in place when it comes to weed.
  • Status: Illegal
  • Type: Smoked
    @
    • Health goes up 3 by 15 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 45.
    • XM radio FX effect.
    • It now comes with the cigar obj+smoking animation when on foot.
    @
    • Raises hunger level by (MAX_HEALTH_BONUS/9).

    Crack
      http://en.wikipedia.org/wiki/Crack_cocaine
  • How is created: Crack requires the drug- Cocaine; and the ingredient- Baking Soda. (No formula yet)
  • Status: Illegal
  • Type: Smoked
    @
    • Health goes up 15 by 5 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 75.
    • Lowers hunger level by (MAX_HEALTH_BONUS/7).
    • Weather Effects.
    @
    • If it's the person's first time taking the drug their addiction level will rise by 4 towards the drug.
    • If addicted to the drug already the addiction level will go up by 4+random(6).
    • If addicted to another drug the addiction level will go up by 3.
    • If addiction to another drug is around 20 or lower they will be hooked on to Crack instead if strong enough.

    Methamphetamine
      http://en.wikipedia.org/wiki/Methamphetamine
  • How is created: Meth requires the following ingredients: Muriatic acid, Lye, Diethyl, Ether, and Ephedrine. The base of the drug is 3MA, 7LYE, 4DIE, 7ETH, 3EPH. You're going to find your way to Meth with a 100 strength on your own.
  • Status: Illegal
  • Type: Smoked
    @
    • Weather effects
    • Health goes up 10 by 13 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 50.
    • Lowers hunger level by (MAX_HEALTH_BONUS/7).
    @
    • If it's the person's first time taking the drug their addiction level will rise by 3 towards the drug.
    • If addicted to the drug already the addiction level will go up by 3+random(3).
    • If addicted to another drug the addiction level will go up by 2.
    • If addiction to another drug is around 11 or lower they will be hooked on to Meth instead if strong enough.

    pcp
      http://en.wikipedia.org/wiki/Phencyclidine
  • How is created: Drug dealers will be able to buy it from drug stores. $200 a pill.
  • Status: Illegal
  • Type: Smoked
    @
    • Health goes up 10 by 20 seconds until it reaches it's max health bonus.
    • Has a max health bonus of 50.
    • Shakey screen.
    • Lowers hunger level by (MAX_HEALTH_BONUS/5).
    • Weather effects
    @
    • If it's the person's first time taking the drug their addiction level will rise by 3 towards the drug.
    • If addicted to the drug already the addiction level will go up by 2+random(3).
    • If addicted to another drug the addiction level will go up by 1.
    • If addiction to another drug is around 7 or lower they will be hooked on to Steroids instead if strong enough.
Damian Calhoun
Manager
Head of Staff
Head of Boards
Head of Development
SA:MP BetaTester '06
Tester Information:
Information About Applying.
Head of Mapping.
Contact Information
IRC.
PM me!
Ventrilo.
Highest Player Count:
550!
DamianC.


User avatar
Adio
Retired Administrator
Retired Administrator
Posts: 6620
Joined: Wed Feb 25, 2009 5:34 pm
Ingame name: Yeh_Umiren
Location: STRAYA KNT

Re: Drug/Hunger System:

Post by Adio » Wed Aug 31, 2011 2:03 am

Updated: 31/08/2011.

    • /givedrug
        Self explanatory, give a player a drug.
    • /dropdrug
        Self explanatory, drop a drug.
Image

User avatar
Adio
Retired Administrator
Retired Administrator
Posts: 6620
Joined: Wed Feb 25, 2009 5:34 pm
Ingame name: Yeh_Umiren
Location: STRAYA KNT

Re: Drug/Hunger System:

Post by Adio » Sat Sep 10, 2011 3:10 pm

Updated: 10/09/2011.

    • /propdrugs
        Shows the drugs inside of a house.
    • /takedrug/putdrug/pad/tad
        Work with houses now as well.
    • /extract
        For the certain ingredients to make Heroin or LSD
Image

User avatar
Damian
Retired Administrator
Retired Administrator
Posts: 16175
Joined: Fri Aug 10, 2007 5:55 am

Re: Drug/Hunger System:

Post by Damian » Fri Sep 30, 2011 9:25 pm

-/testdrug
-/prescribe
-/extract
-Only official drug dealers have access to /buy in drug shops.
-/drugjob is used to get drug dealer, /smugglerjob is for drug smuggler(Official only). Commands done at blackmarket.
Damian Calhoun
Manager
Head of Staff
Head of Boards
Head of Development
SA:MP BetaTester '06
Tester Information:
Information About Applying.
Head of Mapping.
Contact Information
IRC.
PM me!
Ventrilo.
Highest Player Count:
550!
DamianC.


User avatar
Or-L
Retired Administrator
Retired Administrator
Posts: 5064
Joined: Thu Jun 28, 2007 11:46 pm

Re: Drug/Hunger System:

Post by Or-L » Sat Oct 01, 2011 12:53 pm

NOTE:
Regarding ounces. It's no secret nearly everyone on the server roleplayed an ounce of drugs being 20 grams due to the fact players were limited to 20 on hand packages per character. This was changed, and now you can hold up to 2,400 grams on your character.
With that, I urge everyone to start roleplaying ounces for what they really are, 28.34 grams. 28 will do too, since it would be difficult to measure milligrams.
Image

User avatar
Damian
Retired Administrator
Retired Administrator
Posts: 16175
Joined: Fri Aug 10, 2007 5:55 am

Re: Drug/Hunger System:

Post by Damian » Fri Oct 07, 2011 10:45 pm

-Ingredient limit increased to 50k.
-Smuggle max order increased to 100 a slot.
-Smuggle product price reduced to 45 a prod.
Damian Calhoun
Manager
Head of Staff
Head of Boards
Head of Development
SA:MP BetaTester '06
Tester Information:
Information About Applying.
Head of Mapping.
Contact Information
IRC.
PM me!
Ventrilo.
Highest Player Count:
550!
DamianC.


Jay-Jay
Retired Administrator
Retired Administrator
Posts: 12461
Joined: Sun Jan 09, 2011 11:34 pm

Re: Drug/Hunger System:

Post by Jay-Jay » Sun Sep 09, 2012 10:49 am

To give a player an ingredient.

USAGE:

Code: Select all

/giveingr [playerid/playername] [slot] [amount] [emote]


Image

To drop an ingredient.

USAGE:

Code: Select all

/dropingr [ingr ID] [emote]


Image

Post Reply

Return to “Feature documentation”

Who is online

Users browsing this forum: CrimeG