Hook when weapon done reloading
I need way to hook when weapon is done reloading. That means when the numbers down bottom right are changed substracting the bpammo and adding to clip ammo.
|
Re: Hook when weapon done reloading
|
Re: Hook when weapon done reloading
that gets also called on weapon draw weapon switch....
|
Re: Hook when weapon done reloading
Quote:
|
Re: Hook when weapon done reloading
Quote:
Or tell me how to get with pdata the reload time and i can add that to my ham_weapon_relaod hook. |
Re: Hook when weapon done reloading
hope this helps: http://wiki.alliedmods.net/CBasePlayerWeapon_%28CS%29
|
Re: Hook when weapon done reloading
perfect, thanks drekes +karma but still didnt help cuz there is no countdown
|
Re: Hook when weapon done reloading
Easiest would be to hook CurWeapon since the HUD ammo is updated when reload is completed. Of course you will need some conditionals too since it is called on more than just reload.
|
Re: Hook when weapon done reloading
Yes bugsy I never denied its a good solution but it will never work with zombie plague because the bpammo is always going to be full. But I got this with Ham_weapon_reload and Ham_item_postframe. Now I have a different problem, going to post it in a new thread. Thanks for being helpful.
|
All times are GMT -4. The time now is 20:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.