Adding Lines to shared.lua

In this portion…

SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = 0
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = “”

Am I able to add this…

SWEP.Primary.Delay = 0.25

The weapon is automatic and I want to change the delay between shots, I cannot find any in the current file.

Yes, you are able to add that line, but you also need to place this: [lua]self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )[/lua] to function SWEP:PrimaryAttack(), at the end obviously.

I actually found the lines where the delay is…

self.Weapon:SendWeaponAnim( ACT_VM_PRIMARYATTACK )
self.Owner:SetAnimation ( PLAYER_ATTACK1 )
self.Weapon:SetNextPrimaryFire ( CurTime ( ) + 0.1 ) <<<— It’s that I have to change

Yeah, it doesn’t really matter if you use SWEP.Delay or just enter a number, it’s just to make things more readable, specially when you take a look at your work later and forgot to comment it. :stuck_out_tongue: