Quote:


Lol, last week I was stuck on structs that do not exist anymore after a function ends. So it's possible to keep it existing without defining a struct outside the function ... sigh.



Yes but be careful with it, you might create really nasty bugs. (Like the program crashing randomly after some time)


I'm not sure about ent_create. I know the engine uses a linked list for all engine objects internally. So that could not be the reason for the max_entities limitation. This is indirectly confirmed by the manual which states: "for every entity, around 1.5..2.5 KB memory is reserved from the nexus, dependent on its bones size." (max_entities page). That suggests that this memory is only allocated when the entity is created because it can't know the bones size before that.

EDIT: but then again, the word "reserved" suggests that it is in fact allocated beforehand.. I don't know.

Last edited by Excessus; 01/16/08 18:54.