View Single Post
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-23-2022 , 17:18   Re: Ham_ObjectCaps bug ?
Reply With Quote #7

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
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY