Stable1.5.8
UPDATE
- Added drying finished and drying failed hooks
- CH_Cocaine_DryingFinished (ply, ent)
- CH_Cocaine_DryingFailed(ply, ent)
Updated file: lua/entities/cocaine_drying_rack/init.lua
Stable1.5.7
UPDATE
- Fixed a rare bug where thermometers would not be removed if pans were removed.
Stable1.5.6
UPDATE
- When interacting with extractor, drying rack and stove it will now notify the player directly instead of the owner.
- When adding entities to extractor, drying rack and stove it will notify the owner of the entity dropped into it instead of the owner of the main entity.
- Fixed blend sequences and button actions only being networked to the person that starts the process.
- It now networks properly to everyone.
- Removed custom NW vars for health and utilize gmods default SetHealth and Health.
- Removed unused code.
- Few micro-optimization here and there.
Stable1.5.5
UPDATE
- Various QoL and optimization updates to the code.
- Removed all uses of table.HasValue
- Removed
EnableDonatorBonusconfig and let it auto fall-back to 1 if not defined. - All the supported XP systems are now automatically detected. You will not have to manually enable them in the config anymore.
- If you set the XP to give amounts to 0 it will be as if you disable giving XP (in case you have XP systems, but don't want to use it).
- More reliable way of initializing the addon and buyer NPC.
- Remade structure of
TCF.Config.DonatorBonusestable for optimization purpose. - Cocaine box and cocaine packs ownership are now updated on gravgun/physgun pickup to allow players to steal those entities are sell to the NPC.
- Police jobs are now able to confiscate single cocaine packs just like they can confiscate cocaine boxes. By pressing E on the entity.
- Now using SafeRemoveEntityDelayed to remove entities.
- Replaced IsAdmin checks with IsSuperAdmin to spawn/remove cocaine buyer NPCs.
- Adjusted alignment of NPC display description.
- Outline on NPC 3d2d is now black.
Stable1.5.4
UPDATE
- Fixed an error with the cocaine extractor causing it not to work.
Updated file: lua/entities/cocaine_extractor/init.lua
Stable1.5.3
UPDATE
- Added a hook when selling cocaine (CH_COCAINE_SellCocaine)
Updated file: lua/entities/cocaine_drugs_buyer/init.lua
Stable1.5.2
UPDATE
- Replaced some pairs with ipairs for optimization.
- Replaced deprecated function for optimization.
- Cached materials for optimization.
- Updated some colors for 3d2d.
- Added better controls for how much gas is used when cooking and how fast.
- Config
TCF.Config.GasUsageDurationcontrols how often gas is adjusted. - Config
TCF.Config.GasUsagePerDurationcontrols how much gas is consumed when adjusted. - Gas is now a float. So you can set
TCF.Config.GasUsagePerDurationto 0.2 for example and it will consume a lot less gas than normally. - Added a config to adjust how intensive/visible the smoke effect should be.
- Config option
TCF.Config.SmokeEffectAlpha
Stable1.5.1
UPDATE
- Fixed a missing translation for when drying rack ran out of battery during dry process.
Only the language file has been updated.
Stable1.5.0
UPDATE
- Fixed compatibility with GlorifiedLevel support.
Stable1.4.9
UPDATE
- Added support for xp systems Sublime Levels - Vrondakis Level System - Elite XP System (EXP2) - GlorifiedLeveling - DarkRP Essentials - Brick's Essentials.
- 13 configurations to enable/disable the XP systems individually as well as giving XP in the following situations:
- When selling cocaine.
- When finished drying cocaine.
- When finished cooking a cocaine mixture.
- When finished extracting raw cocaine in the extractor.
- You can define how much XP per scenario.
Find the XP configurations around line 136 in the configuration or search for XP SUPPORT.
Stable1.4.8
UPDATE
- Added missing validation check in some timers.
- Removed some globals.
Stable1.4.7
UPDATE
- Safely remove entities in Touch hooks to prevent warnings/crashes.
- Removed some redundant code.