Thread
:
How to block PlayerUse ?
View Single Post
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
04-04-2011 , 03:24 Re: How to hook PlayerUse ?
#
9
Nice... Moved posts. Though I do think that "How to
block
PlayerUse ?" would fit a bit more than "How to
hook
PlayerUse ?" for thread name. =P
And the reason why I am suggesting to use Player
Pre
Think rather than Player
Post
Think is because if using Post, than you will have IN_USE set in pev_oldbuttons, at functions where it shouldn't be there. In other words if you are holding IN_USE and block it at every PlayerPostThink, than during the time when you are holding your use key, pev_oldbuttons will have IN_USE in them. That won't necessary lead to some engine glitches (though it might - here I'm just guessing), but it can cause problems with other plugins what detect when you release USE key (this once I can say for sure - don't know if such a plugin exists, but it wont he hard to create one).
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in
Approved List
:
*
Bomb/Death/CSS Radar
*
HotVision
___
Need help? Please check
this documentation
first.
MPNumB
View Public Profile
Send a private message to MPNumB
Visit MPNumB's homepage!
Find More Posts by MPNumB