Advertisement
Guest User

Untitled

a guest
Jun 12th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.17 KB | None | 0 0
  1. -----------------------------------------------------
  2. local function AddBase(tbl)
  3. GM.DataBase.ItemBases[tbl.name] = tbl
  4. end
  5.  
  6. local function AddModel(tblAddTable, strModel, vecPostion, angAngle, clrColor, strMaterial, vecScale)
  7. tblAddTable.Model = tblAddTable.Model or {}
  8. if type(tblAddTable.Model) != "table" then tblAddTable.Model = {} end
  9. table.insert(tblAddTable.Model, {Model = strModel, Position = vecPostion, Angle = angAngle, Color = clrColor, Material = strMaterial, Scale = vecScale})
  10. return tblAddTable
  11. end
  12.  
  13. local furniture = {}
  14.  
  15. furniture["workbench"] = {
  16. Name = "Workbench",
  17. Desc = "A usable steel-plated workbench for crafting items and furniture.",
  18. Model = "models/NicholasRay/SWS/Workbench.mdl",
  19. Icon = "icons/deed.png",
  20. Components = {
  21. ["steel_ditanium"] = 40,
  22. ["aluminum_titanium"] = 30,
  23. }
  24. }
  25.  
  26. furniture["smallcouch"] = {
  27. Name = "Small Couch",
  28. Desc = "A basic red-upholstered couch",
  29. Model = "models/props_c17/FurnitureCouch001a.mdl",
  30. Icon = "icons/furniture_couch1.png",
  31. Offset = 17,
  32. Components = {
  33. ["hide_wooly"] = 30,
  34. ["aluminum_titanium"] = 30,
  35. }
  36. }
  37.  
  38. furniture["metalendtable"] = {
  39. Name = "Metal End Table",
  40. Desc = "A basic metal end-table.",
  41. Model = "models/props_wasteland/prison_shelf002a.mdl",
  42. Icon = "icons/furniture_table1.png",
  43. Offset = 18,
  44. Components = {
  45. ["steel_quadranium"] = 30,
  46. }
  47. }
  48.  
  49. furniture["stylishcouch"] = {
  50. Name = "Stylish Couch",
  51. Desc = "A blue-upholstered couch.",
  52. Model = "models/props_interiors/Furniture_Couch01a.mdl",
  53. Icon = "icons/furniture_couch1.png",
  54. Offset = 22,
  55. Components = {
  56. ["hide_wooly"] = 40,
  57. ["copper_kelsh"] = 20,
  58. }
  59. }
  60.  
  61. furniture["ornatedesk"] = {
  62. Name = "Ornate Desk",
  63. Desc = "A finely polished wooden desk.",
  64. Model = "models/props_combine/breendesk.mdl",
  65. Icon = "icons/deed.png",
  66. Components = {
  67. ["wood_hard"] = 50,
  68. ["copper_mythra"] = 10,
  69. }
  70. }
  71.  
  72. furniture["ornatechair"] = {
  73. Name = "Ornate Chair",
  74. Desc = "A finely upholstered chair.",
  75. Model = "models/props_combine/breenchair.mdl",
  76. Icon = "icons/furniture_chair1.png",
  77. Components = {
  78. ["hide_wooly"] = 30,
  79. ["copper_kelsh"] = 5,
  80. }
  81. }
  82.  
  83. furniture["metalchair"] = {
  84. Name = "Metal Chair",
  85. Desc = "A metal chair with blue upholstry.",
  86. Model = "models/props_c17/chair02a.mdl",
  87. Icon = "icons/furniture_chair2.png",
  88. Offset = 15,
  89. Components = {
  90. ["steel_quadranium"] = 30,
  91. ["copper_desh"] = 10
  92. }
  93. }
  94.  
  95. furniture["woodenbench"] = {
  96. Name = "Wooden Bench",
  97. Desc = "A delicately crafted wooden bench.",
  98. Model = "models/props_c17/bench01a.mdl",
  99. Icon = "icons/furniture_bench1.png",
  100. Offset = 18,
  101. Components = {
  102. ["wood_hard"] = 40,
  103. }
  104. }
  105.  
  106. furniture["sofachair"] = {
  107. Name = "Sofa Chair",
  108. Desc = "A yellow-upholstered sofa chair.",
  109. Model = "models/props_interiors/Furniture_Couch02a.mdl",
  110. Icon = "icons/furniture_chair1.png",
  111. Offset = 22,
  112. Components = {
  113. ["hide_wooly"] = 50,
  114. ["wood_hard"] = 10,
  115. }
  116. }
  117.  
  118. furniture["moderncouch"] = {
  119. Name = "Modern Couch",
  120. Desc = "A polished metal couch with red upholstry.",
  121. Model = "models/props_trainstation/traincar_seats001.mdl",
  122. Icon = "icons/furniture_couch2.png",
  123. Offset = 0,
  124. Components = {
  125. ["hide_leathery"] = 45,
  126. ["aluminum_titanium"] = 15,
  127. }
  128. }
  129.  
  130. furniture["tatooinechair"] = {
  131. Name = "Tatooine-Style Chair",
  132. Desc = "A wooden chair crafted in the native Tatooinian style.",
  133. Model = "models/props_c17/FurnitureChair001a.mdl",
  134. Icon = "icons/furniture_chair3.png",
  135. Offset = 19,
  136. Components = {
  137. ["hide_leathery"] = 20,
  138. ["wood_hard"] = 20,
  139. }
  140. }
  141.  
  142. furniture["freestandinglamp"] = {
  143. Name = "Free Standing Lamp",
  144. Desc = "A modern yet ornate lamp made of linen and steel.",
  145. Model = "models/props_interiors/Furniture_Lamp01a.mdl",
  146. Icon = "icons/deed.png",
  147. Offset = 33,
  148. Components = {
  149. ["hide_wooly"] = 5,
  150. ["steel_quadranium"] = 10,
  151. ["copper_desh"] = 5,
  152. }
  153. }
  154.  
  155. furniture["paintingblumbush"] = {
  156. Name = "Painting of a Blumbush",
  157. Desc = "A painting of the Blumbush, a vibrant Yavin flower.",
  158. Model = "models/props_c17/Frame002a.mdl",
  159. Icon = "icons/deed.png",
  160. Components = {
  161. ["hide_leathery"] = 15,
  162. ["wood_hard"] = 10,
  163. }
  164. }
  165.  
  166. furniture["exquisitetable"] = {
  167. Name = "Exquisite Table",
  168. Desc = "A table fashioned of Endorian white wood.",
  169. Model = "models/props/CS_militia/table_kitchen.mdl",
  170. Icon = "icons/deed.png",
  171. Components = {
  172. ["gemstone_vertex"] = 25,
  173. ["wood_hard"] = 20,
  174. ["aluminum_titanium"] = 10,
  175. }
  176. }
  177.  
  178. furniture["largeplant"] = {
  179. Name = "Large Potted Plant",
  180. Desc = "A large potted plant.",
  181. Model = "models/props/cs_office/plant01.mdl",
  182. Icon = "icons/deed.png",
  183. Components = {
  184. ["wood_hard"] = 30,
  185. }
  186. }
  187.  
  188. furniture["smallplant"] = {
  189. Name = "Small Potted Plant",
  190. Desc = "A small potted plant.",
  191. Model = "models/props/de_inferno/potted_plant1.mdl",
  192. Icon = "icons/deed.png",
  193. Components = {
  194. ["wood_hard"] = 20,
  195. }
  196. }
  197.  
  198. furniture["roundtable"] = {
  199. Name = "Round Table",
  200. Desc = "A round table made of polished wood.",
  201. Model = "models/props/de_tides/restaurant_table.mdl",
  202. Icon = "icons/deed.png",
  203. Components = {
  204. ["wood_hard"] = 30,
  205. ["gemstone_plexite"] = 10,
  206. }
  207. }
  208.  
  209. furniture["woodentable"] = {
  210. Name = "Wooden Table",
  211. Desc = "A polished wooden table.",
  212. Model = "models/props/cs_office/Table_coffee.mdl",
  213. Icon = "icons/deed.png",
  214. Components = {
  215. ["wood_hard"] = 30,
  216. }
  217. }
  218.  
  219. furniture["techarmoire"] = {
  220. Name = "Tech Armoire",
  221. Desc = "A sleek metal armoire",
  222. Model = "models/props_wasteland/kitchen_fridge001a.mdl",
  223. Icon = "icons/furniture_armoire1.png",
  224. Components = {
  225. ["steel_duralloy"] = 50,
  226. ["aluminum_titanium"] = 20,
  227. }
  228. }
  229.  
  230. furniture["techshelf"] = {
  231. Name = "Tech Shelf",
  232. Desc = "A sleek metal shelving unit.",
  233. Model = "models/props/cs_office/shelves_metal.mdl",
  234. Icon = "icons/furniture_table1.png",
  235. Components = {
  236. ["steel_duralloy"] = 30,
  237. ["aluminum_titanium"] = 20,
  238. }
  239. }
  240.  
  241. furniture["techdesk"] = {
  242. Name = "Tech Desk",
  243. Desc = "A sleek metal desk.",
  244. Model = "models/props_wasteland/controlroom_desk001a.mdl",
  245. Icon = "icons/deed.png",
  246. Offset = 16,
  247. Components = {
  248. ["steel_duralloy"] = 20,
  249. ["aluminum_titanium"] = 25,
  250. }
  251. }
  252.  
  253. furniture["tatooinestove"] = {
  254. Name = "Tatooine-Style Stove",
  255. Desc = "A stove crafted in the native Tatooinian style.",
  256. Model = "models/props_c17/furnitureStove001a.mdl",
  257. Icon = "icons/deed.png",
  258. Offset = 22,
  259. Components = {
  260. ["gas_orveth"] = 10,
  261. ["steel_ditanium"] = 30,
  262. }
  263. }
  264.  
  265. furniture["humanskull"] = {
  266. Name = "Humanoid Skull",
  267. Desc = "The skull of a humanoid.",
  268. Model = "models/Gibs/HGIBS.mdl",
  269. Icon = "icons/deed.png",
  270. Offset = 5,
  271. }
  272.  
  273. furniture["naboopot"] = {
  274. Name = "Nabooian-Style Pot",
  275. Desc = "A pot crafted in the native Naboo style.",
  276. Model = "models/props_c17/pottery02a.mdl",
  277. Icon = "icons/furniture_plant1.png",
  278. Components = {
  279. ["copper_kelsh"] = 20,
  280. }
  281. }
  282.  
  283. furniture["naboovase"] = {
  284. Name = "Nabooian-Style Vase",
  285. Desc = "A vase crafted in the native Naboo style.",
  286. Model = "models/props_c17/pottery07a.mdl",
  287. Icon = "icons/furniture_plant2.png",
  288. Components = {
  289. ["copper_kelsh"] = 25,
  290. }
  291. }
  292.  
  293. furniture["bustpalpatine"] = {
  294. Name = "Bust of Chancellor Palpatine",
  295. Desc = "A rare bust showing Chancellor Palpatine before he became Emperor.",
  296. Model = "models/props_combine/breenbust.mdl",
  297. Icon = "icons/deed.png",
  298. Offset = 14,
  299. Components = {
  300. ["gemstone_rudic"] = 40,
  301. }
  302. }
  303.  
  304. furniture["holonetscreen"] = {
  305. Name = "Holonet Viewscreen",
  306. Desc = "A large viewscreen linked to the Galactic Holonet.",
  307. Model = "models/props_combine/combine_intmonitor001.mdl",
  308. Icon = "icons/deed.png",
  309. Components = {
  310. ["aluminum_titanium"] = 40,
  311. ["gas_orveth"] = 10,
  312. ["steel_ditanium"] = 10,
  313. }
  314. }
  315.  
  316. furniture["holonetterminal"] = {
  317. Name = "Holonet Terminal",
  318. Desc = "A terminal linked to the Galactic Holonet.",
  319. Model = "models/props_combine/combine_interface001.mdl",
  320. Icon = "icons/deed.png",
  321. Components = {
  322. ["aluminum_titanium"] = 30,
  323. ["gas_orveth"] = 15,
  324. }
  325. }
  326.  
  327. furniture["securityscanner"] = {
  328. Name = "Security Scanner",
  329. Desc = "A wall mounted security scanner.",
  330. Model = "models/props_lab/eyescanner.mdl",
  331. Icon = "icons/deed.png",
  332. Components = {
  333. ["steel_quadranium"] = 20,
  334. ["copper_kelsh"] = 15,
  335. }
  336. }
  337.  
  338. furniture["model_xwing"] = {
  339. Name = "Model X-Wing",
  340. Desc = "A model of an X-Wing",
  341. Model = "models/xwingland/xwingland.mdl",
  342. Icon = "icons/deed.png",
  343. Scale = .08
  344. }
  345.  
  346. furniture["model_awing"] = {
  347. Name = "Model A-Wing",
  348. Desc = "A model of an A-Wing",
  349. Model = "models/awingland/awingland.mdl",
  350. Icon = "icons/deed.png",
  351. Scale = .08
  352. }
  353.  
  354. furniture["model_tiefighter"] = {
  355. Name = "Model Tie Fighter",
  356. Desc = "A model of a Tie Fighter",
  357. Model = "models/tie2/tie2.mdl",
  358. Icon = "icons/deed.png",
  359. Scale = .08
  360. }
  361.  
  362. furniture["model_tieadvanced"] = {
  363. Name = "Model Tie Advanced",
  364. Desc = "A model of a Tie Advanced",
  365. Model = "models/tiead/tiead1.mdl",
  366. Icon = "icons/deed.png",
  367. Scale = .08
  368. }
  369.  
  370. furniture["model_yt300"] = {
  371. Name = "Model YT-300 Freighter",
  372. Desc = "A model of a YT-300 Freighter",
  373. Model = "models/mf/mf.mdl",
  374. Icon = "icons/deed.png",
  375. Scale = .06
  376. }
  377.  
  378. furniture["model_ywing"] = {
  379. Name = "Model Y-Wing",
  380. Desc = "A model of a Y-Wing",
  381. Model = "models/ywing/ywing.mdl",
  382. Icon = "icons/deed.png",
  383. Scale = .08
  384. }
  385.  
  386. furniture["model_aat"] = {
  387. Name = "Model AAT",
  388. Desc = "A model of an ATT",
  389. Model = "models/aat/aat.mdl",
  390. Icon = "icons/deed.png",
  391. Scale = .08
  392. }
  393.  
  394. furniture["model_arc"] = {
  395. Name = "Model ARC Fighter",
  396. Desc = "A model of an ARC Fighter",
  397. Model = "models/arc/arc.mdl",
  398. Icon = "icons/deed.png",
  399. Scale = .08
  400. }
  401.  
  402. furniture["model_podracer1"] = {
  403. Name = "Model Podracer",
  404. Desc = "A model of a Podracer",
  405. Model = "models/sebracer/sebracer.mdl",
  406. Icon = "icons/deed.png",
  407. Scale = .08
  408. }
  409.  
  410. furniture["model_hailfire"] = {
  411. Name = "Model Hailfire Droid",
  412. Desc = "A model of a Hailfire Droid",
  413. Model = "models/hailfire/hailfire.mdl",
  414. Icon = "icons/deed.png",
  415. Scale = .08
  416. }
  417.  
  418. furniture["model_x34"] = {
  419. Name = "Model X34 Landspeeder",
  420. Desc = "A model of an X34 Landspeeder",
  421. Model = "models/x34/x341.mdl",
  422. Icon = "icons/deed.png",
  423. Scale = .08
  424. }
  425.  
  426. furniture["model_tx130"] = {
  427. Name = "Model TX130 Tank",
  428. Desc = "A model of a TX130 Tank",
  429. Model = "models/tx130t/tx130t1.mdl",
  430. Icon = "icons/deed.png",
  431. Scale = .1
  432. }
  433.  
  434. furniture["model_speederbike"] = {
  435. Name = "Model Speederbike",
  436. Desc = "A model of a Speederbike",
  437. Model = "models/SGG/Starwars/speeder_bike.mdl",
  438. Icon = "icons/deed.png",
  439. Scale = .2
  440. }
  441.  
  442. furniture["model_av21"] = {
  443. Name = "Model AV21 Landspeeder",
  444. Desc = "A model of an AV21 Landspeeder",
  445. Model = "models/av21/av211.mdl",
  446. Icon = "icons/deed.png",
  447. Scale = .08
  448. }
  449.  
  450. furniture["model_barcspeeder"] = {
  451. Name = "Model Barc Speeder",
  452. Desc = "A model of a Barc Speeder",
  453. Model = "models/barc/barc1.mdl",
  454. Icon = "icons/deed.png",
  455. Scale = .2
  456. }
  457.  
  458. furniture["sleek_chair"] = {
  459. Name = "Sleek Chair",
  460. Desc = "A sleek chair",
  461. Model = "models/haxxer/normandy/medchair.mdl",
  462. Icon = "icons/deed.png",
  463. }
  464.  
  465. furniture["sleek_table"] = {
  466. Name = "Sleek Table",
  467. Desc = "A sleek table",
  468. Model = "models/haxxer/normandy/coffetable.mdl",
  469. Icon = "icons/deed.png",
  470. }
  471.  
  472. furniture["sleek_workbench"] = {
  473. Name = "Sleek Workbench",
  474. Desc = "A sleek workbench",
  475. Model = "models/haxxer/normandy/kitchentable.mdl",
  476. Icon = "icons/deed.png",
  477. }
  478.  
  479. furniture["sleek_loveseat"] = {
  480. Name = "Sleek Loveseat",
  481. Desc = "A sleek loveseat",
  482. Model = "models/haxxer/normandy/comfychair.mdl",
  483. Icon = "icons/deed.png",
  484. }
  485.  
  486. furniture["sleek_desk"] = {
  487. Name = "Sleek Desk",
  488. Desc = "A sleek corner desk",
  489. Model = "models/haxxer/normandy/meddeskcor.mdl",
  490. Icon = "icons/deed.png",
  491. }
  492.  
  493. furniture["sleek_light1"] = {
  494. Name = "Sleek Light",
  495. Desc = "A sleek table top light",
  496. Model = "models/haxxer/normandy/lamp02.mdl",
  497. Icon = "icons/deed.png",
  498. }
  499.  
  500. furniture["sleek_light2"] = {
  501. Name = "Sleek Desk Light",
  502. Desc = "A sleek desk light",
  503. Model = "models/haxxer/normandy/lamp01.mdl",
  504. Icon = "icons/deed.png",
  505. }
  506.  
  507. furniture["sleek_bed"] = {
  508. Name = "Sleek Bed",
  509. Desc = "A sleek bed",
  510. Model = "models/haxxer/normandy/comfybed.mdl",
  511. Icon = "icons/deed.png",
  512. }
  513.  
  514. for name, data in pairs(furniture) do
  515. local item = {
  516. name = "furniture_" .. name,
  517. base = "furniture_" .. name,
  518. printname = data.Name,
  519. desc = data.Desc,
  520. category = "furniture",
  521. subcategory = "furniture",
  522. usetype = "furniture",
  523. furnituremodel = data.Model,
  524. icon = Material(data.Icon),
  525. amount = 1,
  526. stacksize = 1,
  527. weight = 0,
  528. }
  529. if data.Offset then item.furnitureoffset = data.Offset end
  530. if data.Scale then item.furniturescale = data.Scale end
  531. item = AddModel(item, "models/Items/AR2_Grenade.mdl")
  532. AddBase(item)
  533.  
  534. if data.Components then
  535. local Schematic = {}
  536. Schematic.Name = "furniture_" .. name
  537. Schematic.PrintName = data.Name
  538. Schematic.Product = "furniture_" .. name
  539. Schematic.Amount = 1
  540. Schematic.Category = "misc"
  541. Schematic.ExperimentStat = "structure_experimentation"
  542. Schematic.AssemblyStat = "structure_assembly"
  543. Schematic.XPType = "crafting_structure"
  544. Schematic.Components = data.Components
  545. Register.Schematic(Schematic)
  546. end
  547. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement