Jump to content
  • Bug at wManager.Wow.Helpers.MovementManager.Face


    reapler
    • Version: All Product: Developers Type: Bug Status: Confirmed

    Hello, i would like to report that the facing behavior isn't working correct on the 3.3.5a client.

    I tried to call "ClickToMove.CGPlayer_C__ClickToMove(position.X, position.Y, position.Z, 0UL, 2, 0.5f)" with different ClickToMoveTypes.

    The result: it face to an other fixed position in nowhere.

     

    Thank you in advance.



    User Feedback

    Recommended Comments

    An alternative would be to use wManager.Wow.ObjectManager.ObjectManager.Me.Rotation. But it's also not that what it should do while moving.

    for e.g:

    The player face to the angle but movement doesn't get updated that result in that the character is still moving to the same direction before the rotation was set:

    - movement direction is the same

    - only facing is changed 

    It looks abit strange while moving :)

    I've read that a movementflag can be changed to correct this wrong behavior but i'm not sure.

     

    Best regards

    Link to comment
    Share on other sites

    I belive "public static void CGPlayer_C__ClickToMove(float x, float y, float z, ulong guid, int action, float precision)" is used wrong, if you have ClickToMoveType.Face as action.

    I've made a method to set rotation based on position:

        public void Face(Vector3 to)
        {
            var me = wManager.Wow.ObjectManager.ObjectManager.Me;
            ClickToMove.CGPlayer_C__ClickToMove(0, 0, 0, me.Guid, 2, (float)System.Math.Atan2(to.Y - me.Position.Y, to.X - me.Position.X));
        }

    So this means precision would change to rotation.

    This worked for me flawless on 3.3.5a. I think the behavior is almost the same for other clients.

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...