Raised This Month: $ Target: $400
 0% 

Block pickup for everything except C4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-08-2009 , 12:31   Re: Is it better to register new event instead?
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
/**
* Description: Deploys the entity (usually a weapon).
* Forward params: function(this);
* Return type: Integer (boolean).
* Execute params: ExecuteHam(Ham_Item_Deploy, this);
*/
Ham_Item_Deploy,

You have to register it for each weapon, but it will still be more efficient than prethink.
I think CurWeapon is just fine for this... bug is when you use client_cmd and not engclient_cmd (bug engclient_cmd(id, "weapon_XXX") mess up custom models)
Do you guys have any idea how often CurWeapon is called? I read somewhere (don't ask me where, don't remember) it's called on every shot, on every weapon switch, etc.
__________________

Community / No support through PM
danielkza 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 09:13.


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