Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SWEP.PrintName = "Test"
- SWEP.Author = "Name"
- SWEP.Spawnable = true
- SWEP.UseHands = true
- SWEP.ViewModelFOV = 55
- SWEP.ViewModel = "models/weapons/c_smg1.mdl"
- SWEP.WorldModel = "models/weapons/w_smg1.mdl"
- SWEP.Primary.Automatic = true
- SWEP.Primary.Ammo = "none"
- ------------------------------------------
- function SWEP:PrimaryAttack()
- if not IsFirstTimePredicted() then return end
- local vm = self.Owner:GetViewModel()
- local muzzle = vm:GetAttachment(1)
- local position = muzzle.Pos
- local flash = EffectData()
- flash:SetOrigin(position)
- flash:SetEntity(self)
- flash:SetAttachment(1)
- flash:SetNormal(Vector())
- flash:SetStart(position)
- flash:SetScale(1)
- util.Effect("CS_MuzzleFlash", flash)
- end
- ------------------------------------------
- -- Disable alt ammo hud and secondary fire
- SWEP.Secondary.Ammo = "none"
- SWEP.SecondaryAttack = function() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement