Raised This Month: $ Target: $400
 0% 

Event fired when shield is used or not used?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 10-23-2007 , 08:41   Re: Event fired when shield is used or not used?
Reply With Quote #7

Quote:
Originally Posted by arkshine View Post
You have to use IN_ATTACK2 button to use a shield. ( I believe )

So something like :

Code:
if( ( pev( id, pev_button ) & IN_ATTACK2 ) && cs_get_user_shield( id ) )

But to detect properly IN_ATTACK2 you have to use the PlayerPreThink forward or CmdStart, I think.
CmdStart is the best method, since that is where the buttons are actually sent/received from.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz 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 01:12.


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