WoW World of Warcraft Facing problem menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    ValvePro's Avatar Sergeant
    Reputation
    18
    Join Date
    Jun 2012
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WoW World of Warcraft Facing problem

    Hey -
    I've a problem to face my character to a position x,y. I hope someone can help me.

    Using:
    Code:
    typedef char ( __thiscall * func_SetFacing)(DWORD ActivePlayerObject, int UNK, float Angle);
    WoWBase + 0x4C6320

    I've calculate the angel like that:
    Code:
    angle = atan2(XMoveTo-OwnX, YMoveTo-OwnY)
    What I'm doing wrong?

    Thanks

    WoW World of Warcraft Facing problem
  2. #2
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You've inverted X and Y:

    Code:
            public static float CalculateNeededFacing(EzLocation start, EzLocation faceTarget)
            {
                return NormalizeRadian((float) Math.Atan2((faceTarget.Y - start.Y), (faceTarget.X - start.X)));
            }

  3. #3
    ValvePro's Avatar Sergeant
    Reputation
    18
    Join Date
    Jun 2012
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ohaa I haven't seen this stupid mistake :/

    Another question.. is it possible to use SetFacing while walking? Because it doesn't set the correct facing..

  4. #4
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to call CGInputControl__UpdatePlayer (or something like that)

  5. #5
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    You need to call CGInputControl__UpdatePlayer (or something like that)
    int __thiscall CGUnit_C::TrackingSetTurn(CGUnit_C *pUnit, uint32 uTimeStamp, float fAngle)

    At 0x004C6320 (5.1.0.16357 x86 rebased). The "uTimeStamp" must be correct - the current TimeStamp (which is what you want to be using) can be obtained using the OsGetAsyncTimeMs function.

    It also sends the CMSG_MOVE_SET_FACING packet so the angle must be in the correct range to avoid disconnecting. Simply use mod(2pi) for the angle to be correct.
    Last edited by Jadd; 03-01-2013 at 08:51 AM.

  6. #6
    ValvePro's Avatar Sergeant
    Reputation
    18
    Join Date
    Jun 2012
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I already use the function at 0x004C6320 but dont work while moving....

  7. #7
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ValvePro View Post
    I already use the function at 0x004C6320 but dont work while moving....
    You're trying to set the facing while you're moving via CTM?!

  8. #8
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ValvePro View Post
    I already use the function at 0x004C6320 but dont work while moving....
    The type definition has changed since I last used it (my mistake). It now uses a timestamp parameter as well. I have edited the post above to correct it.

  9. #9
    ValvePro's Avatar Sergeant
    Reputation
    18
    Join Date
    Jun 2012
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you tell me how I get the uTimeStamp param?
    I don't think that's the normal one (like time() at c++)?

  10. #10
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ValvePro View Post
    Could you tell me how I get the uTimeStamp param?
    I don't think that's the normal one (like time() at c++)?
    TickPerformanceCount = 0xBFEB14 (rebased)

  11. #11
    Master674's Avatar Elite User
    Reputation
    487
    Join Date
    May 2008
    Posts
    578
    Thanks G/R
    2/23
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OsGetAsyncTimeMs everything else is slightly off and will dc you.

  12. #12
    ValvePro's Avatar Sergeant
    Reputation
    18
    Join Date
    Jun 2012
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot =) solved all problems =)

    Originally Posted by Frosttall View Post
    You're trying to set the facing while you're moving via CTM?!
    No I'am using the function not via CTM is it crucial?
    Last edited by ValvePro; 03-11-2013 at 05:54 AM.

Similar Threads

  1. [Selling] WOW(world of warcraft) 7 pvp(grievous)90s w/ Gold, mounts, achieves...2200 cr
    By Metra20 in forum WoW-US Account Buy Sell Trade
    Replies: 0
    Last Post: 02-11-2014, 04:28 AM
  2. [Selling] El Pollo Grande Loot Card from Fields of Honor | WOW World of Warcraft TCG
    By Maxicode in forum WoW-EU Account Buy Sell Trade
    Replies: 0
    Last Post: 05-21-2012, 04:33 AM
  3. [Selling] El Pollo Grande Loot Card from Fields of Honor | WOW World of Warcraft TCG Image not
    By Maxicode in forum WoW-US Account Buy Sell Trade
    Replies: 0
    Last Post: 05-21-2012, 04:31 AM
  4. [Selling] El Pollo Grande Loot Card from Fields of Honor | WOW World of Warcraft TCG Image not
    By Maxicode in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 05-21-2012, 04:23 AM
  5. Asper WoW - [World of Warcraft Asper style!]
    By Cigma in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 04-25-2009, 11:56 PM
All times are GMT -5. The time now is 03:52 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search