Skip to content

Drugs

bs_drugs, all numbers in bs_drugs/config/config.lua. Start it after bs_boosters.

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.

DrugCutNormalPureEffect
Cocainecocaine_badcocainecocaine_goodfaster sprint, much less stamina drain, ~3 min
Morphinemorphine_badmorphinemorphine_goodpart of health loss refunded, +90 s bleed out while down
Amphetamineamphetamine_badamphetamineamphetamine_goodless aim sway, better stamina regen
Weedweed_badweedweed_goodinfection 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.

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.

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.