Raised This Month: $ Target: $400
 0% 

No HE plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 06-12-2007 , 02:44   Re: No HE plugin
Reply With Quote #2

You'd probably need to make it something like

set_pev(id,pev_button, pev(id,pev_button) | IN_CANCEL)

Theres another way to do it too ~| IN_CANCEL maybe?

But anyway that's a really inefficient way to block HE throwing. Prethink is called every frame.. so lots.. 60 per second +?

What I'd do is hook the curweapon event (use register_event), this is called on every weapon switch, fire, reload and maybe a few other things.

Check if the current weapon is a HE and then force switch the user to knife or remove the grenade from them (set_user_weapons should work I think).
pRED* 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 10:32.


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