GetFacing - Simple method to transform toon's facing direction based on transport? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetFacing - Simple method to transform toon's facing direction based on transport?

    So I can transform the coordinate systems easily enough, but I hadn't really thought of how to do this for my toon's pitch and rotation based on the transport's transformation matrix.

    Is there a built-in helper that I'm missing w/C# to accomplish this?

    I started to look at the second part of CGGameObject::GetFacing and it went a bit over my head.

    Thanks in advance!
    ~ Tanaris
    https://tanaris4.com

    GetFacing - Simple method to transform toon's facing direction based on transport?
  2. #2
    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)
    Look at 0x0041F420 (not rebased) - specifically:
    Code:
      v2 = this;
      v3 = MovementGetTransportFacing(*(_QWORD *)(this + 8));
      v23 = v3;
    
    ...
    
        CMath::normalizeangle0to2pi_(*(float *)(v2 + 32) + v23);
        *(float *)(v2 + 32) = v3;
    To me it just looks like your rotation gets set += transport rotation. IIRC your pitch does not get changed with entering and exiting transport.

  3. #3
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you know exactly where the transport's rotation is? When looking at the matrix I see 4 floats that constantly change (2 are basically opposites of each other), I'm not certain which I should be looking at.

    Then I'll give that a try
    https://tanaris4.com

  4. #4
    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 Tanaris4 View Post
    Do you know exactly where the transport's rotation is? When looking at the matrix I see 4 floats that constantly change (2 are basically opposites of each other), I'm not certain which I should be looking at.

    Then I'll give that a try
    No idea. Just use this?
    Code:
    MovementGetTransportFacing(*(_QWORD *)(this + 8))
    Edit: You could also use the vfunc @ 0xD. This is exactly what MovementGetTransportFacing does anyway though.
    Last edited by Jadd; 07-17-2012 at 11:49 AM.

Similar Threads

  1. Replies: 6
    Last Post: 03-31-2011, 08:13 AM
  2. [How-To] Simple method to start "AH" (for noobs) 1k/day(Depends on ur items)
    By hamelik in forum World of Warcraft Guides
    Replies: 3
    Last Post: 12-13-2010, 02:37 PM
  3. Simple methods; Massive gold
    By slip9 in forum World of Warcraft Guides
    Replies: 58
    Last Post: 06-02-2009, 03:44 AM
  4. simple method to change doodads?
    By Winzich in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-04-2007, 09:58 AM
All times are GMT -5. The time now is 03:14 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