Garry's Mod Wiki

WEAPON:GetNPCBulletSpread

  number WEAPON:GetNPCBulletSpread( number proficiency )

Description

Called when the weapon is used by NPCs to determine how accurate the bullets fired should be.

The inaccuracy is simulated by changing the NPC:GetAimVector based on the value returned from this hook.

Arguments

1 number proficiency
How proficient the NPC is with this gun. See WEAPON_PROFICIENCY enum

Returns

1 number
An amount of degrees the bullets should deviate from the NPC's NPC:GetAimVector. Default is 15.