PHP Code:
public npc_objectcaps_pre(id)
{
if(pev(id,PEV_IDENTITY) == NPC_ID)
{
SetHamReturnInteger(FCAP_IMPULSE_USE);
return HAM_OVERRIDE;
}
return HAM_IGNORED;
}
I think this will not changed nothing, but there is.
Also test if npc_objectcaps_pre is called on second plugin.
Or finally hook using RegisterHamFromEntity
__________________