Animation Fixes

If changing this:

function SWEP:Initialize()
if (SERVER) then
self:SetWeaponHoldType(“normal”)
self:SetNPCMinBurst( 30 )
self:SetNPCMaxBurst( 30 )
self:SetNPCFireRate( 0.01 )
end

To This:

function SWEP:Initialize()
self:SetWeaponHoldType(“normal”)
if (SERVER) then
self:SetNPCMinBurst( 30 )
self:SetNPCMaxBurst( 30 )
self:SetNPCFireRate( 0.01 )
end

Fixes half of the problem, how would one accordingly change this:

function SWEP:SetIronsights(b)
if b and SERVER then
self:SetWeaponHoldType(self.HoldType)
GAMEMODE:SetPlayerSpeed(self.Owner, GetConVarNumber(“wspd”) / 3, GetConVarNumber(“rspd”) / 3)
elseif SERVER then
self:SetWeaponHoldType(“normal”)
GAMEMODE:SetPlayerSpeed(self.Owner, GetConVarNumber(“wspd”), GetConVarNumber(“rspd”))
end
self.Ironsights = b
end

The problem trying to be solved, incidentally, is the bug where everyone holds custom weapons as they would a pistol.