Thread: OpenZone 2.1
View Single Post
  #9  
Old 07-10-2003, 04:39 AM
Windcatcher
Demi-God
 
Join Date: Jan 2002
Posts: 1,175
Default

I've almost got it. There's a section in the region references that I didn't understand, and I think I know what it does now. I was up most of the night deciphering it, and it looks like a run-length-encoded region list. I started playing with what I figured out and I can get the mobs to position themselves correctly--sometimes. My guess is that, for any given region, it's either a list of all regions above and below it or regions that region "touches" (or both). I'm on vacation this week, so I have lots of time to play with it.

WC

EDIT: Actually I'm revising my assessment of the list. I still think it's a region list, but I think it's merely a list of regions within a certain radius/cubic volume with the region in question at the center. This way the client can know if you're in the vicinity, and it can then reposition the mobs in the region. This list is expensive to produce from a CPU standpoint and would definitely be something that should be calculated in advance.
Reply With Quote