Inside3D!
     

DP_QC_FINDCHAIN question

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Sat Aug 18, 2007 9:15 pm    Post subject: DP_QC_FINDCHAIN question Reply with quote

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 ?
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Sat Aug 18, 2007 10:18 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Sat Aug 18, 2007 11:52 pm    Post subject: Reply with quote

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. Razz
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Sun Aug 19, 2007 1:59 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group