Ham_Weapon_Reload Problem.
I'm making a new, cool mod... but i'm having problems with Ham_Weapon_Reload. I'm trying to hook it.. but nothing happens.
PHP Code:
Mod: cstrike, but didn't work on HL too. I've found only one topic where Ham_Weapon_Reload was involved... but there i didn't find anything useful. I don't want to catch the After-Reload event in the Messy way... i would like to use this method if it's possible. Thanks. |
Re: Ham_Weapon_Reload Problem.
I think you should register this forward with the weapons class and not the player class.
What I'm using for a coming plugin : Code:
It should the same for 'Ham_Weapon_Reload'. |
Re: Ham_Weapon_Reload Problem.
Mm... i used "weapon_glock18"... nothing happened. If it would work... should i register ~20-30 forwards.. because there are ~20-30 weapon in CS. Of course i can do for loop... but isn't there a better way.. like "weapon_" >>> All entities with classname containing/starting(with) "weapon_" would be hooked/included... anyway... it doesn't work... :(. Thanks for your help anyway.
|
Re: Ham_Weapon_Reload Problem.
Sawce has already said there is not any others ways than that.
[edit] Just tested and it works fine. "weapon_glock18" should work. Try as post. |
Re: Ham_Weapon_Reload Problem.
Quote:
|
Re: Ham_Weapon_Reload Problem.
Thanks arkshine! I just wrote "weapon_glock18" in the wrong RegisterHam(one above). Now i fixed it. :).
Thanks danielkza for trying to help :). I'll stick to my method... btw it just catches when you start reloading the weapon.. even if you've got full clip it still calls this event when you press the R(reload key). I fixed it using Cur weapon.. anyway.. thanks all :). |
| All times are GMT -4. The time now is 03:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.