
π«Weapon Crafting
progress = {
duration = 5000, -- this is multiplied by the amount the player chooses to process
label = 'Crafting item..', -- label for progressCircle
},
skillCheck = { -- skillCheck settings can be removed if you wish and it will just use the progressCircle instead
--{'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'hard'}, {'w', 'a', 's', 'd'}, -- this is abit more difficult than the default one if you wish to use this instead
{'easy', 'easy', 'easy'}, {'e'},
},Config.Weapons = {
['Legion'] = {--the key is the location name and must match throughout
['Pistols'] = { -- this is the category name and this contains the list of craftable items
['weapon_pistol'] = { -- this is the item name
recipe = { -- this is a table of items required to make the item name above
--name is item name
--amount is amount of that item required
--removed is a boolean if that item should be removed or just an item check for things like tools
{ name = 'pistol_rail', amount = 1, remove = true, },
{ name = 'pistol_body', amount = 1, remove = true, },
{ name = 'pistol_clip', amount = 1, remove = true, },
{ name = 'trigger', amount = 1, remove = true, },
{ name = 'screwdriverset', amount = 1, remove = false, },
},
returned = {-- return amounts for crafting the item (always set to return 1 for weapons to ensure serial numbers are applied correctly)
amount = 1,
},
progress = {
duration = 5000, -- this is multiplied by the amount the player chooses to process
label = 'Crafting pistol', -- label for progressCircle
},
skillCheck = { -- skillCheck settings can be removed if you wish and it will just use the progressCircle instead
--{'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'hard'}, {'w', 'a', 's', 'd'}, -- this is abit more difficult than the default one if you wish to use this instead
{'easy', 'easy', 'easy'}, {'e'},
},
anim = {
dict = 'amb@prop_human_parking_meter@female@base', -- name of anim dict used (set to nil for nothing)
anim = 'base_female', -- name of anim used (set to nil for nothing)
flag = 41, -- flag number
props = { -- prop settings
{
model = 'prop_tool_screwdvr03', -- name of prop model used (set to nil for nothing)
bone = 57005, -- bone index used (set to nil for nothing)
pos = vec3(0.1, 0.1, 0.06), -- vec3 value for prop position (set to nil for nothing)
rot = vec3(124.0, 0.0, 16.0), -- vec3 value for prop rotation (set to nil for nothing)
},
{
model = 'prop_piercing_gun', -- name of prop model used (set to nil for nothing)
bone = 18905, -- bone index used (set to nil for nothing)
pos = vec3(0.14, 0.04, -0.02), -- vec3 value for prop position (set to nil for nothing)
rot = vec3(186.0, 40.0, 186.0), -- vec3 value for prop rotation (set to nil for nothing)
},
},
},
},
--add more items as required
},
--add more categories as required
},
--add more weapon shops as required
}Last updated