Garry's Mod Wiki

Weapon:SetNextPrimaryFire

  Weapon:SetNextPrimaryFire( number time )

Description

Sets when the weapon can fire again. Time should be based on CurTime.

The standard HL2 Pistol (weapon_pistol) bypasses this function due to an internal implementation.
This will fire extra bullets if the time is set to less than CurTime.

Issue Tracker: 3786

Arguments

1 number time
Time when player should be able to use primary fire again