Execute function for each click
Hey...
I have this in my code: PHP Code:
How can I throw ONE kunai for each click? EDIT: I've noticed now this isn't Scripting help -.- Move this please, and sorry ... |
Re: Execute function for each click
try it with pistol, they are not machine guns.
EDIT: and hook Ham_Weapon_PrimaryAttack |
Re: Execute function for each click
With pistols I have to put infinite ammo and unblock pickup pistols... Since I'm a new at this it's better to make it simple :)
I tought that there was a function (or something else...) that would block it from repeat the function, if there isn't I'll just delay the process... |
Re: Execute function for each click
I'd recommend using FM_CmdStart instead of PreThink, but that's off-topic and I won't go into that.
However, you should use this: Code:
|
Re: Execute function for each click
2 Attachment(s)
Why do you recommand CmdStart ?
For unlimited ammo you can use method of one of following plugins : |
Re: Execute function for each click
I recommend it because using PreThink to hook when a player begins using IN_ATTACK is very inefficient.
|
Re: Execute function for each click
PostThink could be more efficient than CmdStart because it saves 1 native, and also it's a multiforward, else can do the same in PreThink POST (client_impulse is the engine CmdStart multiforward but it seems to be bugged) :
PHP Code:
|
| All times are GMT -4. The time now is 14:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.