Silhouhat

cook_config.lua

Jun 21st, 2017
934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.90 KB | None | 0 0
  1. SILCOOK = SILCOOK or {}
  2. SILCOOK.Config = SILCOOK.Config or {}
  3.  
  4. -- Upcoming feature. How long after the last stovetop has been turned off should the stovetop be considered "cool?"
  5. -- Currently only works with the light.
  6. SILCOOK.Config.HotSurfaceTime = 30
  7.  
  8. -- How long should it take oven to preheat?
  9. SILCOOK.Config.OvenPreheatTime = 60
  10.  
  11. -- How much fuel does the propane canister give to the stove?
  12. SILCOOK.Config.FuelAmount = 50
  13.  
  14. -- Whether or not to display the fuel/preheating 3D2D. If set to true, players will have to rely on the instructional lights.
  15. SILCOOK.Config.RealisticMode = false
  16.  
  17. -- Delays for the effects of fire smoke, fire, and pot smoke. ( set to math.inf to disable )
  18. SILCOOK.Config.StoveSmokeDelay = .1
  19. SILCOOK.Config.StoveFireDelay = .025
  20. SILCOOK.Config.PotSmokeDelay = .2
  21.  
  22. -- Fuel lost per second for the oven & a stovetop.
  23. SILCOOK.Config.OvenFuelRate = .04
  24. SILCOOK.Config.StovetopFuelRate = .015
  25.  
  26. -- Although gamemodes other than DarkRP are not supported out of the box, you can still turn this off if you want to try and make it work with your gamemode.
  27. -- Don't change this unless you know what you are doing.
  28. SILCOOK.Config.UsingDarkRP = true
  29.  
  30. -- Whether or not to use ItemStore additions such
  31. SILCOOK.Config.UseItemstore = true
  32.  
  33. -- If a stove explodes, anyone in this radius will instantly die.
  34. SILCOOK.Config.StoveKillzone = 200
  35. -- If a stove explodes, this is the maximum radius that a player will be hurt in.
  36. SILCOOK.Config.StoveEffectzone = 450
  37.  
  38. -- Same as above, except for the propane explosion.
  39. SILCOOK.Config.PropaneKillzone = 100
  40. SILCOOK.Config.PropaneEffectzone = 250
  41.  
  42. -- Whether or not to use the Food & Household Items workshop addons for models & sounds.
  43. SILCOOK.Config.UseFoodAddon = true
  44.  
  45. -- Make sure to change this if you set SILCOOK.Config.UseFoodAddon to false.
  46. SILCOOK.Config.EatSound = "eating_and_drinking/eating.wav"
  47.  
  48. -- Baking tray model, change if SILCOOK.Config.UseFoodAddon is set to false.
  49. SILCOOK.Config.BakingTrayModel = "models/foodnhouseholditems/mcdmealplate.mdl"
  50.  
  51. -- Not this also scales the pot & baking tray max.
  52. SILCOOK.Config.MaxStoves = 1
  53.  
  54. hook.Add( "DarkRPFinishedLoading", "SILCOOK.Config.Job Loading", function() -- Don't worry about this
  55.  
  56. -- These are/this is the job(s) that are/is allowed to purchase a stove, cooking materials, and ingredients from the F4 menu. Set to nil to disable.
  57. SILCOOK.Config.Job = { TEAM_COOK, TEAM_MAYOR } -- i.e. { TEAM_COOK, TEAM_MAYOR, TEAM_CITIZEN }
  58.  
  59. end ) -- Don't worry about this either.
  60.  
  61. -- Language configuration
  62. SILCOOK.Config.Language = {
  63.     ["MUSH"] = "Mush",
  64.  
  65.     -- Follinwg is used in DarkRP notifications. You don't need to edit this if you have SILCOOK.Config.UsingDarkRP set to false.
  66.     ["POT_EMPTY"] = "There is nothing in the pot for you to collect!",
  67.     ["POT_TAKEINGREDIENTS"] = "You have taken your ingredients from the cooking pot!",
  68.     ["POT_SILCOOKMONEY"] = "You have received %m from cooking %r!", -- %m = Money Received | %r = Recipe
  69.     ["POT_SILCOOKFOOD"] = "You have successfully cooked %r!", -- %r = Recipe
  70.  
  71.     ["TRAY_EMPTY"] = "There is nothing in the tray for you to collect!",
  72.     ["TRAY_TAKEINGREDIENTS"] = "You have taken your ingredients from the baking tray!",
  73.     ["TRAY_SILCOOKMONEY"] = "You have received %m from baking %r!", -- Refer to POT_SILCOOKMONEY
  74.     ["TRAY_SILCOOKFOOD"] = "You have successfully baked %r!", -- Refer to POT_SILCOOKFOOD
  75.  
  76.     ["STOVE_OUTOFFUEL"] = "This stove is out of fuel!",
  77.     ["STOVE_OVENEMPTY"] = "There is nothing in the oven!",
  78.     ["STOVE_TRAYTAKE"] = "You have retrieved the baking tray from the oven!",
  79.  
  80.     -- Following is ItemStore language configuration. You don't need to edit this if you have SILCOOK.Config.UseItemstore set to false.
  81.     ["IS_INGREDIENT_DESC"] = "An ingredient used in cooking.",
  82.  
  83.     ["IS_FOOD_DESC"] = "Yummy!",
  84.  
  85.     ["IS_SILCOOKINGPOT_NAME"] = "Cooking Pot",
  86.     ["IS_SILCOOKINGPOT_DESC"] = "A pot used to put ingredients in and cook on a stove.",
  87.  
  88.     ["IS_PROPANE_NAME"] = "Propane Canister",
  89.     ["IS_PROPANE_DESC"] = "A propane canister used in fueling a stove.",
  90.  
  91.     ["IS_STOVE_NAME"] = "Stove",
  92.     ["IS_STOVE_DESC"] = "A stove used for cooking ingredients.",
  93.  
  94.     ["IS_BAKINGTRAY_NAME"] = "Baking Tray",
  95.     ["IS_BAKINGTRAY_DESC"] = "A tray used to put ingredients in and bake in an oven.",
  96. }
  97.  
  98. --[[-------------------------------------------------------------------------
  99.     INGREDIENT CONFIGURATION
  100. ---------------------------------------------------------------------------]]
  101. SILCOOK.Config.Ingredients = {
  102.     ["Bread Slice"] = { -- This is the name of your ingredient.
  103.         model = "models/foodnhouseholditems/bread_slice.mdl", -- This is the model path of your ingredient.
  104.         amt = 1, -- This is the amount the ingredient will give in a stove. Every recipe requirement that uses this ingredient must be a multiple of this to work.
  105.         txt = "%c slices of bread", -- This is what the pot will display for the ingredient. Use "%c" to display the number of this ingredient in the pot.
  106.         price = 5, -- This is the price of the ingredient in the F4 menu. Set to "false" to disable this ingredient from being sold there.
  107.     }, -- Make sure to not forget this comma!
  108.  
  109.     ["Cheese"] = {
  110.         model = "models/foodnhouseholditems/cheesewheel1c.mdl",
  111.         amt = 1,
  112.         txt = "%c slices of cheese",
  113.         price = 10,
  114.     },
  115.  
  116.     ["Lettuce"] = {
  117.         model = "models/foodnhouseholditems/lettuce.mdl",
  118.         amt = 1,
  119.         txt = "%c slices of lettuce",
  120.         price = 5,
  121.     },
  122.  
  123.     ["Raw Beef"] = {
  124.         model = "models/foodnhouseholditems/bacon_2.mdl",
  125.         amt = 2,
  126.         txt = "%coz of raw beef",
  127.         price = 20,
  128.     },
  129.  
  130.     ["Raw Turkey"] = {
  131.         model = "models/foodnhouseholditems/turkey.mdl",
  132.         amt = 1,
  133.         txt = "%c raw turkey",
  134.         price = 40,
  135.     },
  136.  
  137.     ["Methylamine"] = {
  138.         model = "models/props_lab/jar01a.mdl",
  139.         amt = 5,
  140.         txt = "%coz of methylamine",
  141.         price = 300,
  142.     },
  143.  
  144.     ["Lighter Fluid"] = {
  145.         model = "models/props_junk/garbage_plasticbottle003a.mdl",
  146.         amt = 3,
  147.         txt = "%coz of lighter fluid",
  148.         price = 80,
  149.     },
  150.  
  151.     ["Dough"] = {
  152.         model = "models/foodnhouseholditems/bread-1.mdl",
  153.         amt = 3,
  154.         txt = "%clbs of dough",
  155.         price = 30,
  156.     },
  157.  
  158.     ["Potato"] = {
  159.         model = "models/foodnhouseholditems/potato.mdl",
  160.         amt = 3,
  161.         txt = "%c potato(es)",
  162.         price = 10,
  163.     },
  164.  
  165.     ["Raw Lobster"] = {
  166.         model = "models/foodnhouseholditems/lobster.mdl",
  167.         amt = 1,
  168.         txt = "%c raw lobster",
  169.         price = 60,
  170.     },
  171.  
  172.     ["Egg"] = {
  173.         model = "models/foodnhouseholditems/egg1.mdl",
  174.         amt = 1,
  175.         txt = "%c egg(s)",
  176.         price = 5,
  177.     },
  178.  
  179.     ["Milk"] = {
  180.         model = "models/foodnhouseholditems/milk2.mdl",
  181.         amt = 1,
  182.         txt = "%c gallon(s) of milk",
  183.         price = 10,
  184.     },
  185.  
  186.     ["Flour"] = {
  187.         model = "models/props_junk/metal_paintcan001a.mdl",
  188.         amt = 1,
  189.         txt = "%c cups of flour",
  190.         price = 15,
  191.     },
  192.  
  193.     ["Vanilla Frosting"] = {
  194.         model = "models/foodnhouseholditems/icecream2.mdl",
  195.         amt = 2,
  196.         txt = "%coz(s) of vanilla frosting",
  197.         price = 15,
  198.     },
  199.  
  200.     ["Chocolate Frosting"] = {
  201.         model = "models/foodnhouseholditems/icecream4.mdl",
  202.         amt = 2,
  203.         txt = "%coz(s) of chocolate frosting",
  204.         price = 15,
  205.     },
  206.  
  207.     ["Ketchup"] = {
  208.         model = "models/foodnhouseholditems/ketchup.mdl",
  209.         amt = 1,
  210.         txt = "%coz(s) of ketchup",
  211.         price = 10,
  212.     },
  213.  
  214.     ["Salt"] = {
  215.         model = "models/props_junk/GlassBottle01a.mdl",
  216.         amt = 1,
  217.         txt = "%ctblsp of salt",
  218.         price = 10,
  219.     },
  220.  
  221.     ["Sugar"] = {
  222.         model = "models/props_junk/garbage_glassbottle003a.mdl",
  223.         amt = 1,
  224.         txt = "%ctblsp of sugar",
  225.         price = 15,
  226.     },
  227.  
  228.     ["Raw Steak"] = {
  229.         model = "models/foodnhouseholditems/steak1.mdl",
  230.         amt = 1,
  231.         txt = "%c raw steak(s)",
  232.         price = 40,
  233.     }
  234. }
  235.  
  236. -- For compatibility with your other entities, you can add more custom ingredients that work with other addons here.
  237. SILCOOK.Config.EntIngredients = {
  238.     --["sent_ball"] = { -- The class name of your other entity.
  239.     --  name = "Ball", -- Normal name of your other entity.
  240.     --  amt = 1, -- Amount given per one entity to the pot.
  241.     --  txt = "%c ball(s)", -- Indicator of the entity's amount in the pot.
  242.     --},
  243. }
Advertisement
Add Comment
Please, Sign In to add comment