Advertisement
Crap-Head

CH Farming - Config FIle

Dec 27th, 2020
965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.42 KB | None | 0 0
  1. -- SET LANGUAGE
  2. -- Available languages: English: en - Danish: da - French: fr
  3. CH_Farming.Config.Language = "en" -- Set the language of the script.
  4.  
  5. --[[
  6.     General
  7. --]]
  8. CH_Farming.Config.NotificationTime = 10 -- Amount of seconds notifications will show.
  9. CH_Farming.Config.EnableHungermod = false -- Should grown crops be eat-able or not?
  10. CH_Farming.Config.DistanceTo3D2D = 50000 -- Distance to any 3d2d element before it is no longer drawn.
  11.  
  12. CH_Farming.Config.CrosshairColor = Color( 255, 255, 255, 255 ) -- Color of the crosshair on farming tools.
  13.  
  14. CH_Farming.Config.FarmingTeams = { -- These teams are allowed to sell crates of crops to the farmer NPCs.
  15.     "Citizen",
  16.     "Farmer",
  17.     "Hobo"
  18. }
  19.  
  20. CH_Farming.Config.EntitiesHealth = { -- Set healths for different entities in the table below.
  21.     ["Crate"] = 150,
  22.     ["Lamp"] = 250,
  23.     ["PlantSack"] = 100,
  24.     ["SeedPacks"] = 50,
  25.     ["Crops"] = 25,
  26.     ["LampBattery"] = 75,
  27.     ["DirtBag"] = 125,
  28. }
  29.  
  30. --[[
  31.     Shovel
  32. --]]
  33. -- To get a grass material on the map, take out the shovel as superadmin & right click on the grass you found. (then add to the list below)
  34. CH_Farming.Config.DistanceToDigHole = 3500 -- Distance between players aim and their position before allowing to dig a hole in grass.
  35.  
  36. -- List of actual materials you can dig in. This works somewhere, and sometimes it does not (depending on the map).
  37. -- You can use the shovel as an admin to debug what material and material type the surface you're aiming at is. Press 'Reload' while aiming at a surface.
  38. CH_Farming.Config.GrassMaterials = {
  39.     ["CS_HAVANA/GROUND01GRASS"] = true,
  40.     ["DE_TRAIN/TRAIN_GRASS_FLOOR_01"] = true,
  41.     ["NATURE/GRASSFLOOR002A"] = true,
  42.     ["DE_TRAIN/TRAIN_CEMENT_FLOOR_01"] = true,
  43.     ["GROUND/SNOW01"] = true,
  44.     ["NATURE/BLENDGRASSGRAVEL001A"] = true -- NO COMMA ON LAST LINE!
  45. }
  46.  
  47. -- List of material types that you can dig in. true means you can dig, false means you can't. Full list: https://wiki.facepunch.com/gmod/Enums/MAT
  48. CH_Farming.Config.MaterialTypes = {
  49.     [65] = false, -- ANTLION
  50.     [66] = false, -- BLOODYFLESH
  51.     [67] = false, -- CONCRETE / NODRAW
  52.     [68] = true,  -- DIRT
  53.     [70] = false, -- FLESH
  54.     [71] = false, -- GRATE
  55.     [72] = false, -- ALIENFLESH
  56.     [73] = false, -- CLIP
  57.     [76] = false, -- PLASTIC
  58.     [77] = false, -- METAL
  59.     [78] = false, -- SAND
  60.     [79] = false, -- FOLIAGE
  61.     [80] = false, -- COMPUTER
  62.     [83] = false, -- SLOSH
  63.     [84] = false, -- TILE
  64.     [85] = true,  -- GRASS
  65.     [86] = false, -- VENT
  66.     [87] = false, -- WOOD
  67.     [89] = false  -- GLASS
  68. }
  69.  
  70. -- NEED MORE HELP WITH MATERIALS TO DIG HOLES IN? View this knowledge base article: https://www.gmodstore.com/help/addon/7487/shovel/topics/configurating-materials-that-the-shovel-accepts
  71.  
  72. --[[
  73.     Crop Hole/Pot
  74. --]]
  75. CH_Farming.Config.RemoveInactiveHoleTimer = 600 -- Amount of seconds before an inactive hole is removed.
  76.  
  77. -- Adjusting sun level (These are the same configs used for the lamp when growing inside)
  78. CH_Farming.Config.AdjustSunLevelTimer = 3 -- Adjust the sun level every x second.
  79.  
  80. CH_Farming.Config.DecreaseSunLevelMin = 2 -- Minimum amount to decrease if the hole/pot is inside.
  81. CH_Farming.Config.DecreaseSunLevelMax = 4 -- Maximum amount to decrease. It is randomized.
  82.  
  83. CH_Farming.Config.IncreaseSunLevelMin = 2 -- Minimum amount to increase if the hole/pot is outside.
  84. CH_Farming.Config.IncreaseSunLevelMax = 4 -- Maximum amount to increase. It is randomized.
  85.  
  86. -- Adjusting water level
  87. CH_Farming.Config.AdjustWaterLevelTimer = 20 -- Decrease the water level in hole/pot every x second.
  88.  
  89. CH_Farming.Config.DecreaseWaterLevelMin = 2 -- Minimum amount to decrease if the hole/pot is inside.
  90. CH_Farming.Config.DecreaseWaterLevelMax = 3 -- Maximum amount to decrease. It is randomized.
  91.  
  92. -- Adjusting weeds in hole
  93. CH_Farming.Config.AddWeedsTimer = 600 -- Increase the amount of weeds in the hole every x second. (Default: 10 minutes)
  94. CH_Farming.Config.ExtraSecondsPerWeed = 7 -- There is a total of 5 stages of weeds in a hole. For every stage of weeds, this is the amount of seconds to add of extra time. So stage 2 weeds (40%) will add 14 extra seconds to grow time.
  95.  
  96. CH_Farming.Config.DeadPlantDieTime = 30 -- WHEN A PLANT HAS DIED how many seconds does it take to vanish?
  97.  
  98. --[[
  99.     Weeding Tool
  100. --]]
  101. CH_Farming.Config.CleanWeedsDelay = 5 -- Amount of seconds delay to use the weeding tool to remove weeds from holes. (MINIMUM 5 SECONDS SO THE ANIMATION CAN PLAY)
  102.  
  103. --[[
  104.     Watering Can
  105. --]]
  106. CH_Farming.Config.UseWaterCanDelay = 2 -- Amount of seconds delay to water holes or pots.
  107.  
  108. --[[
  109.     Lamp / Battery
  110. --]]
  111. CH_Farming.Config.BatteryDecreaseInterval = 10 -- Amount of seconds interval between decreasing battery
  112. CH_Farming.Config.DecreaseBatteryMin = 3 -- Minimum amount to decrease battery charge with.
  113. CH_Farming.Config.DecreaseBatteryMax = 7 -- Maximum amount to decrease battery charge with. This is randomized.
  114.  
  115. CH_Farming.Config.LampToSackDistance = 12500 -- Distance between a plant sack and a lamp. Within this distance it will increase the sun/light level of the sack.
  116.  
  117. --[[
  118.     Crate
  119. --]]
  120. CH_Farming.Config.CrateDefaultWeight = 500 -- How many grams can the crate hold by default.
  121.  
  122. -- Crate donator weights
  123. CH_Farming.Config.CrateDonatorWeight = {
  124.     { UserGroup = "user", CrateGrams = 500 },
  125.     { UserGroup = "vip", CrateGrams = 750 },
  126.     { UserGroup = "admin", CrateGrams = 750 },
  127.     { UserGroup = "superadmin", CrateGrams = 1000 },
  128.     { UserGroup = "owner", CrateGrams = 1000 },
  129. }
  130.  
  131. --[[
  132.     Crops
  133. --]]
  134. CH_Farming.Config.CropsGramsAmount = { -- This defines the MINIMUM and MAXIMUM amount of grams the crops can weight when harvested.
  135.     ["Lettuce"] = { 50, 200 }, -- So for example lettuce will weight between 50 and 200 grams (randomly) when harvested.
  136.     ["Pepper"] = { 50, 180 },
  137.     ["Corn"] = { 50, 100 },
  138.     ["Tomato"] = { 25, 75 },
  139.     ["Wheat"] = { 25, 50 }
  140. }
  141.  
  142. CH_Farming.Config.CropsGrowTime = { -- How long does it take (by default, before weeds) for each crop to grow 100% - IN SECONDS
  143.     ["Lettuce"] = 60,
  144.     ["Pepper"] = 80,
  145.     ["Corn"] = 90,
  146.     ["Tomato"] = 90,
  147.     ["Wheat"] = 60
  148. }
  149.  
  150. --[[
  151.     Sell Crops NPC
  152. --]]
  153. CH_Farming.Config.SellDistance = 40000 -- Distance between crate of crops, player and NPC to be able to sell crops.
  154.  
  155. CH_Farming.Config.RandomizePayoutInterval = 300 -- Every 300 second it will randomize how much crops are worth (per gram) - see table below!
  156.  
  157. CH_Farming.Config.CropsGramsWorth = { -- How much ONE gram is worth for the different crops. Minimum and maximum and it randomizes the payout.
  158.     ["Lettuce"] = { 1, 2 },
  159.     ["Pepper"] = { 1, 2 },
  160.     ["Corn"] = { 1, 3 },
  161.     ["Tomato"] = { 1, 3 },
  162.     ["Wheat"] = { 2, 3 }
  163. }
  164.  
  165. -- XP SUPPORT
  166. CH_Farming.Config.DarkRPLevelSystemEnabled = false -- DARKRP LEVEL SYSTEM BY vrondakis https://github.com/uen/Leveling-System
  167. CH_Farming.Config.SublimeLevelSystemEnabled = false -- Sublime Levels by HIGH ELO CODERS https://www.gmodstore.com/market/view/6431
  168. CH_Farming.Config.EssentialsXPSystemEnabled = false -- Brick's Essentials and/or DarkRP Essentials by Brickwall https://www.gmodstore.com/market/view/5352 & https://www.gmodstore.com/market/view/7244
  169. CH_Farming.Config.EXP2SystemEnabled = false -- Elite XP SYstem (EXP2) By Axspeo https://www.gmodstore.com/market/view/4316
  170. CH_Farming.Config.GlorifiedLevelingXPSystem = false -- GlorifiedLeveling by GlorifiedPig https://www.gmodstore.com/market/view/7254
  171.  
  172. CH_Farming.Config.SellXPAmountMin = 20 -- Minimum amount of experience to give to the player when selling crops.
  173. CH_Farming.Config.SellXPAmountMax = 50 -- Maximum amount of experience to give to the player when selling crops.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement