View Single Post
  #2  
Old 01-10-2004, 12:03 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

I'm going to give this a try on the Scorpious2k Server wityh a couple of exceptions:

The Z coord calculation is important. In hilly areas or where a dest is lower than the start position you will find NPCs walking on air, This is not good. And if the dest is lower, either the NPC moves underground or the client goes nuts resetting the position to the surface. For these reasons, I uncommented the line where the Z values are calculated,

My other change for our purposes was to change Mob::CalculateNewPosition2 to
Code:
	return CalculateNewPosition(x, y, z, speed);
for testing purposes rather then change all ocurrences of it. We make mods here with #ifdef... #endif so we can unplug them easily if there are problems... I do a lot of testing. Usually on our miniserver before the live one.

We will be trying this today.
__________________
Maybe I should try making one of these servers...
Reply With Quote