I'm fairly sure you have to use this:
[url]http://wiki.garrysmod.com/page/Weapon/SetNextPrimaryFire[/url]
In a WEAPON:PrimaryAttack( ) hook, don't you?
Where would i put this?
I'm sorry in advance for any incompetence with LUA... :/
[QUOTE=Richtofen;39977791]LUA[/QUOTE]
*Lua
Weapon:PrimaryAttack() is a function that you define & call inside the SWep.
[lua]
function SWEP:PrimaryAttack()
--Code & shit goes here
end[/lua]
Still getting the crazy rounds per second.
What i used with The Primary Attack
[code]
function SWEP:CanPrimaryAttack()
if ( self.Weapon:Clip1() <= 0 ) then
self:EmitSound( "Weapon_SMG1.Empty" )
self:SetNextPrimaryFire( CurTime() + 0.2 )
self:Reload()
return false
end
return true
end
[/code]
Sorry, you need to Log In to post a reply to this thread.