c_trace

Posted By: flits

c_trace - 11/22/10 21:04

im using c_trace a lot but now i am trying to use IGNORE_YOU but the flag doesnt work right i gues

i use c_updatehull(ent,1); for every ent

you = player1; // pointer is right
c_trace(camera.x,temp,IGNORE_PASSABLE | IGNORE_FLAG2 | IGNORE_YOU);

it seems to just to scan the you pointer instead of ignore

is there any explantion execpt the manual for this?
Posted By: darkinferno

Re: c_trace - 11/23/10 02:36

ahm, why not just use ignore_me ? i mean, i assume that when the trace is made, you is changed to whatever it hits
Posted By: EvilSOB

Re: c_trace - 11/23/10 04:13

If you use the IGNORE_YOU flag, then the YOU pointer DOES NOT get replaced by whatever the trace hits...

Put another way ...

If you use IGNORE_YOU, then the YOU pointer REMAINS UNCHANGED regardless if the trace hits anything or not...

Could that be what is going wrong?

Look at the c_trace "Modifies" section for mention of the YOU pointer...


Hope this helps.
© 2024 lite-C Forums