Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. -- Variables that are used on both client and server
  2. SWEP.Gun = ("m9k_l85") -- must be the name of your swep but NO CAPITALS!
  3. if (GetConVar(SWEP.Gun.."_allowed")) != nil then
  4. if not (GetConVar(SWEP.Gun.."_allowed"):GetBool()) then SWEP.Base = "bobs_blacklisted" SWEP.PrintName = SWEP.Gun return end
  5. end
  6. SWEP.Category = "M9K Assault Rifles"
  7. SWEP.Author = ""
  8. SWEP.Contact = ""
  9. SWEP.Purpose = ""
  10. SWEP.Instructions = ""
  11. SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models
  12. SWEP.ShellEjectAttachment = "2" -- Should be "2" for CSS models or "1" for hl2 models
  13. SWEP.PrintName = "L85" -- Weapon name (Shown on HUD)
  14. SWEP.Slot = 2 -- Slot in the weapon selection menu
  15. SWEP.SlotPos = 32 -- Position in the slot
  16. SWEP.DrawAmmo = true -- Should draw the default HL2 ammo counter
  17. SWEP.DrawWeaponInfoBox = false -- Should draw the weapon info box
  18. SWEP.BounceWeaponIcon = false -- Should the weapon icon bounce?
  19. SWEP.DrawCrosshair = true -- Set false if you want no crosshair from hip
  20. SWEP.Weight = 50 -- Rank relative ot other weapons. bigger is better
  21. SWEP.AutoSwitchTo = true -- Auto switch to if we pick it up
  22. SWEP.AutoSwitchFrom = true -- Auto switch from if you pick up a better weapon
  23. SWEP.XHair = true -- Used for returning crosshair after scope. Must be the same as DrawCrosshair
  24. SWEP.BoltAction = false -- Is this a bolt action rifle?
  25. SWEP.HoldType = "ar2" -- how others view you carrying the weapon
  26. -- normal melee melee2 fist knife smg ar2 pistol rpg physgun grenade shotgun crossbow slam passive
  27. -- you're mostly going to use ar2, smg, shotgun or pistol. rpg and crossbow make for good sniper rifles
  28.  
  29. SWEP.ViewModelFOV = 70
  30. SWEP.ViewModelFlip = true
  31. SWEP.ViewModel = "models/weapons/v_rif_l85.mdl" -- Weapon view model
  32. SWEP.WorldModel = "models/weapons/w_l85a2.mdl" -- Weapon world model
  33. SWEP.Base = "bobs_scoped_base"
  34. SWEP.Spawnable = true
  35. SWEP.AdminSpawnable = true
  36.  
  37. SWEP.Primary.Sound = Sound("Weapon_l85.Single") -- script that calls the primary fire sound
  38. SWEP.Primary.RPM = 675 -- This is in Rounds Per Minute
  39. SWEP.Primary.ClipSize = 30 -- Size of a clip
  40. SWEP.Primary.DefaultClip = 60 -- Bullets you start with
  41. SWEP.Primary.KickUp = .4 -- Maximum up recoil (rise)
  42. SWEP.Primary.KickDown = .4 -- Maximum down recoil (skeet)
  43. SWEP.Primary.KickHorizontal = .5 -- Maximum up recoil (stock)
  44. SWEP.Primary.Automatic = true -- Automatic/Semi Auto
  45. SWEP.Primary.Ammo = "ar2" -- pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, AirboatGun
  46. -- Pistol, buckshot, and slam always ricochet. Use AirboatGun for a light metal peircing shotgun pellets
  47.  
  48. SWEP.SelectiveFire = true
  49.  
  50. SWEP.Secondary.ScopeZoom = 4
  51. SWEP.Secondary.UseACOG = true -- Choose one scope type
  52. SWEP.Secondary.UseMilDot = false -- I mean it, only one
  53. SWEP.Secondary.UseSVD = false -- If you choose more than one, your scope will not show up at all
  54. SWEP.Secondary.UseParabolic = false
  55. SWEP.Secondary.UseElcan = false
  56. SWEP.Secondary.UseGreenDuplex = false
  57. SWEP.Secondary.UseAimpoint = false
  58. SWEP.Secondary.UseMatador = false
  59.  
  60. SWEP.data = {}
  61. SWEP.data.ironsights = 1
  62. SWEP.ScopeScale = 0.5
  63. SWEP.ReticleScale = 0.6
  64.  
  65. SWEP.Primary.NumShots = 1 --how many bullets to shoot per trigger pull
  66. SWEP.Primary.Damage = 29 --base damage per bullet
  67. SWEP.Primary.Spread = .023 --define from-the-hip accuracy 1 is terrible, .0001 is exact)
  68. SWEP.Primary.IronAccuracy = .015 -- ironsight accuracy, should be the same for shotguns
  69.  
  70. -- enter iron sight info and bone mod info below
  71.  
  72. SWEP.IronSightsPos = Vector (2.275, -2.9708, 0.5303)
  73. SWEP.IronSightsAng = Vector (0, 0, 0)
  74. SWEP.SightsPos = Vector (2.275, -2.9708, 0.5303)
  75. SWEP.SightsAng = Vector (0, 0, 0)
  76. SWEP.RunSightsPos = Vector (-3.0328, 0, 1.888)
  77. SWEP.RunSightsAng = Vector (-24.2146, -36.522, 10)
  78.  
  79. if GetConVar("M9KDefaultClip") == nil then
  80. print("M9KDefaultClip is missing! You may have hit the lua limit!")
  81. else
  82. if GetConVar("M9KDefaultClip"):GetInt() != -1 then
  83. SWEP.Primary.DefaultClip = SWEP.Primary.ClipSize * GetConVar("M9KDefaultClip"):GetInt()
  84. end
  85. end
  86.  
  87. if GetConVar("M9KUniqueSlots") != nil then
  88. if not (GetConVar("M9KUniqueSlots"):GetBool()) then
  89. SWEP.SlotPos = 2
  90. end
  91. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement