Quote:
Originally Posted by ConnorMcLeod
FM_Touch is not efficient to hook, you should never hook it.
|
Ham_Touch does not register my custom entities.. or any entities at all for that matter.
PHP Code:
//public Hook_Touch(ent, id)//Ham Hook.. idthis, idother??
public Hook_Touch(id, ent)
{
//
client_print(0, print_chat, "%d -> %d", id, ent);
if(!pev_valid(ent))
return FMRES_HANDLED;
if(!is_user_alive(id))
return FMRES_HANDLED;
//client_print(0, print_chat, "%d -> %d", id, ent);
client_print(0, print_chat, "Touch Post Checks");//I never get this far, I have only seen when I touch world
new className[64];
pev(ent, pev_classname, className, charsmax(className));
EDIT: im using register_touch now, is this more efficient?
PHP Code:
register_touch("*", "player", "Hook_Touch");
__________________