What exactly does the "IgnoreEnt" paramter do? I thought it ignored
any ent like you set it to 1 to ignore 0 not to, but I guess not. So it ignores the ent specified in the "IgnoreEnt" paramter? So what if there is a 0 for the paramater? If it only ignores the ent specified, how do you make it ignore all the players?
So would this trace through players?
Code:
//loc is the origin of the second ent and idPoint is the beggining ent
stock UTIL_TraceThroughPlayers(idPoint,Float:loc[3])
{
new Float:endorigin[3]
new Float:origin[3]
new Float:blah[3]
endorigin[0]=loc[0]
endorigin[1]=loc[1]
endorigin[2]=loc[2]
pev(idPoint,pev_origin,origin)
engfunc(EngFunc_TraceLine,origin,endorigin,1,-1)
traceresult(TR_EndPos,blah)
if (blah[0] == endorigin[0] && blah[1] == endorigin[1] && blah[2] == endorigin[2])
return 1
return 0
}
__________________
My 3D Art: http://k-c-e.deviantart.com/
[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]