|
4 registered members (JeyKey II, Quad, mayarik, 1 invisible),
16,867
guests, and 1
spider. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Question(s) regarding c_trace
#412894
12/04/12 20:58
12/04/12 20:58
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Hello jcl, In this post I was asking something about c_trace, but since no one answered yet I decided to ask here: I want to know if it's possible to use c_trace on only one entity. It would also be nice to know if theres a way to check if a certain point is inside the collision-mesh of an entity. regards, Kartoffel 
POTATO-MAN saves the day! - Random
|
|
|
Re: Question(s) regarding c_trace
[Re: 3run]
#412897
12/04/12 21:40
12/04/12 21:40
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
It probably seems dumb at first but this feature can be really helpful. It can make some things much easier and (should) improve the performance a lot.
POTATO-MAN saves the day! - Random
|
|
|
Re: Question(s) regarding c_trace
[Re: Kartoffel]
#412898
12/04/12 21:46
12/04/12 21:46
|
Joined: May 2009
Posts: 5,378 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,378
Caucasus
|
It can make some things much easier and (should) improve the performance a lot. That what I thought as well ^^ Good luck mate!
|
|
|
Re: Question(s) regarding c_trace
[Re: jcl]
#412966
12/05/12 17:02
12/05/12 17:02
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Thank you for the answer. for instance, setting all entities to group 1 and the entity to be detected to group 2? This workaround might work but it would force me to iterate through all entities and set their group number every time I want to do this 
POTATO-MAN saves the day! - Random
|
|
|
Re: Question(s) regarding c_trace
[Re: Kartoffel]
#412970
12/05/12 17:10
12/05/12 17:10
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Of course it wouldn't. Once your level starts iterate through all your entities and set their group to 1. Prior to tracing a single entity you set the group of that entity to 2, do the trace, and set it back to 1. No iteration required for a single trace. If you don't call c_ignore multiple times with different groups you have to use this instruction only once at level start as well, otherwise it is required before every trace.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|