Advertisement
Guest User

Config

a guest
Oct 23rd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.26 KB | None | 0 0
  1. -- By JohnyReaper and Sterling Pierce
  2. -- All rights reserved
  3. -- http://steamcommunity.com/profiles/76561198061794800/
  4. -- http://steamcommunity.com/profiles/76561198290392006/
  5. JCrafting = JCrafting or {} --
  6. JCrafting.ingredients = JCrafting.ingredients or {} -- Don't touch this >.<
  7. JCrafting.recipes = JCrafting.recipes or {} --
  8. ////////////////////////////////////////////
  9. ////////////////////////////////////////////
  10. ////////////////////////////////////////////
  11. ////// ╔═══╗╔═══╗╔═╗ ╔╗╔═══╗╔══╗╔═══╗ //////
  12. ////// ║╔═╗║║╔═╗║║║╚╗║║║╔══╝╚╣╠╝║╔═╗║ //////
  13. ////// ║║ ╚╝║║ ║║║╔╗╚╝║║╚══╗ ║║ ║║ ╚╝ //////
  14. ////// ║║ ╔╗║║ ║║║║╚╗║║║╔══╝ ║║ ║║╔═╗ //////
  15. ////// ║╚═╝║║╚═╝║║║ ║║║║║ ╔╣╠╗║╚╩═║ //////
  16. ////// ╚═══╝╚═══╝╚╝ ╚═╝╚╝ ╚══╝╚═══╝ //////
  17. ////////////////////////////////////////////
  18. ////////////////////////////////////////////
  19. ////////////////////////////////////////////
  20.  
  21. // Where and what kind of items can be spawned?
  22. // You can use !jcraftpos command to check vector in game.
  23. JCrafting.materials = {
  24.  
  25.  
  26. [1] = {
  27. // Put here vectors, where items can be spawn?
  28. Vectors = {
  29. Vector(-557.126892 -14116.918945 -6924.747559),
  30. Vector(-8050.692871 -2948.819824 -6938.491211),
  31. Vector(1483.558105 9122.705078 -8081.522461),
  32. Vector(-1318.736206 7591.833008 -8197.902344),
  33. Vector(-6528.458496 13145.138672 -8911.013672),
  34. Vector(-3339.733887 6525.214355 -8286.657227),
  35. Vector(-5149.183594 -12835.377930 -6832.120117),
  36. Vector(3215.182861 8914.208984 -8496.768555),
  37. Vector(-5149.183594 -12835.377930 -6832.120117),
  38. Vector(-6528.458496 13145.138672 -8911.013672),
  39. Vector(-3339.733887 6525.214355 -8286.657227),
  40. Vector(3215.182861 8914.208984 -8496.768555),
  41. Vector(-14954.069336 -2489.207520 -7031.182129),
  42. Vector(-10232.677734 -9973.470703 -8715.806641),
  43. Vector(-3244.702637 -13147.291016 -6910.252441),
  44. Vector(7331.501465 6415.577637 -7516.979004),
  45.  
  46. },
  47. // Which items can be spawned? [Entity only]
  48. Entities = {
  49. "j_crafting_ingredient_metal",
  50. "j_crafting_ingredient_plastic",
  51. "j_crafting_ingredient_wood",
  52. "j_crafting_ingredient_tools",
  53. },
  54. },
  55.  
  56. [2] = {
  57. Vectors = {
  58. Vector(-804.812, -1784.137, -143.969),
  59. Vector(-757.204, -1504.082, -143.969),
  60.  
  61. },
  62. Entities = {
  63. "j_crafting_ingredient_wood",
  64. "j_crafting_ingredient_tools",
  65. },
  66. }
  67.  
  68. }
  69.  
  70. // Enable or disable loot system module [Spawning materials every x seconds]
  71. JCrafting.lootsystem = true
  72.  
  73. // Crafting table can be picked by gravity gun?
  74. JCrafting.tablecanbegravity = false
  75.  
  76. // Jobs that can use the craft table. Leave it empty if you want everyone to use it
  77. JCrafting.crafters = {}
  78. --JCrafting.crafters = {} <-- It should look like this if you want every player to use it
  79.  
  80. // Every how many seconds materials are be spawn
  81. JCrafting.timenextspawn = 160
  82.  
  83. // Every how many seconds materials on the map are be removed [3600 seconds = 1 hour]
  84. JCrafting.timetoremove = 1600
  85.  
  86. // How many items can be created every spawn? Value minimum and Value maximum.
  87. // Example: If value minimum is 1 and value maximum is 3 then system draws a number from 1 to 3
  88. JCrafting.SpawnItemMin = 1 -- Value Minimum
  89. JCrafting.SpawnItemMax = 4 -- Value Maximum
  90.  
  91. // How many spawns are to be drawn (JCrafting.timenextspawn) seconds?
  92. // Please make you sure value isn't higher than the number of vectors in 'JCrafting.ingredientspositions'
  93. JCrafting.SpawnsEveryTime = 16
  94.  
  95. // Model for Wood item
  96. JCrafting.woodmodels = {"models/sterling/cs_wood_large.mdl", "models/sterling/cs_wood_small.mdl"}
  97.  
  98. // Model for Metal item
  99. JCrafting.metalmodels = {"models/sterling/cs_metal_plate_small.mdl",
  100. "models/sterling/cs_metal_plate_medium.mdl",
  101. "models/sterling/cs_metal_plate_big.mdl",
  102. "models/sterling/cs_metal_pipe_small.mdl",
  103. "models/sterling/cs_metal_pipe_medium.mdl",
  104. "models/sterling/cs_metal_pipe_big.mdl",
  105. "models/sterling/cs_metal_gear_small.mdl",
  106. "models/sterling/cs_metal_gear_medium.mdl",
  107. "models/sterling/cs_metal_gear_big.mdl",
  108. }
  109.  
  110. // Model for plastic item
  111. JCrafting.plasticmodels = {
  112. "models/sterling/cs_plastic_bottle_01.mdl",
  113. "models/sterling/cs_plastic_bottle_02.mdl",
  114. "models/sterling/cs_plastic_bottle_03.mdl",
  115. }
  116.  
  117. // Model for tools item
  118. JCrafting.toolsmodels = {
  119. "models/sterling/cs_tools_hammer.mdl",
  120. "models/sterling/cs_tools_wrench.mdl",
  121. "models/sterling/cs_tools_philips.mdl",
  122. "models/sterling/cs_tools_slotted.mdl",
  123. "models/sterling/cs_tools_plyers.mdl",
  124. }
  125.  
  126. // Icon for wood icon which is in 3d2d and derma
  127. JCrafting.woodicon = "jcrafting/wlog.png"
  128.  
  129. // Icon for metal icon which is in 3d2d and derma
  130. JCrafting.metalicon = "jcrafting/metal.png"
  131.  
  132. // Icon for plastic icon which is in 3d2d and derma
  133. JCrafting.plasticicon = "jcrafting/plasticc.png"
  134.  
  135. // Icon for tools icon which is in 3d2d and derma
  136. JCrafting.toolsicon = "jcrafting/toolss.png"
  137.  
  138. ////////////////////////////////////////////////
  139. ////// ╔═══╗╔═══╗╔═══╗╔══╗╔═══╗╔═══╗╔═══╗ //////
  140. ////// ║╔═╗║║╔══╝║╔═╗║╚╣╠╝║╔═╗║║╔══╝║╔═╗║ //////
  141. ////// ║╚═╝║║╚══╗║║ ╚╝ ║║ ║╚═╝║║╚══╗║╚══╗ //////
  142. ////// ║╔╗╔╝║╔══╝║║ ╔╗ ║║ ║╔══╝║╔══╝╚══╗║ //////
  143. ////// ║║║╚╗║╚══╗║╚═╝║╔╣╠╗║║ ║╚══╗║╚═╝║ //////
  144. ////// ╚╝╚═╝╚═══╝╚═══╝╚══╝╚╝ ╚═══╝╚═══╝ //////
  145. ////////////////////////////////////////////////
  146. /*
  147. JCrafting.recipes[1] = { -- This is just like uniqueID. Can perform sort order role. Make sure that the number is not repeated
  148. name = "9mm Pistol", -- Name of this recipe
  149. class = "weapon_pistol", -- Classname of this recipe. You can get it, pressing Q, go to weapons (or entities), right click and "Copy to Clipboard"
  150. model = "models/weapons/w_pistol.mdl", -- Model of this recipe
  151.  
  152. ingredients = { -- Here, you can configure the ingredients needed to create the object
  153. ["j_crafting_ingredient_wood"] = { -- "j_crafting_ingredient_wood" <-- Put classname here classname from the entities tab for the ingredient
  154. Name = "Wood", -- Ingredient name which is displayed in Requirements tab
  155. HowManyNeeded = 1, -- How much you need this ingredient?
  156. },
  157. ["j_crafting_ingredient_metal"] = {
  158. Name = "Metal",
  159. HowManyNeeded = 1,
  160. },
  161. ["j_crafting_ingredient_tools"] = {
  162. Name = "Tools",
  163. HowManyNeeded = 1,
  164. },
  165. ["j_crafting_ingredient_plastic"] = {
  166. Name = "Plastic",
  167. HowManyNeeded = 1,
  168. },
  169. },
  170.  
  171. NoWeapon = true, -- Declares that the recipe will not be a weapon. Use this when you want craft something from entities tab
  172. IsProp = true, -- Add this if you want craft prop. If set to true then you do not need to add a class variable to recipe
  173.  
  174. CCheck = function(ply) -- Custom Check. You can put here functions to extra check
  175. return ply:Health() == 50
  176. end,
  177. CCheckMessage = "You can't do that", -- It shows up to player when for example player doesn't have 50 health
  178. }
  179.  
  180. Below are some examples :)
  181. */
  182.  
  183. JCrafting.recipes[1] = {
  184. name = "Police Pistol",
  185. class = "weapon_policepistol",
  186. model = "models/halokiller38/fallout/weapons/pistols/policepistol.mdl",
  187.  
  188. ingredients = {
  189. ["j_crafting_ingredient_wood"] = {
  190. Name = "Wood",
  191. HowManyNeeded = 2,
  192. },
  193. ["j_crafting_ingredient_metal"] = {
  194. Name = "Metal",
  195. HowManyNeeded = 4,
  196. },
  197. ["j_crafting_ingredient_tools"] = {
  198. Name = "Tools",
  199. HowManyNeeded = 1,
  200. },
  201. ["j_crafting_ingredient_plastic"] = {
  202. Name = "Plastic",
  203. HowManyNeeded = 1,
  204. },
  205. },
  206. CCheck = function(ply)
  207. return ply:Health() == 70
  208. end,
  209. }
  210.  
  211.  
  212. JCrafting.recipes[2] = {
  213. name = "R91 Assault Rifle",
  214. class = "weapon_r91assaultrifle",
  215. model = "models/halokiller38/fallout/weapons/assaultrifles/r91assaultrifle.mdl",
  216.  
  217. ingredients = {
  218. ["j_crafting_ingredient_wood"] = {
  219. Name = "Wood",
  220. HowManyNeeded = 3,
  221. },
  222. ["j_crafting_ingredient_metal"] = {
  223. Name = "Metal",
  224. HowManyNeeded = 5,
  225. },
  226. ["j_crafting_ingredient_tools"] = {
  227. Name = "Tools",
  228. HowManyNeeded = 1,
  229. },
  230. ["j_crafting_ingredient_plastic"] = {
  231. Name = "Plastic",
  232. HowManyNeeded = 2,
  233. },
  234. },
  235. CCheck = function(ply)
  236. return ply:Health() >= 50
  237. end,
  238. CCheckMessage = "You can't do that",
  239. }
  240.  
  241. JCrafting.recipes[3] = {
  242. name = "12.7mm Silenced SMG",
  243. class = "weapon_127mmsmgsil",
  244. model = "models/halokiller38/fallout/weapons/smgs/127smgsilencer.mdl",
  245.  
  246. ingredients = {
  247. ["j_crafting_ingredient_plastic"] = {
  248. Name = "Plastic",
  249. HowManyNeeded = 1,
  250. },
  251. ["j_crafting_ingredient_metal"] = {
  252. Name = "Metal",
  253. HowManyNeeded = 5,
  254. },
  255. ["j_crafting_ingredient_tools"] = {
  256. Name = "Tools",
  257. HowManyNeeded = 1,
  258. },
  259. },
  260. }
  261.  
  262.  
  263. JCrafting.recipes[4] = {
  264. name = "Combat Shotgun",
  265. class = "weapon_combatshotgun",
  266. model = "models/halokiller38/fallout/weapons/shotguns/combatshotgun.mdl",
  267.  
  268. ingredients = {
  269. ["j_crafting_ingredient_wood"] = {
  270. Name = "Wood",
  271. HowManyNeeded = 3,
  272. },
  273. ["j_crafting_ingredient_metal"] = {
  274. Name = "Metal",
  275. HowManyNeeded = 6,
  276. },
  277. ["j_crafting_ingredient_tools"] = {
  278. Name = "Tools",
  279. HowManyNeeded = 1,
  280. },
  281. },
  282. }
  283.  
  284. JCrafting.recipes[5] = {
  285. name = "Radio",
  286. class = "fallout_entropy",
  287. model = "models/maxib123/radio.mdl",
  288.  
  289. ingredients = {
  290. ["j_crafting_ingredient_wood"] = {
  291. Name = "Wood",
  292. HowManyNeeded = 2,
  293. },
  294. ["j_crafting_ingredient_metal"] = {
  295. Name = "Metal",
  296. HowManyNeeded = 1,
  297. },
  298. ["j_crafting_ingredient_plastic"] = {
  299. Name = "Plastic",
  300. HowManyNeeded = 1,
  301. },
  302. },
  303. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement