Stable1.1.9
UPDATE
- Fixed a net message missing a delay to prevent abuse.
Updated file: lua/entities/ch_farming/buyer/init.lua
Stable1.1.8
UPDATE
- Increased cooldown on NPC to prevent E spam.
- Removed unused code.
- Minor color adjustments.
- Added outline to all text in 3d2d overheads
- Added config to make watering can unlimited.
- Config enable/disable
CH_Farming.Config.UnlimitedWaterCan - Never run out, disable disposing it and HUD.
- 3d2d above farmer NPC will now wrap if too long.
- General improvements of old code.
- Added config table for list of random models the NPC can have.
- Config table
CH_Farming.Config.NPCModelList
Stable1.1.7
UPDATE
- Fixed the farming NPC model from workshop sometime "floating" in the air.
- Added black outline to 3d2d text above NPC.
Updated files: lua/entities/ch_farming_buyer/ <-- everything here
Stable1.1.6
UPDATE
- Fixed a bug where you could dig a whole from a plant sack.
- Added an idle animation to the NPC to hopefully fix some problems with the player models.
Stable1.1.5
UPDATE
- Improved NPC code.
- Removed
CH_Farming.Config.UseWaterCanDelay - You can now water again when the animation has fully played.
- Improved the code for all weapons that sets the idle animation.
- Recoded and optimized the water amount networking for the watering can swep.
- Watering can HUD will now change to "Press 'R' to dispose" if it's empty instead of showing 0%
Stable1.1.4
UPDATE
- Fixed a problem with the XP util function.
Updated file: lua/ch_farming/server/ch_farming_xp.lua
Stable1.1.3
UPDATE
- QoL updates to various code parts.
- Cached LocalPlayer, CurTime, ScrW, ScrH and such for micro-optimization.
- Fixed fonts used in user interface not scaling properly.
- Added a util function to give xp that automatically detects which XP system you are using.
- That means the manual configs for enabling your XP system are removed.
- Switched to a more reliable hook for initializing entities and creating data storage files for NPC.
Stable1.1.2
UPDATE
- Fixed a rare error in relation to dropping the watering can.
Updated file: lua/ch_farming/server/ch_farming_server.lua
Stable1.1.1
UPDATE
- Cached variables for optimization.
- Replaced pairs with ipairs loops where possible for optimization.
- Removed table.HasValue and replaced with a more optimized solution.
- Recoded donator functions to remove loop and implement more optimized solution.
- Ability to remove holes dug by a player if they change team from a non-farmer job.
- Config option to enable/disable
CH_Farming.Config.RemoveHolesOnTeamChange
This update requires that you redo your configuration. There's multiple changes, additions and mostly optimization of some old code.
Stable1.1.0
UPDATE
- Added Chinese translation thanks to MISSMISSmmm
- Removed some globals and changed meta function to be more unique.
- The NPC buyer now collides with players.
- Replaced depreciated self.Owner and self.Weapon with updated code.
Stable1.0.9
UPDATE
- Added Russian translation thanks to Levanchik
Updated file: lua/ch_farming/shared/ch_farming_config_lang.lua
Stable1.0.8
UPDATE
- Safely remove entities in Touch hooks to prevent warnings/crashes.
- Removed forgotten debug print.
- Holes now spawn more accurately to the shovel animation (0.6 seconds faster).