Raised This Month: $ Target: $400
 0% 

Ham_Weapon_PrimaryAttack Hook Problem/Glitch?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
uxMal
Member
Join Date: Oct 2007
Old 10-11-2009 , 08:30   Ham_Weapon_PrimaryAttack Hook Problem/Glitch?
Reply With Quote #1

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?
uxMal is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode