Hey,
i recently stumbled upon a strange issue with
Code:
RegisterHam(Ham_Weapon_PrimaryAttack,"weapon_deagle","func")
So it's getting executed everytime you shoot with the deagle but if you keep the mouse button pressed (as deagle does not shoot automatically) it gets executed every frame. I don't think its supposed to do so but whatever.
I made a workaround for it checking the bullet count and returning if the count hasn't changed but now are several new problems...
If you keep the button pressed a long time it executes the hook twice(even with the bullet check) because when you shoot you get the old bullet count before the shoot in the hooked function even if you set post hook to true but as it gets executed every frame after some time it gets the new bullet count after the first shot and shoots again....
Also im using this for superhero and because theres automatic reload so clip != 0 but sometimes it displays this in my func and this is glitching it too..
Any ideas on this?