DP_QC_FINDCHAIN question
Moderator: InsideQC Admins
4 posts
• Page 1 of 1
DP_QC_FINDCHAIN question
I was checking DarkPlaces built-ins library and found this useful alternative to the regular find(). But I was not able to understand two important details:
1) why findchain() and find() have two different signatures ? You cannot inform the start entity like in regular find();
2) from what I understand from DP source code, non-solid entities are always discarded. Regular find() does not ignore those. Is this correct ?
1) why findchain() and find() have two different signatures ? You cannot inform the start entity like in regular find();
2) from what I understand from DP source code, non-solid entities are always discarded. Regular find() does not ignore those. Is this correct ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
The start entity parameter for find is meant for iteration, since findchain chains the entities, you don't need to iterate in that way.
As for 2, I don't know what you mean, unless you're referring to findradius, which is a different animal.
As for 2, I don't know what you mean, unless you're referring to findradius, which is a different animal.
- FrikaC
- Site Admin
- Posts: 1026
- Joined: Fri Oct 08, 2004 11:19 pm
FrikaC wrote:The start entity parameter for find is meant for iteration, since findchain chains the entities, you don't need to iterate in that way.
Fair enough to me.
FrikaC wrote:As for 2, I don't know what you mean, unless you're referring to findradius, which is a different animal.
Yeah, turns out I was looking the findradius implementation also and got confused. Guess I need to sleep more and code less.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
In darkplaces, findradius only returns SOLID_NOT entities if the cvar sv_gameplayfix_blowupfallenzombies is enabled. Quake never returned SOLID_NOT entities. Unfortunately in darkplaces, sv_gameplayfix_blowupfallenzombies defaults on, which is a major gameplay change from Quake.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest