Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------
- local function AddBase(tbl)
- GM.DataBase.ItemBases[tbl.name] = tbl
- end
- local function AddModel(tblAddTable, strModel, vecPostion, angAngle, clrColor, strMaterial, vecScale)
- tblAddTable.Model = tblAddTable.Model or {}
- if type(tblAddTable.Model) != "table" then tblAddTable.Model = {} end
- table.insert(tblAddTable.Model, {Model = strModel, Position = vecPostion, Angle = angAngle, Color = clrColor, Material = strMaterial, Scale = vecScale})
- return tblAddTable
- end
- local furniture = {}
- furniture["workbench"] = {
- Name = "Workbench",
- Desc = "A usable steel-plated workbench for crafting items and furniture.",
- Model = "models/NicholasRay/SWS/Workbench.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["steel_ditanium"] = 40,
- ["aluminum_titanium"] = 30,
- }
- }
- furniture["smallcouch"] = {
- Name = "Small Couch",
- Desc = "A basic red-upholstered couch",
- Model = "models/props_c17/FurnitureCouch001a.mdl",
- Icon = "icons/furniture_couch1.png",
- Offset = 17,
- Components = {
- ["hide_wooly"] = 30,
- ["aluminum_titanium"] = 30,
- }
- }
- furniture["metalendtable"] = {
- Name = "Metal End Table",
- Desc = "A basic metal end-table.",
- Model = "models/props_wasteland/prison_shelf002a.mdl",
- Icon = "icons/furniture_table1.png",
- Offset = 18,
- Components = {
- ["steel_quadranium"] = 30,
- }
- }
- furniture["stylishcouch"] = {
- Name = "Stylish Couch",
- Desc = "A blue-upholstered couch.",
- Model = "models/props_interiors/Furniture_Couch01a.mdl",
- Icon = "icons/furniture_couch1.png",
- Offset = 22,
- Components = {
- ["hide_wooly"] = 40,
- ["copper_kelsh"] = 20,
- }
- }
- furniture["ornatedesk"] = {
- Name = "Ornate Desk",
- Desc = "A finely polished wooden desk.",
- Model = "models/props_combine/breendesk.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["wood_hard"] = 50,
- ["copper_mythra"] = 10,
- }
- }
- furniture["ornatechair"] = {
- Name = "Ornate Chair",
- Desc = "A finely upholstered chair.",
- Model = "models/props_combine/breenchair.mdl",
- Icon = "icons/furniture_chair1.png",
- Components = {
- ["hide_wooly"] = 30,
- ["copper_kelsh"] = 5,
- }
- }
- furniture["metalchair"] = {
- Name = "Metal Chair",
- Desc = "A metal chair with blue upholstry.",
- Model = "models/props_c17/chair02a.mdl",
- Icon = "icons/furniture_chair2.png",
- Offset = 15,
- Components = {
- ["steel_quadranium"] = 30,
- ["copper_desh"] = 10
- }
- }
- furniture["woodenbench"] = {
- Name = "Wooden Bench",
- Desc = "A delicately crafted wooden bench.",
- Model = "models/props_c17/bench01a.mdl",
- Icon = "icons/furniture_bench1.png",
- Offset = 18,
- Components = {
- ["wood_hard"] = 40,
- }
- }
- furniture["sofachair"] = {
- Name = "Sofa Chair",
- Desc = "A yellow-upholstered sofa chair.",
- Model = "models/props_interiors/Furniture_Couch02a.mdl",
- Icon = "icons/furniture_chair1.png",
- Offset = 22,
- Components = {
- ["hide_wooly"] = 50,
- ["wood_hard"] = 10,
- }
- }
- furniture["moderncouch"] = {
- Name = "Modern Couch",
- Desc = "A polished metal couch with red upholstry.",
- Model = "models/props_trainstation/traincar_seats001.mdl",
- Icon = "icons/furniture_couch2.png",
- Offset = 0,
- Components = {
- ["hide_leathery"] = 45,
- ["aluminum_titanium"] = 15,
- }
- }
- furniture["tatooinechair"] = {
- Name = "Tatooine-Style Chair",
- Desc = "A wooden chair crafted in the native Tatooinian style.",
- Model = "models/props_c17/FurnitureChair001a.mdl",
- Icon = "icons/furniture_chair3.png",
- Offset = 19,
- Components = {
- ["hide_leathery"] = 20,
- ["wood_hard"] = 20,
- }
- }
- furniture["freestandinglamp"] = {
- Name = "Free Standing Lamp",
- Desc = "A modern yet ornate lamp made of linen and steel.",
- Model = "models/props_interiors/Furniture_Lamp01a.mdl",
- Icon = "icons/deed.png",
- Offset = 33,
- Components = {
- ["hide_wooly"] = 5,
- ["steel_quadranium"] = 10,
- ["copper_desh"] = 5,
- }
- }
- furniture["paintingblumbush"] = {
- Name = "Painting of a Blumbush",
- Desc = "A painting of the Blumbush, a vibrant Yavin flower.",
- Model = "models/props_c17/Frame002a.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["hide_leathery"] = 15,
- ["wood_hard"] = 10,
- }
- }
- furniture["exquisitetable"] = {
- Name = "Exquisite Table",
- Desc = "A table fashioned of Endorian white wood.",
- Model = "models/props/CS_militia/table_kitchen.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["gemstone_vertex"] = 25,
- ["wood_hard"] = 20,
- ["aluminum_titanium"] = 10,
- }
- }
- furniture["largeplant"] = {
- Name = "Large Potted Plant",
- Desc = "A large potted plant.",
- Model = "models/props/cs_office/plant01.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["wood_hard"] = 30,
- }
- }
- furniture["smallplant"] = {
- Name = "Small Potted Plant",
- Desc = "A small potted plant.",
- Model = "models/props/de_inferno/potted_plant1.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["wood_hard"] = 20,
- }
- }
- furniture["roundtable"] = {
- Name = "Round Table",
- Desc = "A round table made of polished wood.",
- Model = "models/props/de_tides/restaurant_table.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["wood_hard"] = 30,
- ["gemstone_plexite"] = 10,
- }
- }
- furniture["woodentable"] = {
- Name = "Wooden Table",
- Desc = "A polished wooden table.",
- Model = "models/props/cs_office/Table_coffee.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["wood_hard"] = 30,
- }
- }
- furniture["techarmoire"] = {
- Name = "Tech Armoire",
- Desc = "A sleek metal armoire",
- Model = "models/props_wasteland/kitchen_fridge001a.mdl",
- Icon = "icons/furniture_armoire1.png",
- Components = {
- ["steel_duralloy"] = 50,
- ["aluminum_titanium"] = 20,
- }
- }
- furniture["techshelf"] = {
- Name = "Tech Shelf",
- Desc = "A sleek metal shelving unit.",
- Model = "models/props/cs_office/shelves_metal.mdl",
- Icon = "icons/furniture_table1.png",
- Components = {
- ["steel_duralloy"] = 30,
- ["aluminum_titanium"] = 20,
- }
- }
- furniture["techdesk"] = {
- Name = "Tech Desk",
- Desc = "A sleek metal desk.",
- Model = "models/props_wasteland/controlroom_desk001a.mdl",
- Icon = "icons/deed.png",
- Offset = 16,
- Components = {
- ["steel_duralloy"] = 20,
- ["aluminum_titanium"] = 25,
- }
- }
- furniture["tatooinestove"] = {
- Name = "Tatooine-Style Stove",
- Desc = "A stove crafted in the native Tatooinian style.",
- Model = "models/props_c17/furnitureStove001a.mdl",
- Icon = "icons/deed.png",
- Offset = 22,
- Components = {
- ["gas_orveth"] = 10,
- ["steel_ditanium"] = 30,
- }
- }
- furniture["humanskull"] = {
- Name = "Humanoid Skull",
- Desc = "The skull of a humanoid.",
- Model = "models/Gibs/HGIBS.mdl",
- Icon = "icons/deed.png",
- Offset = 5,
- }
- furniture["naboopot"] = {
- Name = "Nabooian-Style Pot",
- Desc = "A pot crafted in the native Naboo style.",
- Model = "models/props_c17/pottery02a.mdl",
- Icon = "icons/furniture_plant1.png",
- Components = {
- ["copper_kelsh"] = 20,
- }
- }
- furniture["naboovase"] = {
- Name = "Nabooian-Style Vase",
- Desc = "A vase crafted in the native Naboo style.",
- Model = "models/props_c17/pottery07a.mdl",
- Icon = "icons/furniture_plant2.png",
- Components = {
- ["copper_kelsh"] = 25,
- }
- }
- furniture["bustpalpatine"] = {
- Name = "Bust of Chancellor Palpatine",
- Desc = "A rare bust showing Chancellor Palpatine before he became Emperor.",
- Model = "models/props_combine/breenbust.mdl",
- Icon = "icons/deed.png",
- Offset = 14,
- Components = {
- ["gemstone_rudic"] = 40,
- }
- }
- furniture["holonetscreen"] = {
- Name = "Holonet Viewscreen",
- Desc = "A large viewscreen linked to the Galactic Holonet.",
- Model = "models/props_combine/combine_intmonitor001.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["aluminum_titanium"] = 40,
- ["gas_orveth"] = 10,
- ["steel_ditanium"] = 10,
- }
- }
- furniture["holonetterminal"] = {
- Name = "Holonet Terminal",
- Desc = "A terminal linked to the Galactic Holonet.",
- Model = "models/props_combine/combine_interface001.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["aluminum_titanium"] = 30,
- ["gas_orveth"] = 15,
- }
- }
- furniture["securityscanner"] = {
- Name = "Security Scanner",
- Desc = "A wall mounted security scanner.",
- Model = "models/props_lab/eyescanner.mdl",
- Icon = "icons/deed.png",
- Components = {
- ["steel_quadranium"] = 20,
- ["copper_kelsh"] = 15,
- }
- }
- furniture["model_xwing"] = {
- Name = "Model X-Wing",
- Desc = "A model of an X-Wing",
- Model = "models/xwingland/xwingland.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_awing"] = {
- Name = "Model A-Wing",
- Desc = "A model of an A-Wing",
- Model = "models/awingland/awingland.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_tiefighter"] = {
- Name = "Model Tie Fighter",
- Desc = "A model of a Tie Fighter",
- Model = "models/tie2/tie2.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_tieadvanced"] = {
- Name = "Model Tie Advanced",
- Desc = "A model of a Tie Advanced",
- Model = "models/tiead/tiead1.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_yt300"] = {
- Name = "Model YT-300 Freighter",
- Desc = "A model of a YT-300 Freighter",
- Model = "models/mf/mf.mdl",
- Icon = "icons/deed.png",
- Scale = .06
- }
- furniture["model_ywing"] = {
- Name = "Model Y-Wing",
- Desc = "A model of a Y-Wing",
- Model = "models/ywing/ywing.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_aat"] = {
- Name = "Model AAT",
- Desc = "A model of an ATT",
- Model = "models/aat/aat.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_arc"] = {
- Name = "Model ARC Fighter",
- Desc = "A model of an ARC Fighter",
- Model = "models/arc/arc.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_podracer1"] = {
- Name = "Model Podracer",
- Desc = "A model of a Podracer",
- Model = "models/sebracer/sebracer.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_hailfire"] = {
- Name = "Model Hailfire Droid",
- Desc = "A model of a Hailfire Droid",
- Model = "models/hailfire/hailfire.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_x34"] = {
- Name = "Model X34 Landspeeder",
- Desc = "A model of an X34 Landspeeder",
- Model = "models/x34/x341.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_tx130"] = {
- Name = "Model TX130 Tank",
- Desc = "A model of a TX130 Tank",
- Model = "models/tx130t/tx130t1.mdl",
- Icon = "icons/deed.png",
- Scale = .1
- }
- furniture["model_speederbike"] = {
- Name = "Model Speederbike",
- Desc = "A model of a Speederbike",
- Model = "models/SGG/Starwars/speeder_bike.mdl",
- Icon = "icons/deed.png",
- Scale = .2
- }
- furniture["model_av21"] = {
- Name = "Model AV21 Landspeeder",
- Desc = "A model of an AV21 Landspeeder",
- Model = "models/av21/av211.mdl",
- Icon = "icons/deed.png",
- Scale = .08
- }
- furniture["model_barcspeeder"] = {
- Name = "Model Barc Speeder",
- Desc = "A model of a Barc Speeder",
- Model = "models/barc/barc1.mdl",
- Icon = "icons/deed.png",
- Scale = .2
- }
- furniture["sleek_chair"] = {
- Name = "Sleek Chair",
- Desc = "A sleek chair",
- Model = "models/haxxer/normandy/medchair.mdl",
- Icon = "icons/deed.png",
- }
- furniture["sleek_table"] = {
- Name = "Sleek Table",
- Desc = "A sleek table",
- Model = "models/haxxer/normandy/coffetable.mdl",
- Icon = "icons/deed.png",
- }
- furniture["sleek_workbench"] = {
- Name = "Sleek Workbench",
- Desc = "A sleek workbench",
- Model = "models/haxxer/normandy/kitchentable.mdl",
- Icon = "icons/deed.png",
- }
- furniture["sleek_loveseat"] = {
- Name = "Sleek Loveseat",
- Desc = "A sleek loveseat",
- Model = "models/haxxer/normandy/comfychair.mdl",
- Icon = "icons/deed.png",
- }
- furniture["sleek_desk"] = {
- Name = "Sleek Desk",
- Desc = "A sleek corner desk",
- Model = "models/haxxer/normandy/meddeskcor.mdl",
- Icon = "icons/deed.png",
- }
- furniture["sleek_light1"] = {
- Name = "Sleek Light",
- Desc = "A sleek table top light",
- Model = "models/haxxer/normandy/lamp02.mdl",
- Icon = "icons/deed.png",
- }
- furniture["sleek_light2"] = {
- Name = "Sleek Desk Light",
- Desc = "A sleek desk light",
- Model = "models/haxxer/normandy/lamp01.mdl",
- Icon = "icons/deed.png",
- }
- furniture["sleek_bed"] = {
- Name = "Sleek Bed",
- Desc = "A sleek bed",
- Model = "models/haxxer/normandy/comfybed.mdl",
- Icon = "icons/deed.png",
- }
- for name, data in pairs(furniture) do
- local item = {
- name = "furniture_" .. name,
- base = "furniture_" .. name,
- printname = data.Name,
- desc = data.Desc,
- category = "furniture",
- subcategory = "furniture",
- usetype = "furniture",
- furnituremodel = data.Model,
- icon = Material(data.Icon),
- amount = 1,
- stacksize = 1,
- weight = 0,
- }
- if data.Offset then item.furnitureoffset = data.Offset end
- if data.Scale then item.furniturescale = data.Scale end
- item = AddModel(item, "models/Items/AR2_Grenade.mdl")
- AddBase(item)
- if data.Components then
- local Schematic = {}
- Schematic.Name = "furniture_" .. name
- Schematic.PrintName = data.Name
- Schematic.Product = "furniture_" .. name
- Schematic.Amount = 1
- Schematic.Category = "misc"
- Schematic.ExperimentStat = "structure_experimentation"
- Schematic.AssemblyStat = "structure_assembly"
- Schematic.XPType = "crafting_structure"
- Schematic.Components = data.Components
- Register.Schematic(Schematic)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement