Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.16 KB | None | 0 0
  1. Hello, Im looking for new armor and weapons for Underdone on Garrys Mod. If you have any coding experience tell me and Ill see what I can do. If you dont have any coding @h@experience read the text below and that will give you the base of how to make weapons and armor, and if you decide to make something Ill explain to you how to get what you need to make @h@them and how to send them to me so I can add them to the game. (dont worry about vectors, my friend loves getting vectors... haha -nerd joke) and if you have absolutely no interest in @h@helping me then have fun playing serious rp for the rest of your life.
  2.  
  3. The following code is how to make a:
  4.  
  5. Melee Weapon;
  6.  
  7. local Item = QuickCreateItemTable(BaseWeapon, "weapon_melee_<Path>", "<Displayed Name>", "<Description>", "<Icon>")
  8. Item = AddModel(Item, "<Model Path>", Vector(0, 0, 0), Angle(0, 0, 0), Vector(0, 0, 0))
  9. Item = AddStats(Item, <Damage>, <Speed>)
  10. Item = AddSound(Item, "<Sound when swung>")
  11. Item.Weight = <Weight>
  12. Item.Level = <Level>
  13. Item.SellPrice = <Sell Price>
  14. Register.Item(Item)
  15.  
  16.  
  17. Ranged Weapon;
  18.  
  19. local Item = QuickCreateItemTable(BaseWeapon, "weapon_ranged_<Path>", "<Displayed Name>", "<Description>", "<Icon>")
  20. Item = AddModel(Item, "<model path>", Vector(0, 0, 0), Angle(0, 0, 0), Vector(0, 0, 0))
  21. Item = AddStats(Item, <Damage>, <Reload Speed>, <Shooting Speed>, <Ammo Per Clip>)
  22. Item = AddSound(Item, "<Sound When Fired", "<Sound When Reloading>")
  23. Item.Weight = <Weight>
  24. Item.Level = <Level>
  25. Item.SellPrice = <Sell Price>
  26. Item.HoldType = "shotgun"
  27. Item.AmmoType = "smg1"
  28. Register.Item(Item)
  29.  
  30.  
  31. Shield;
  32.  
  33. local Item = QuickCreateItemTable(BaseArmor, "armor_sheild_<Path>", "<Displayed Name>", "<Description>", "<Icon>")
  34. Item = AddModel(Item, "<Model Path>", Vector(0, 0, 0), Angle(0, 0, 0))
  35. Item = AddStats(Item, "slot_offhand", <Armor>)
  36. Item.Weight = <Weight>
  37. Item.SellPrice = <Sell Price>
  38. Register.Item(Item)
  39.  
  40.  
  41. Helm;
  42.  
  43. local Item = QuickCreateItemTable(BaseArmor, "armor_helm_<Path>", "<Displayed Name>", "<Description>", "<Icon>")
  44. Item = AddModel(Item, "<Model Path>", Vector(0, 0, 0), Angle(0, 0, 0))
  45. Item = AddStats(Item, "slot_helm", <Armor>)
  46. Item.Weight = <Weight>
  47. Item.SellPrice = <Sell Price>
  48. Register.Item(Item)
  49.  
  50.  
  51. Chest Armor;
  52.  
  53. local Item = QuickCreateItemTable(BaseArmor, "armor_chest_<Path>", "<Displayed Name>", "<Description>", "<Icon>")
  54. Item = AddModel(Item, "<Model Path>", Vector(0, 0, 0), Angle(0, 0, 0))
  55. Item = AddStats(Item, "slot_chest", <Armor>)
  56. Item.Weight = <Weight>
  57. Item.SellPrice = <Sell Price>
  58. Register.Item(Item)
  59.  
  60.  
  61. Shoulder Pads;
  62.  
  63. local Item = QuickCreateItemTable(BaseArmor, "armor_shoulder_<Path>", "<Displayed Name>", "<Description>", "<Icon>")
  64. Item = AddModel(Item, "<Model Path>", Vector(0, 0, 0), Angle(0, 0, 0))
  65. Item = AddStats(Item, "slot_shoulder", <Armor>)
  66. Item.Weight = <Weight>
  67. Item.SellPrice = <Sell Price>
  68. Register.Item(Item)
  69.  
  70.  
  71. Belt;
  72.  
  73. local Item = QuickCreateItemTable(BaseArmor, "armor_belt_<Path>", "<Displayed Name>", "<Description>", "<Icon>")
  74. Item = AddModel(Item, "<Model Path>", Vector(0, 0, 0), Angle(0, 0, 0))
  75. Item = AddStats(Item, "slot_waist", <Armor>)
  76. Item.Weight = <Weight>
  77. Item.SellPrice = <Sell Price>
  78. Register.Item(Item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement