Drugs
bs_drugs, all numbers in bs_drugs/config/config.lua. Start it after bs_boosters.
The drugs
Section titled “The drugs”Each drug comes in three qualities. Cut ones drop from zombies, normal ones are sold by The Fence trader (fence_sandy), pure ones are crafted inside your faction base.
| Drug | Cut | Normal | Pure | Effect |
|---|---|---|---|---|
| Cocaine | cocaine_bad | cocaine | cocaine_good | faster sprint, much less stamina drain, ~3 min |
| Morphine | morphine_bad | morphine | morphine_good | part of health loss refunded, +90 s bleed out while down |
| Amphetamine | amphetamine_bad | amphetamine | amphetamine_good | less aim sway, better stamina regen |
| Weed | weed_bad | weed | weed_good | infection builds up slower |
Quality: cut is 0.6x effect and 1.6x addiction, pure is 1.3x effect and 0.7x addiction.
Also: cigarette (+1 HP every 4 s while smoking, stamina capped at 30, you can walk), lighter, matches (one per cigarette) and rehab_kit.
The items are in bs_inventory/config/config_items.lua, category drug. The pure recipes (craft_<drug>_good) have factionBase = true.
How it runs
Section titled “How it runs”Use from inventory -> server checks you have it -> removes it, starts the timer, adds addiction -> client plays the anim and applies the effects. The effects are published in the bsDrugMods statebag (drain, regen, cap, infection, sway) which bs_core and bs_skills read. Screen effects are in Drugs.Fx.
Addiction
Section titled “Addiction”Stored in the character metadata drug_addiction, no table needed. Levels at 25 / 55 / 85 points. Withdrawal starts 15 min after the last use: more sway, worse stamina and health regen, camera shake from level 2. Points go down 0.5/min after 10 min clean.
A rehab_kit clears all addiction. The only source is Doc Harlan (rehab_doc_paleto) at the Paleto refuge, two missions: bring 4 antibiotics, or kill 60 walkers. One at a time, 2 hours shared cooldown.
bs19.org · Privacy · Terms · Cookie settings