daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. put this code in fas2_guns.lua
  2.  
  3. Item.Name = "MC51B Vollmer"
  4.  
  5. Item.Desc = "A modified variant of the G3A3 machinegun."
  6.  
  7. Item.Type = "type_weapon"
  8.  
  9. Item.Model = "models/weapons/w_mc51.mdl"
  10.  
  11. Item.Weight = 12
  12.  
  13. Item.Volume = 10
  14.  
  15. Item.CanDrop = true
  16.  
  17. Item.DropClass = "fas2_vollmer"
  18.  
  19. Item.CanEquip = true
  20.  
  21. Item.Illegal = true
  22.  
  23. Item.EquipSlot = "PrimaryWeapon"
  24.  
  25. Item.EquipGiveClass = "fas2_vollmer"
  26.  
  27. Item.PacOutfit = "mp5_back"
  28.  
  29. Item.CraftingEntClass = "ent_assembly_table"
  30.  
  31. Item.CraftingTab = "Weapons"
  32.  
  33. Item.CraftSkill = "Gun Smithing"
  34.  
  35. Item.CraftSkillLevel = 12
  36.  
  37. Item.CraftSkillXP = 1
  38.  
  39. Item.CraftRecipe = {
  40.  
  41.     ["Firing Pin"] = 1,
  42.  
  43.     ["Bolt"] = 2,
  44.  
  45.     ["Trigger"] = 1,
  46.  
  47.     ["Stock"] = 2,
  48.  
  49.     ["Handle Grip"] = 1,
  50.  
  51.     ["Long Barrel"] = 2,
  52.  
  53.     ["Lower Receiver"] = 2,
  54.  
  55.     ["Upper Receiver"] = 3,
  56.  
  57. }
  58.  
  59. GM.PacModels:Register( Item.PacOutfit, {
  60.  
  61.     [1] = {
  62.  
  63.         ["children"] = {
  64.  
  65.             [1] = {
  66.  
  67.                 ["children"] = {
  68.  
  69.                     [1] = {
  70.  
  71.                         ["children"] = {
  72.  
  73.                         },
  74.  
  75.                         ["self"] = {
  76.  
  77.                             ["Event"] = "weapon_class",
  78.  
  79.                             ["UniqueID"] = "2859473494",
  80.  
  81.                             ["Operator"] = "equal",
  82.  
  83.                             ["ClassName"] = "event",
  84.  
  85.                             ["Arguments"] = "fas2_vollmer@@1",
  86.  
  87.                         },
  88.  
  89.                     },
  90.  
  91.                 },
  92.  
  93.                 ["self"] = {
  94.  
  95.                     ["Angles"] = Angle(-3.2440683841705, -178.67698669434, -22.848773956299),
  96.  
  97.                     ["UniqueID"] = "1484483537",
  98.  
  99.                     ["Position"] = Vector(-1.486930847168, -1.2796630859375, -9.1651153564453),
  100.  
  101.                     ["EditorExpand"] = true,
  102.  
  103.                     ["Bone"] = "spine 2",
  104.  
  105.                     ["Model"] = "models/weapons/w_mc51.mdl",
  106.  
  107.                     ["ClassName"] = "model",
  108.  
  109.                 },
  110.  
  111.             },
  112.  
  113.         },
  114.  
  115.         ["self"] = {
  116.  
  117.             ["EditorExpand"] = true,
  118.  
  119.             ["UniqueID"] = "239303487",
  120.  
  121.             ["ClassName"] = "group",
  122.  
  123.             ["Name"] = "my outfit",
  124.  
  125.             ["Description"] = "add parts to me!",
  126.  
  127.         },
  128.  
  129.     },
  130.  
  131. } )
  132.  
  133. GM.Inv:RegisterItem( Item )
  134.  
  135. add this to the bottom of sv_manifest.lua
  136.  
  137. resource.AddWorkshop( "462119296" )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top