WEAPON/GetNPCBulletSpread

From Garry's Mod
Jump to: navigation, search
 WEAPON:GetNPCBulletSpread( )

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

number proficiency

How proficient the NPC is with this gun. See WEAPON_PROFICIENCY_ Enums

Returns

number

An amount of degrees the bullets should deviate from the NPC's NPC:GetAimVector. Default is 15.
Personal tools
Navigation