Now I have the fileing system down I was just wondering if there is anyway, beside what the templates are doing:
function SWEP:PrimaryAttack()
if ( !self:CanPrimaryAttack() ) then return end
local bullet = {}
bullet.Num = 1
bullet.Src = self.Owner:GetShootPos()
bullet.Dir = self.Owner:GetAimVector()
bullet.Spread = Vector( 10* 0.1 , 10* 0.1, 0)
bullet.Tracer = 0
bullet.Force = 100
bullet.Damage = 1000
bullet.AmmoType = "AR2"
local rnda = self.Primary.Recoil * -1
local rndb = self.Primary.Recoil * math.random(-1, 1)
self:ShootEffects()
self.Owner:FireBullets( bullet )
self.Weapon:EmitSound(Sound(self.Primary.Sound))
self.Owner:ViewPunch( Angle( rnda,rndb,rnda ) )
self:TakePrimaryAmmo(self.Primary.TakeAmmo)
self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )
self.Weapon:SetNextSecondaryFire( CurTime() + self.Primary.Delay )
end
Is there any other way of having a gun shoot? Because for some reason no matter what I set the damage to it seems to have the same effect, so I was wondering if there is any other way to make it do more damage.
Thanks in advance
=]