How to I increase the following NPC’s shooting accuracy?

local ent = ents.Create(“npc_combine_s”) – This creates our npc entity
ent:SetPos(tr.HitPos) – This positions the npc at the place our trace hit.
ent:Spawn() – This method spawns the npc into the world
ent:Give( “ai_weapon_smg1” ) – This method gives the npc a pistol

The code bellow does not help with there aim.

ent:SetCurrentWeaponProficiency( WEAPON_PROFICIENCY_VERY_GOOD )

 ent:SetCurrentWeaponProficiency( WEAPON_PROFICIENCY_PERFECT )