Advertisement
Guest User

Untitled

a guest
May 27th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.56 KB | None | 0 0
  1.  
  2. -- Variables that are used on both client and server
  3. SWEP.Gun = ("weapon folder here")-- must be the name of your swep
  4.  
  5. SWEP.Category               = "TFA Tutorial Weapons" --Category inside the spawnmenu
  6.  
  7. SWEP.Author             = ""  --Tooltip
  8. SWEP.Contact                = ""  --Tooltip
  9. SWEP.Purpose                = ""  --Tooltip
  10. SWEP.Instructions               = ""  --Tooltip
  11. SWEP.MuzzleAttachment           = "1"   -- Should be "1" for CSS models or "muzzle" for hl2 models
  12. SWEP.PrintName              = "DisplayName"     -- Weapon name (Shown on HUD)  
  13. SWEP.Slot               = 2             -- Slot in the weapon selection menu
  14. SWEP.SlotPos                = 73        -- Position in the slot
  15. SWEP.DrawAmmo               = true      -- Should draw the default HL2 ammo counter
  16. SWEP.DrawWeaponInfoBox          = false     -- Should draw the weapon info box
  17. SWEP.BounceWeaponIcon           =   false   -- Should the weapon icon bounce?
  18. SWEP.DrawCrosshair          = true      -- set false if you want no crosshair
  19. SWEP.Weight             = 30            -- rank relative ot other weapons. bigger is better
  20. SWEP.AutoSwitchTo           = true      -- Auto switch to if we pick it up
  21. SWEP.AutoSwitchFrom         = true      -- Auto switch from if you pick up a better weapon
  22. SWEP.HoldType               = "pistol"      -- how others view you carrying the weapon
  23.  
  24. SWEP.ViewModelFOV           = 90 --The larger this is, the smaller the viewmodel (more zoomed out)
  25. SWEP.ViewModelFlip          = false --Flip the viewmodel?  Useful for certain CS:S models
  26. SWEP.ViewModel              = "models/weapons/viewmodelname.mdl"    -- Weapon view model
  27. SWEP.WorldModel             = "models/weapons/worldmodelname.mdl"   -- Weapon world model
  28.  
  29. SWEP.Base               = "tfa_gun_base"  --This is the classname of your preferred weapon base, leave nil for default
  30.  
  31. SWEP.Spawnable              = true  --Spawnable for normal users?
  32. SWEP.AdminSpawnable         = true  --Spawnable for admins?
  33.  
  34. SWEP.FiresUnderwater = false --Fires underwater?
  35.  
  36. SWEP.Primary.Sound = Sound("WEAPONEVENTID.1") --Sound when you shoot
  37.  
  38. SWEP.Primary.RPM            = 1200          -- This is in Rounds Per Minute
  39. SWEP.Primary.ClipSize           = 32        -- Size of a clip
  40. SWEP.Primary.DefaultClip        = 64        -- Bullets you start with
  41. SWEP.Primary.KickUp             = 0.2       -- Maximum up recoil (rise)
  42. SWEP.Primary.KickDown           = 0.1       -- Maximum down recoil (skeet)
  43. SWEP.Primary.KickHorizontal     = 0.2       -- Maximum up recoil (stock)
  44. SWEP.Primary.Automatic          = true      -- Automatic = true; Semi Auto = false
  45. SWEP.Primary.Ammo           = "smg1"
  46.  
  47. SWEP.Secondary.IronFOV          = 70        -- How much you 'zoom' in. Less is more!    
  48.  
  49. SWEP.data               = {}                --Empty table for data
  50. SWEP.data.ironsights            = 1  --Enable ironsights
  51.  
  52. SWEP.Primary.NumShots   = 1     -- How many bullets to shoot per trigger pull
  53. SWEP.Primary.Damage     = 21    -- Base damage per bullet
  54. SWEP.Primary.Spread     = .03   -- Define from-the-hip accuracy 1 is terrible, .0001 is exact)
  55. SWEP.Primary.IronAccuracy = .02 -- Ironsight accuracy, should be the same for shotguns
  56.  
  57. SWEP.SelectiveFire = true --Enable selective fire
  58.  
  59. SWEP.IronSightsPos = Vector(-2.389, 0, 1.039) --Iron sights position
  60. SWEP.IronSightsAng = Vector(0, 0, 0) --Iron sights angle
  61.  
  62. SWEP.RunSightsPos = Vector(1.799, -8, -3.8) --Position when sprinting
  63. SWEP.RunSightsAng = Vector(61.206, 0, 0)  --Angle when sprinting
  64.  
  65. SWEP.Primary.Range = 0.1/0.305*16*1000  --Range in KM / 0.305 (meters to feet) * 16 ( converison to source units) * 1000
  66.  
  67. SWEP.Primary.SpreadIncrement = 0.55 --Spread increment (pow)
  68. SWEP.Primary.SpreadRecovery = 3.5 --How quickly you recover from increased spread
  69. SWEP.Primary.SpreadMultiplierMax = 2.75 --
  70.  
  71. SWEP.Offset = {
  72.     Pos = {
  73.         Up = -4.3,
  74.         Right = 1,
  75.         Forward = 10,
  76.         },
  77.     Ang = {
  78.         Up = 92,
  79.         Right = 6,
  80.         Forward = 190
  81.         },
  82.     Scale = 0.95
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement