Quote:
Originally Posted by GuskiS
I think it is not the thing with servers posibilities, but with the function I'm using - tracemodel.
Are you using tracemodel?
I think I used to find it by classname, but then I changed it to stored entities. Was trying to fix it, still crashing.
|
Not in the roach code, but in another plug...
Play with this:
PHP Code:
stock get_dat_deadbody(ent, Float:startOrigin[3], Float:endOrigin[3])
{
if(!is_valid_ent(ent))
return false;
static class[32];
entity_get_string(ent, EV_SZ_classname, class);
log_to_file("testing.txt", "Trace model from %.1f, %.1f, %.1f - %.1f. %.1f, %.1f ent id %d class %s", startOrigin[0], startOrigin[1], startOrigin[2], endOrigin[0], endOrigin[1], endOrigin[2], ent, class);
if (pev_valid(ent) != 2)
{
log_to_file("texting.txt", "Am I the last line in this text? Then you've found the problem :crab:");
}
new ptr;
engfunc(EngFunc_TraceModel, startOrigin, endOrigin, HULL_POINT, ent, ptr);
if(get_tr2(ptr, TR_pHit) == ent)
{
return true;
}
return false;
}