LUModder

FWP Template

Aug 30th, 2015
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.16 KB | None | 0 0
  1. --Need the base? http://pastebin.com/QdYJdZ7X
  2.  
  3. SWEP.Base                   = "weapon_flex_base" --Change to weapon_flex_base when making a new weapon
  4. SWEP.PrintName              = "weapon_flex_wepname" --Name, MUST include weapon_flex_ to be included in FWP Uncategorized for the moment.
  5. SWEP.Author                 = "Author" --Change to your name
  6. SWEP.Category               = "FWP" --Leave as is
  7.  
  8. SWEP.Slot                   = 1 --Slot of weapon
  9. SWEP.SlotPos                = 1 --Slot pos, doesn't matter
  10.  
  11. SWEP.HoldType               = "smg" --Holdtype, ar2 for CS weapons that are not shotguns, pistols, or SMGs
  12.  
  13. SWEP.Spawnable              = false --SET TO TRUE
  14. SWEP.AdminOnly              = false --If it's an admin weapon
  15.  
  16. SWEP.ViewModel              = "models/weapons/c_smg1.mdl" --MUST BE A C_ MODEL, models/weapons/cstrike for CS c_ models
  17. SWEP.WorldModel             = "models/weapons/w_smg1.mdl" --World model
  18. SWEP.UseHands               = true --LEAVE TO TRUE UNLESS USING V_ MODEL
  19.  
  20. SWEP.Primary.Sound          = Sound("Weapon_SMG1.Single") --Fire sound, usually Weapon_Name.Single
  21. SWEP.Primary.Delay          = 0.1 --Delay, 0.1 is good for rifles and SMGs
  22. SWEP.Primary.Damage         = 10 --Damage, DO NOT GO INSANE UNLESS ADMIN WEAPON
  23. SWEP.Primary.Spread         = 0 --Bullet spread, use 100th's (0.01)
  24. SWEP.Primary.Recoil         = 0.5 --Recoil, below 0.55
  25. SWEP.Primary.Bullets        = 1 --Leave as one unless shotgun
  26.  
  27. SWEP.Primary.ClipSize       = 6 --Clip size
  28. SWEP.Primary.DefaultClip    = 36 --How much in reserve (clip + 2-3 extra)
  29. SWEP.Primary.Automatic      = true --True for SMGs and Rifles
  30. SWEP.Primary.Ammo           = "smg1" --Ammo type, ar2 for rifles, smg1 for SMGs, pistol for pistols, 357 for snipers, buckshot for shotguns
  31.  
  32. --ONLY MODIFY IF YOU WANT A SECOND AMMO TYPE FOR YOUR SECONDARY FIRE
  33. SWEP.Secondary.ClipSize     = -1
  34. SWEP.Secondary.DefaultClip  = -1
  35. SWEP.Secondary.Automatic    = false
  36. SWEP.Secondary.Ammo         = "none"
  37.  
  38. SWEP.SelectionFont = "CreditsLogo" --CreditsLogo for HL2 weapon icons, CSSelectIcons for CS weapon icons
  39. SWEP.SelectionLetter = "f" --Test with <font=fontname>letters if you want to in chat. Or install HL2.ttf and csd.ttf and open up a notepad or something and test.
  40.  
  41. --Only add this if you're wanting to use ironsights
  42. SWEP.IronSightsPos = Vector(0, 0, 0)
  43. SWEP.IronSightsAng = Vector(0, 0, 0)
Advertisement
Add Comment
Please, Sign In to add comment