UPDATE
- Added config TCF.Config.CookingSecondsMinimum
- Amount of seconds a pot must cook for before being able to finish.
- Added config TCF.Config.ChanceToFinish
- Default value is 2, which means once Celsius reach 100 (green area) there is 50% chance of finishing (it will continue to check over time). If you set the config to 3, there will be a 33% chance and so on.
- Added config TCF.Config.ExtractorSoundLevel
- Sets the sound level of the steam sound when extractor is enabled.
Two users have reported that people were able to mass-produce cocaine mixture, and these two configs should be able to prevent this. Set the cooking seconds minimum higher and adjust the chance to finish, so it will be harder for a pot to finish once the Celsius reach 100.
Changed files are: lua/ch_cocaine/shared/cocaine_config.lua and lua/entities/cocaine_stove/init.lua and lua/entities/cocaine_extractor/init.lua
UPDATE
- Added config TCF.Config.DisplayUIDistance to control how far away the display above cocaine dealer will show.
- Removed forgotten debug prints.
Updated files are: the_cocaine_factory\lua\entities\cocaine_drugs_buyer\cl_init.lua - the_cocaine_factory\lua\entities\cocaine_drugs_buyer\init.lua - the_cocaine_factory\lua\ch_cocaine\shared\cocaine_config.lua
UPDATE
- Added a repair wrench swep.
- HOT custom model.
- It can be bought from the F4 menu.
- It works for all entities inside the table HealableCocaineEntityList.
- Stove, extractor and drying rack will all stop healing at their max health (set from the other configs).
- Can damage players.
- The f4 item can be modified in cocaine_darkrp_entities.lua.
The workshop content has also been updated.
UPDATE
- Optimized entities/cocaine_stove/cl_init.lua
- Added config TCF.Config.ShowStoveHealth to enable/disable the health bar display on the stove.
UPDATE
- Fixed a potential crash when exploding entities.
All entity files are updated, so when you update your version you must replace the entire addon or just go to the_cocaine_factory/lua/ and delete the entities folder and replace it with the new folder.
UPDATE
- Added a visual display on the stove to display health.
- Added damage given to the stove when a pot overcooks.
- Added a missing validation check once an overcooked pot is deleted.
- Fixed overcooked pots being able to go into the extractor once on fire. When on fire the mixture is now unusable.
- Updated stove smoke effects.
- Implemented more efficient way for cooldowns.
There's been a slight update to the workshop content for this update. It will automatically update once you restart your server.
UPDATE
- Added overcooking to pots. If they stay for too long on an active cooking pan they will overheat and catch fire.
- Added config TCF.Config.OverCookingTimeMin
- Minimum amount of seconds after the cooking is finished till it overcooks and catches fire.
- Added config TCF.Config.OverCookingTimeMax
- Maximum amount of seconds after the cooking is finished till it overcooks and catches fire.
- Added config TCF.Config.PotOnFireTimer
- Amount of seconds the pot should be on fire after overcooking before being removed.
- Optimized cooldown function for cocaine stove.
UPDATE
- Added sound effects to the NPC when trying to interact with him.
- Only using default hl2 sounds, so no new content is needed.
- Recoded owner recognizing of the cocaine box. This should fix problems for some customers.
- Fixed cocaine box having no physics after being spawned through itemstore.
UPDATE
- New drying rack features.
- Model updated.
- Drying rack now requires batteries to operate (purchase through F4).
- Drying rack can hold up to 2 batteries.
- The drying process now requires lights to be enabled with a switch.
- Added sounds to the new lights switch.
- Added a 'fail' sound if the drying process fails due to running out of power.
- New extractor features.
- Model updated.
- Added smoke effects.
- Added sound effect when turning on the extractor.
- Battery configuration added.
- Added config TCF.Config.BatteryHealth.
- Added config TCF.Config.BatteryDecreaseTimer.
- Added config TCF.Config.BatteryDecreaseAmount.
CONTENT UPDATE - This update adds both model and material changes, so the workshop content has also been updated.
Remember to check out the new media!
UPDATE
- Fixed a serverside error with the cocaine entities.
Updated files are shared/cocaine_config.lua and server/cocaine_server.lua
UPDATE
- Changed file structure again to fix itemstore loading.
- Fully fixed ItemStore issues for the cocaine box.
- If you join a team that is not in the TCF.Config.CriminalTeams list your cocaine items will be removed.
- Added config TCF.Config.RemoveEntsOnTeamChange.
- When disconnecting from the server it will also clean up your cocaine items.
- Added config TCF.Config.RemoveEntsOnDC.
UPDATE
- Fixed an exploit when selling cocaine boxes to the druggie NPC.
- Fixed ItemStore support and errors related to that.
- Removed TCF.Config.EnableItemStore as it was not needed.