Quote:
Originally Posted by ConnorMcLeod
/**
* 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.
__________________