Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- By JohnyReaper and Sterling Pierce
- -- All rights reserved
- -- http://steamcommunity.com/profiles/76561198061794800/
- -- http://steamcommunity.com/profiles/76561198290392006/
- JCrafting = JCrafting or {} --
- JCrafting.ingredients = JCrafting.ingredients or {} -- Don't touch this >.<
- JCrafting.recipes = JCrafting.recipes or {} --
- ////////////////////////////////////////////
- ////////////////////////////////////////////
- ////////////////////////////////////////////
- ////// ╔═══╗╔═══╗╔═╗ ╔╗╔═══╗╔══╗╔═══╗ //////
- ////// ║╔═╗║║╔═╗║║║╚╗║║║╔══╝╚╣╠╝║╔═╗║ //////
- ////// ║║ ╚╝║║ ║║║╔╗╚╝║║╚══╗ ║║ ║║ ╚╝ //////
- ////// ║║ ╔╗║║ ║║║║╚╗║║║╔══╝ ║║ ║║╔═╗ //////
- ////// ║╚═╝║║╚═╝║║║ ║║║║║ ╔╣╠╗║╚╩═║ //////
- ////// ╚═══╝╚═══╝╚╝ ╚═╝╚╝ ╚══╝╚═══╝ //////
- ////////////////////////////////////////////
- ////////////////////////////////////////////
- ////////////////////////////////////////////
- // Where and what kind of items can be spawned?
- // You can use !jcraftpos command to check vector in game.
- JCrafting.materials = {
- [1] = {
- // Put here vectors, where items can be spawn?
- Vectors = {
- Vector(-557.126892 -14116.918945 -6924.747559),
- Vector(-8050.692871 -2948.819824 -6938.491211),
- Vector(1483.558105 9122.705078 -8081.522461),
- Vector(-1318.736206 7591.833008 -8197.902344),
- Vector(-6528.458496 13145.138672 -8911.013672),
- Vector(-3339.733887 6525.214355 -8286.657227),
- Vector(-5149.183594 -12835.377930 -6832.120117),
- Vector(3215.182861 8914.208984 -8496.768555),
- Vector(-5149.183594 -12835.377930 -6832.120117),
- Vector(-6528.458496 13145.138672 -8911.013672),
- Vector(-3339.733887 6525.214355 -8286.657227),
- Vector(3215.182861 8914.208984 -8496.768555),
- Vector(-14954.069336 -2489.207520 -7031.182129),
- Vector(-10232.677734 -9973.470703 -8715.806641),
- Vector(-3244.702637 -13147.291016 -6910.252441),
- Vector(7331.501465 6415.577637 -7516.979004),
- },
- // Which items can be spawned? [Entity only]
- Entities = {
- "j_crafting_ingredient_metal",
- "j_crafting_ingredient_plastic",
- "j_crafting_ingredient_wood",
- "j_crafting_ingredient_tools",
- },
- },
- [2] = {
- Vectors = {
- Vector(-804.812, -1784.137, -143.969),
- Vector(-757.204, -1504.082, -143.969),
- },
- Entities = {
- "j_crafting_ingredient_wood",
- "j_crafting_ingredient_tools",
- },
- }
- }
- // Enable or disable loot system module [Spawning materials every x seconds]
- JCrafting.lootsystem = true
- // Crafting table can be picked by gravity gun?
- JCrafting.tablecanbegravity = false
- // Jobs that can use the craft table. Leave it empty if you want everyone to use it
- JCrafting.crafters = {}
- --JCrafting.crafters = {} <-- It should look like this if you want every player to use it
- // Every how many seconds materials are be spawn
- JCrafting.timenextspawn = 160
- // Every how many seconds materials on the map are be removed [3600 seconds = 1 hour]
- JCrafting.timetoremove = 1600
- // How many items can be created every spawn? Value minimum and Value maximum.
- // Example: If value minimum is 1 and value maximum is 3 then system draws a number from 1 to 3
- JCrafting.SpawnItemMin = 1 -- Value Minimum
- JCrafting.SpawnItemMax = 4 -- Value Maximum
- // How many spawns are to be drawn (JCrafting.timenextspawn) seconds?
- // Please make you sure value isn't higher than the number of vectors in 'JCrafting.ingredientspositions'
- JCrafting.SpawnsEveryTime = 16
- // Model for Wood item
- JCrafting.woodmodels = {"models/sterling/cs_wood_large.mdl", "models/sterling/cs_wood_small.mdl"}
- // Model for Metal item
- JCrafting.metalmodels = {"models/sterling/cs_metal_plate_small.mdl",
- "models/sterling/cs_metal_plate_medium.mdl",
- "models/sterling/cs_metal_plate_big.mdl",
- "models/sterling/cs_metal_pipe_small.mdl",
- "models/sterling/cs_metal_pipe_medium.mdl",
- "models/sterling/cs_metal_pipe_big.mdl",
- "models/sterling/cs_metal_gear_small.mdl",
- "models/sterling/cs_metal_gear_medium.mdl",
- "models/sterling/cs_metal_gear_big.mdl",
- }
- // Model for plastic item
- JCrafting.plasticmodels = {
- "models/sterling/cs_plastic_bottle_01.mdl",
- "models/sterling/cs_plastic_bottle_02.mdl",
- "models/sterling/cs_plastic_bottle_03.mdl",
- }
- // Model for tools item
- JCrafting.toolsmodels = {
- "models/sterling/cs_tools_hammer.mdl",
- "models/sterling/cs_tools_wrench.mdl",
- "models/sterling/cs_tools_philips.mdl",
- "models/sterling/cs_tools_slotted.mdl",
- "models/sterling/cs_tools_plyers.mdl",
- }
- // Icon for wood icon which is in 3d2d and derma
- JCrafting.woodicon = "jcrafting/wlog.png"
- // Icon for metal icon which is in 3d2d and derma
- JCrafting.metalicon = "jcrafting/metal.png"
- // Icon for plastic icon which is in 3d2d and derma
- JCrafting.plasticicon = "jcrafting/plasticc.png"
- // Icon for tools icon which is in 3d2d and derma
- JCrafting.toolsicon = "jcrafting/toolss.png"
- ////////////////////////////////////////////////
- ////// ╔═══╗╔═══╗╔═══╗╔══╗╔═══╗╔═══╗╔═══╗ //////
- ////// ║╔═╗║║╔══╝║╔═╗║╚╣╠╝║╔═╗║║╔══╝║╔═╗║ //////
- ////// ║╚═╝║║╚══╗║║ ╚╝ ║║ ║╚═╝║║╚══╗║╚══╗ //////
- ////// ║╔╗╔╝║╔══╝║║ ╔╗ ║║ ║╔══╝║╔══╝╚══╗║ //////
- ////// ║║║╚╗║╚══╗║╚═╝║╔╣╠╗║║ ║╚══╗║╚═╝║ //////
- ////// ╚╝╚═╝╚═══╝╚═══╝╚══╝╚╝ ╚═══╝╚═══╝ //////
- ////////////////////////////////////////////////
- /*
- JCrafting.recipes[1] = { -- This is just like uniqueID. Can perform sort order role. Make sure that the number is not repeated
- name = "9mm Pistol", -- Name of this recipe
- class = "weapon_pistol", -- Classname of this recipe. You can get it, pressing Q, go to weapons (or entities), right click and "Copy to Clipboard"
- model = "models/weapons/w_pistol.mdl", -- Model of this recipe
- ingredients = { -- Here, you can configure the ingredients needed to create the object
- ["j_crafting_ingredient_wood"] = { -- "j_crafting_ingredient_wood" <-- Put classname here classname from the entities tab for the ingredient
- Name = "Wood", -- Ingredient name which is displayed in Requirements tab
- HowManyNeeded = 1, -- How much you need this ingredient?
- },
- ["j_crafting_ingredient_metal"] = {
- Name = "Metal",
- HowManyNeeded = 1,
- },
- ["j_crafting_ingredient_tools"] = {
- Name = "Tools",
- HowManyNeeded = 1,
- },
- ["j_crafting_ingredient_plastic"] = {
- Name = "Plastic",
- HowManyNeeded = 1,
- },
- },
- NoWeapon = true, -- Declares that the recipe will not be a weapon. Use this when you want craft something from entities tab
- 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
- CCheck = function(ply) -- Custom Check. You can put here functions to extra check
- return ply:Health() == 50
- end,
- CCheckMessage = "You can't do that", -- It shows up to player when for example player doesn't have 50 health
- }
- Below are some examples :)
- */
- JCrafting.recipes[1] = {
- name = "Police Pistol",
- class = "weapon_policepistol",
- model = "models/halokiller38/fallout/weapons/pistols/policepistol.mdl",
- ingredients = {
- ["j_crafting_ingredient_wood"] = {
- Name = "Wood",
- HowManyNeeded = 2,
- },
- ["j_crafting_ingredient_metal"] = {
- Name = "Metal",
- HowManyNeeded = 4,
- },
- ["j_crafting_ingredient_tools"] = {
- Name = "Tools",
- HowManyNeeded = 1,
- },
- ["j_crafting_ingredient_plastic"] = {
- Name = "Plastic",
- HowManyNeeded = 1,
- },
- },
- CCheck = function(ply)
- return ply:Health() == 70
- end,
- }
- JCrafting.recipes[2] = {
- name = "R91 Assault Rifle",
- class = "weapon_r91assaultrifle",
- model = "models/halokiller38/fallout/weapons/assaultrifles/r91assaultrifle.mdl",
- ingredients = {
- ["j_crafting_ingredient_wood"] = {
- Name = "Wood",
- HowManyNeeded = 3,
- },
- ["j_crafting_ingredient_metal"] = {
- Name = "Metal",
- HowManyNeeded = 5,
- },
- ["j_crafting_ingredient_tools"] = {
- Name = "Tools",
- HowManyNeeded = 1,
- },
- ["j_crafting_ingredient_plastic"] = {
- Name = "Plastic",
- HowManyNeeded = 2,
- },
- },
- CCheck = function(ply)
- return ply:Health() >= 50
- end,
- CCheckMessage = "You can't do that",
- }
- JCrafting.recipes[3] = {
- name = "12.7mm Silenced SMG",
- class = "weapon_127mmsmgsil",
- model = "models/halokiller38/fallout/weapons/smgs/127smgsilencer.mdl",
- ingredients = {
- ["j_crafting_ingredient_plastic"] = {
- Name = "Plastic",
- HowManyNeeded = 1,
- },
- ["j_crafting_ingredient_metal"] = {
- Name = "Metal",
- HowManyNeeded = 5,
- },
- ["j_crafting_ingredient_tools"] = {
- Name = "Tools",
- HowManyNeeded = 1,
- },
- },
- }
- JCrafting.recipes[4] = {
- name = "Combat Shotgun",
- class = "weapon_combatshotgun",
- model = "models/halokiller38/fallout/weapons/shotguns/combatshotgun.mdl",
- ingredients = {
- ["j_crafting_ingredient_wood"] = {
- Name = "Wood",
- HowManyNeeded = 3,
- },
- ["j_crafting_ingredient_metal"] = {
- Name = "Metal",
- HowManyNeeded = 6,
- },
- ["j_crafting_ingredient_tools"] = {
- Name = "Tools",
- HowManyNeeded = 1,
- },
- },
- }
- JCrafting.recipes[5] = {
- name = "Radio",
- class = "fallout_entropy",
- model = "models/maxib123/radio.mdl",
- ingredients = {
- ["j_crafting_ingredient_wood"] = {
- Name = "Wood",
- HowManyNeeded = 2,
- },
- ["j_crafting_ingredient_metal"] = {
- Name = "Metal",
- HowManyNeeded = 1,
- },
- ["j_crafting_ingredient_plastic"] = {
- Name = "Plastic",
- HowManyNeeded = 1,
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement