Event fired when shield is used or not used?
Heya, is there an event I can hook for when the CT shield is used? CurWeapon does not seem to fire when the shield is used or not used...
Thanks, Mugwump |
Re: Event fired when shield is used or not used?
|
Re: Event fired when shield is used or not used?
I don't know if that helps. The definition says if the user _has_ a shield, but not whether its in use mode or not.
When a player uses their shield (puts it in block mode) their default runspeed slow down, I want to be able to detect that they just used their shield so I can override the runspeed change... Thanks, Mugwump |
Re: Event fired when shield is used or not used?
You have to use IN_ATTACK2 button to use a shield. ( I believe :o )
So something like : Code:
But to detect properly IN_ATTACK2 you have to use the PlayerPreThink forward or CmdStart, I think. |
Re: Event fired when shield is used or not used?
You can use this, may be make full tests before...
Code:
Either you use this in a plugin, either you create a native, either you need the event when the player uses it and in this case i guess you need to create a forward.Well, i don't know yet how to deal with forward creation, but you seem to be skilled ;) I guess this offset could be added in cstrike module. |
Re: Event fired when shield is used or not used?
The PreThink logic appears to work great, I can use a similar technique for what I need to accomplish. Thank you!
-Mugwump |
Re: Event fired when shield is used or not used?
Quote:
|
| All times are GMT -4. The time now is 01:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.