PDA

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


newsbot
08.10.2013, 14:00
Автор: Schmoozerd


<pre style='white-space:pre-wrap;width:81ex'>[c12766] 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

(based on commit [12565] - 897ed82)</pre>


Подробнее... (https://github.com/cmangos/mangos-cata/commit/765f25d8d0e86c09340d95d36a68b26a84d6cd0c)