Game Development Community

Container radius search only on the server container?

by Daniel Buckmaster · in General Discussion · 01/13/2010 (7:48 pm) · 3 replies

Is there any reason that we cannot perform radius searches on the client container?
AssertFatal(this == &gServerContainer, "Abort.  Searches only allowed on server container");
I'd like to use a radius search for object selection, and I don't want to have to do all the selection handling server-side. Is it safe to just knock out the assert?

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
01/16/2010 (10:01 am)
I did that years ago. It worked fine. I don't recall having to make any other changes.
#2
01/17/2010 (3:46 am)
Okay, thanks! I'll just do that :P. I thought it might be some sort of security issue...? But I'm assuming that a container search won't find objects that the client can't see anyway, since they won't be ghosted.
#3
01/17/2010 (11:11 am)
I imagine that someone thought it would be a good security measure, but in truth it's a pretty pointless restriction. It's just a convenience function allowing the client to search through ghosted objects which it already knows about. There are other ways to access the same object list, this one just takes advantage of the bin system to improve the efficiency of radius-limited searches.