Okay blink here is my ooooold project folder.
*Click*Beware the ugly code might bite.
BTW: I decided to make a handy script pack as a contribution including an octree solution for entities, my swarm behavior script, a special spider movement script (walk on walls no matter what the normal is) and some collision avoiding stuff.
It should be easy to convert some of those scripts to c-script without going through too much trouble.