Raised This Month: $32 Target: $400
 8% 

Hook when weapon done reloading


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 01-17-2011 , 19:25   Hook when weapon done reloading
Reply With Quote #1

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.
__________________
okay
ARES[ro] is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-17-2011 , 19:30   Re: Hook when weapon done reloading
Reply With Quote #2

http://wiki.alliedmods.net/Half-Life_1_Game_Events#AmmoX
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 01-17-2011 at 19:33.
drekes is offline
Send a message via MSN to drekes
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 01-17-2011 , 19:34   Re: Hook when weapon done reloading
Reply With Quote #3

that gets also called on weapon draw weapon switch....
__________________
okay
ARES[ro] is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-17-2011 , 19:50   Re: Hook when weapon done reloading
Reply With Quote #4

Quote:
Originally Posted by ARES[ro] View Post
that gets also called on weapon draw weapon switch....
Do a bpammo check then?
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 01-17-2011 , 20:34   Re: Hook when weapon done reloading
Reply With Quote #5

Quote:
Originally Posted by DarkGod View Post
Do a bpammo check then?
I would but in zombie plague thats always the same value ok? Can any1 really help me with a hook on when reload is over.
Or tell me how to get with pdata the reload time and i can add that to my ham_weapon_relaod hook.
__________________
okay
ARES[ro] is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-17-2011 , 20:40   Re: Hook when weapon done reloading
Reply With Quote #6

hope this helps: http://wiki.alliedmods.net/CBasePlayerWeapon_%28CS%29
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 01-17-2011 , 20:44   Re: Hook when weapon done reloading
Reply With Quote #7

perfect, thanks drekes +karma but still didnt help cuz there is no countdown
__________________
okay

Last edited by ARES[ro]; 01-17-2011 at 23:07.
ARES[ro] is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-18-2011 , 00:21   Re: Hook when weapon done reloading
Reply With Quote #8

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.
__________________
Bugsy is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 01-18-2011 , 00:46   Re: Hook when weapon done reloading
Reply With Quote #9

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.
__________________
okay
ARES[ro] is offline
Reply


Thread Tools
Display Modes

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 03:04.


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