Quote:
Originally Posted by Mirk
Instead
RegisterHam( Ham_Item_Deploy, szWeapon, "ham_Deploy_Post", 1 );
Replace
ExecuteHamB( Ham_Item_Deploy, find_ent_by_owner( -1, "weapon_knife", id ) );
or
ExecuteHamB( Ham_Item_Deploy, find_ent_by_owner( -1, szWeapon, id ) );
???
|
RegisterHam( Ham_Item_Deploy, "weapon_knife", "ham_Deploy_Post", 1 );
Will hook Ham_Item_Deploy event from game.
ExecuteHamB( Ham_Item_Deploy, find_ent_by_owner( -1, "weapon_knife", id ) );
This will tell the game it should start Ham_Item_Deploy event, that way changing everything you need if you have hooked it.
__________________