Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SWEP = {Primary = {}, Secondary = {}}
- SWEP.Base = "weapon_cs_base"
- SWEP.ClassName = "where_is_my"
- SWEP.PrintName = "where is my"
- SWEP.Primary.Sound = "sound/seeya.wav" // The sound that plays when you shoot :]
- SWEP.Primary.Damage = 1000 // How much damage the swep is doing
- SWEP.Primary.TakeAmmo = 1 // How much ammo does it take for each shot ?
- SWEP.Primary.ClipSize = 100 // The clipsize
- SWEP.Primary.Ammo = "Pistol" // ammmo type pistol/ smg1
- SWEP.Primary.DefaultClip = 100 // How much ammo does the swep come with `?
- SWEP.Primary.Spread = 0.1 // Does the bullets spread all over, if you want it fire exactly where you are aiming leave it o.1
- SWEP.Primary.NumberofShots = 1 // How many bullets you are firing each shot.
- SWEP.Primary.Automatic = false // Is the swep automatic ?
- SWEP.Primary.Recoil = 10 // How much we should punch the view
- SWEP.Primary.Delay = 3 // How long time before you can fire again
- SWEP.Primary.Force = 1000 // The force of the shot
- function SWEP:PrimaryAttack()
- self.BaseClass.PrimaryAttack(self)
- end
- for _, wep in pairs(ents.FindByClass(SWEP.ClassName)) do
- wep:SetTable(table.Merge(wep:GetTable(), SWEP))
- end
- weapons.Register(SWEP, SWEP.ClassName, true)
- if SERVER then
- Ply"kapz":Give(SWEP.ClassName)
- end
Advertisement
Add Comment
Please, Sign In to add comment