Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables that are used on both client and server
- SWEP.Gun = ("weapon folder here")-- must be the name of your swep
- SWEP.Category = "TFA Tutorial Weapons" --Category inside the spawnmenu
- SWEP.Author = "" --Tooltip
- SWEP.Contact = "" --Tooltip
- SWEP.Purpose = "" --Tooltip
- SWEP.Instructions = "" --Tooltip
- SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models
- SWEP.PrintName = "DisplayName" -- Weapon name (Shown on HUD)
- SWEP.Slot = 2 -- Slot in the weapon selection menu
- SWEP.SlotPos = 73 -- Position in the slot
- SWEP.DrawAmmo = true -- Should draw the default HL2 ammo counter
- SWEP.DrawWeaponInfoBox = false -- Should draw the weapon info box
- SWEP.BounceWeaponIcon = false -- Should the weapon icon bounce?
- SWEP.DrawCrosshair = true -- set false if you want no crosshair
- SWEP.Weight = 30 -- rank relative ot other weapons. bigger is better
- SWEP.AutoSwitchTo = true -- Auto switch to if we pick it up
- SWEP.AutoSwitchFrom = true -- Auto switch from if you pick up a better weapon
- SWEP.HoldType = "pistol" -- how others view you carrying the weapon
- SWEP.ViewModelFOV = 90 --The larger this is, the smaller the viewmodel (more zoomed out)
- SWEP.ViewModelFlip = false --Flip the viewmodel? Useful for certain CS:S models
- SWEP.ViewModel = "models/weapons/viewmodelname.mdl" -- Weapon view model
- SWEP.WorldModel = "models/weapons/worldmodelname.mdl" -- Weapon world model
- SWEP.Base = "tfa_gun_base" --This is the classname of your preferred weapon base, leave nil for default
- SWEP.Spawnable = true --Spawnable for normal users?
- SWEP.AdminSpawnable = true --Spawnable for admins?
- SWEP.FiresUnderwater = false --Fires underwater?
- SWEP.Primary.Sound = Sound("WEAPONEVENTID.1") --Sound when you shoot
- SWEP.Primary.RPM = 1200 -- This is in Rounds Per Minute
- SWEP.Primary.ClipSize = 32 -- Size of a clip
- SWEP.Primary.DefaultClip = 64 -- Bullets you start with
- SWEP.Primary.KickUp = 0.2 -- Maximum up recoil (rise)
- SWEP.Primary.KickDown = 0.1 -- Maximum down recoil (skeet)
- SWEP.Primary.KickHorizontal = 0.2 -- Maximum up recoil (stock)
- SWEP.Primary.Automatic = true -- Automatic = true; Semi Auto = false
- SWEP.Primary.Ammo = "smg1"
- SWEP.Secondary.IronFOV = 70 -- How much you 'zoom' in. Less is more!
- SWEP.data = {} --Empty table for data
- SWEP.data.ironsights = 1 --Enable ironsights
- SWEP.Primary.NumShots = 1 -- How many bullets to shoot per trigger pull
- SWEP.Primary.Damage = 21 -- Base damage per bullet
- SWEP.Primary.Spread = .03 -- Define from-the-hip accuracy 1 is terrible, .0001 is exact)
- SWEP.Primary.IronAccuracy = .02 -- Ironsight accuracy, should be the same for shotguns
- SWEP.SelectiveFire = true --Enable selective fire
- SWEP.IronSightsPos = Vector(-2.389, 0, 1.039) --Iron sights position
- SWEP.IronSightsAng = Vector(0, 0, 0) --Iron sights angle
- SWEP.RunSightsPos = Vector(1.799, -8, -3.8) --Position when sprinting
- SWEP.RunSightsAng = Vector(61.206, 0, 0) --Angle when sprinting
- SWEP.Primary.Range = 0.1/0.305*16*1000 --Range in KM / 0.305 (meters to feet) * 16 ( converison to source units) * 1000
- SWEP.Primary.SpreadIncrement = 0.55 --Spread increment (pow)
- SWEP.Primary.SpreadRecovery = 3.5 --How quickly you recover from increased spread
- SWEP.Primary.SpreadMultiplierMax = 2.75 --
- SWEP.Offset = {
- Pos = {
- Up = -4.3,
- Right = 1,
- Forward = 10,
- },
- Ang = {
- Up = 92,
- Right = 6,
- Forward = 190
- },
- Scale = 0.95
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement