PDA

Просмотр полной версии : [12565] Improve handling of TargetMMGen


newsbot
02.10.2013, 15:37
Автор: Schmoozerd


<pre style='white-space:pre-wrap;width:81ex'>[12565] Improve handling of TargetMMGen

This will have impact on Chase and Follow Movement.

* Refactor code to check if a new position is required for the MMGen into the new function RequiresNewPosition
* Refactor code to get the current targeted distance into function GetDynamicTargetDistance
* Change ChaseMMGen (angle = 0.0f case) chase to best contact point, not zero angle.

Thanks to Cala and X-Savior for testing. Special thanks to cala for also suggesting improved values for the magic numbers
Close #112</pre>


Подробнее... (https://github.com/cmangos/mangos-wotlk/commit/897ed8271d4c1ae35a3703e48bbf9c418bb4bf4f)