What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Getting Direction of movement

swiny

New Member
Joined
Dec 19, 2010
Messages
517
Reaction score
73
i been looking around for wow movements to basicly find out which way i am currently moving. I.E if im straifing, If im jumping. If im moving forward.

ive searched high and low on the WOWMovements and what not. cannot find anything thats related to it. or maybe i missed something and didnt read it properly.

thanks
 
Take a look at ObjectManager.Me.MovementInfo which is a <code><code>WoWMovementInfo </code></code>property

PHP:
 public class WoWMovementInfo
    {
        public WoWMovementInfo(uint ptr);

        public bool CanFly { get; }
        public float CosAngle { get; }
        public float CurrentSpeed { get; }
        public bool FallingFar { get; }
        public float FallStartHeight { get; }
        public uint FallTime { get; }
        public float FlyBackSpeed { get; }
        public float FlySpeed { get; }
        public float Heading { get; }
        public bool IsAscending { get; }
        public bool IsDescending { get; }
        public bool IsFalling { get; }
        public bool IsFlying { get; }
        public bool IsMoving { get; }
        public bool IsStrafing { get; }
        public bool IsSwimming { get; }
        public bool IsValid { get; }
        public bool JumpingOrShortFalling { get; }
        public float JumpVelocity { get; }
        public float LastFallHeight { get; }
        public uint MovementFlags { get; }
        public uint MovementFlags2 { get; }
        public bool MovingBackward { get; }
        public bool MovingForward { get; }
        public bool MovingStrafeLeft { get; }
        public bool MovingStrafeRight { get; }
        public bool MovingTurnLeft { get; }
        public bool MovingTurnRight { get; }
        public WoWPoint Position { get; }
        public float RunBackSpeed { get; }
        public float RunSpeed { get; }
        public float SinAngle { get; }
        public float SwimBackSpeed { get; }
        public float SwimSpeed { get; }
        public uint TimeMoved { get; }
        public ulong TransportGuid { get; }
        public float TurnSpeed { get; }
        public float WalkSpeed { get; }

        public T GetStorageField(uint offset) where T : struct;
        public T GetStorageFieldByOffsetIndex(int offsetIndex) where T : struct;
        public override string ToString();

        [Flags]
        public enum MoveFlags
        {
            None = 0,
            Forward = 1,
            Backward = 2,
            StrafeLeft = 4,
            StrafeRight = 8,
            StrafeMask = 12,
            Left = 16,
            Right = 32,
            TurnMask = 48,
            MoveMask = 63,
            PitchUp = 64,
            PitchDown = 128,
            PitchMask = 192,
            MotionMask = 255,
            Walk = 256,
            OnTransport = 512,
            Levitating = 1024,
            Root = 2048,
            Falling = 4096,
            FallingFar = 8192,
            FallMask = 12288,
            PendingStop = 16384,
            PendingStrafeStop = 32768,
            PendingForward = 65536,
            PendingBackward = 131072,
            StoppedMask = 200719,
            PendingStrafeLeft = 262144,
            PendingStrafeRight = 524288,
            PendingRoot = 1048576,
            Swimming = 2097152,
            Ascending = 4194304,
            Descending = 8388608,
            CanFly = 16777216,
            Flying = 33554432,
            SplineElevation = 67108864,
            SplineEnabled = 134217728,
            WaterWalking = 268435456,
            SafeFall = 536870912,
            Hover = 1073741824,
            PlayerFlag = 2147483648,
        }
    }
</t></t>
 
Last edited:
Back
Top