Stable1.2.0
UPDATE
- Optimized sunglasses code/spawning of clientside prop.
- Added support for multiply druggie NPC's. Please see description for guide how to set it up.
- Multiply druggie NPC's will have different randomized payout. So for each NPC, the payout will be different.
- This is based on the configs PayPerPackMin & PayPerPackMax.
- The randomized payout still changes after RandomPayoutInterval config.
- Added command 'cocainebuyer_removepos uniquename' to delete NPC's via console.
- All spawnpoints can be found in data/craphead_scripts/the_cocaine_factory/map_name/*.txt
- Changed command 'cocainebuyer_setpos' to take a unique name arguement.
- This means you will now need to type 'cocainebuyer_setpos uniquename' to setup an NPC position.
- If you do it wrong the console/chat will help you correct it.
- Different scaling method for positioning drugs buyer NPC menu.
- Fixed a few missing IsValid checks that could have caused errors.
- Added support for Vrondakis Leveling System ( https://github.com/vrondakis/Leveling-System )
- Added config TCF.Config.DryingRackGiveXP & TCF.Config.DryingRackXPAmount
- Added config TCF.Config.FinishCookGiveXP & TCF.Config.FinishCookXPAmount
- Added config TCF.Config.ExtractorGiveXP & TCF.Config.ExtractorXPAmount
- Added config TCF.Config.OnSellGiveXP & TCF.Config.OnSellXPAmount
- All this configuration can be found in the bottom of cocaine_config.lua
- Added smoke effect to the stove/pots.
- Added config to disable smoke for the server TCF.Config.StoveSmokeEffect (under the stove entity).
- Added itemstore support for the cocaine box.
- Saves amount of cocaine packs it holds.
- Saves open/closed stage when picked up.
- New file structure.
- Configuration is now located in lua/autorun/ch_cocaine/shared/...
I recommend you completely re-install the script. Save your config file and replace the values one by one if you want to keep the config. This update has a new file structure, making it impossible to just overwrite some files and not everything. The multiply NPC's support also requires you set new positions for NPC's.
If you have trouble with the NPC locations, go to garrysmod/data/the_cocaine_factory and delete that folder. It will require you to reset NPC location(s).