I noticed in my testing that "gravity" is applied to the mob elsewhere and you don't get floating or "buried" symptoms on the client. Let me know how adding the Z calcs back in work for you. I'm just getting familiar with the code base again, and there have been lots of updates since a year ago.
As for the function naming, it really isn't consistant in the code between CalculateNewPosition and CalculateNewPosition2, but the code is the same in both. My main goal was just to improve the function. Feel free to adjust to however needed. I know most coders will #ifdef to allow for easier testing.
Let me know how it goes for you and thanks for taking a look at it!
-Valdain
|