Classic TBC => Build 42940 menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    thateuler's Avatar Member
    Reputation
    8
    Join Date
    May 2019
    Posts
    29
    Thanks G/R
    22/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is FaceTo 0x1403F5150 (base 140000000) in this build? (i should mention that this is the first time i've tried to get faceto to work.)

    Code:
    __int64 __fastcall FaceTo(__int64 a1, double angle)
    {
      __int64 v2; // rdx
      __int64 result; // rax
      double v4; // xmm1_8
      double v5; // xmm2_8
      double v6; // xmm0_8
      char v7; // r14
      char v8; // r15
      char v9; // r12
      char v10; // r13
      char v11; // di
      char v12; // bl
      char v13; // si
      char v14; // bp
      __int128 v15; // xmm0
      __int128 v16; // [rsp+20h] [rbp-38h] BYREF
    
      result = *(_QWORD *)(a1 + 54216);
      if ( result == v2 )
        return result;
      v4 = 1.0 / (double)(int)*(_QWORD *)(a1 + 54512);
      v5 = (double)(int)result * v4;
      v6 = (double)(int)v2 * v4;
      if ( result > 0 && v5 <= 0.2000000029802322 )
      {
        v7 = 1;
        v8 = 1;
    LABEL_10:
        v9 = 1;
    LABEL_11:
        v10 = 0;
        goto LABEL_12;
      }
      if ( result > 0 )
      {
        v7 = 0;
        if ( v5 <= 0.25 )
        {
          v8 = 1;
          goto LABEL_10;
        }
      }
      if ( result > 0 )
      {
        v8 = 0;
        v7 = 0;
        if ( v5 <= 0.3499999940395355 )
          goto LABEL_10;
      }
      v8 = 0;
      v7 = 0;
      v9 = 0;
      if ( result <= 0 || v5 < 0.75 )
        goto LABEL_11;
      v10 = 1;
    LABEL_12:
      if ( v2 > 0 )
      {
        if ( v6 <= 0.2000000029802322 )
        {
          v11 = 1;
          v12 = 1;
    LABEL_21:
          v13 = 1;
          goto LABEL_22;
        }
        v11 = 0;
        if ( v6 <= 0.25 )
        {
          v12 = 1;
          goto LABEL_21;
        }
        v12 = 0;
        v11 = 0;
        if ( v6 <= 0.3499999940395355 )
          goto LABEL_21;
      }
      v12 = 0;
      v11 = 0;
      v13 = 0;
      if ( v2 > 0 && v6 >= 0.75 )
      {
        v14 = 1;
        goto LABEL_23;
      }
    LABEL_22:
      v14 = 0;
    LABEL_23:
      v15 = *(_OWORD *)(a1 + 24);
      *(_QWORD *)(a1 + 54216) = v2;
      v16 = v15;
      result = sub_1419C4110(&v16);
      if ( v7 != v11 || v8 != v12 || v9 != v13 || v10 != v14 )
        return sub_14061E070();
      return result;
    }
    When I call it with first arg the struct from OM, and second arg, is the facing angle (in radians, north is 0 or 2PI) nothing happens. Maybe I need to send a movemement update as well?

    The struct I'm passing as arg 1 is the same struct that has the unit (actor) vtable as the first element.

    Code:
    struct omObj {
        void **vmt;       /* 0x000 - 0x008 */
        char fill1[0x8];   /* 0x008 - 0x010 */
        uint8_t otype;    /* 0x010 - 0x011 */
        char fill2[0x7];  /* 0x011 - 0x018 */
        wGUID guid;       /* 0x018 - 0x028 */
        char fill3[0xc8]; /* 0x028 - 0x0f0 */
        struct movementData *moveData; /* 0xf0 - 0xf8 */
        char fill4[0x10]; /* 0x0f8 - 0x108 */
        vec4 go_position; /* 0x108 - 0x118 */
        char fill5[0x30]; /* 0x118 - 0x148 */
        vec4 unit_position;/* 0x148 - 0x158 */
        char fill6[0x34]; /* 0x158 - 0x18c */
        vec4 position2;   /* 0x18c - 0x19c */
        char fill7[0xee4];/* 0x019c - 0x1080 */
        wGUID go_owner;   /* 0x1080 - 0x1088 */
    }
    Some of the fields are probably wrong. like movement data, go_owner.

    But other fields are confirmed. e.g., in this struct, vmt[15] is the object name, 14 is height (not scaled), 58 is get facing, 56 is object position. (i think 90 returns a pointer to a guid. i didn't check which guid.). otype, guid, unit position, go position, these are confirmed.

    When I call vtable methods, I pass this struct, and it all works. I'm assuming this is the same struct to pass when calling FaceTo.
    Last edited by thateuler; 04-25-2022 at 12:39 PM.

    Classic TBC =&gt; Build 42940
  2. #17
    oiramario's Avatar Established Member
    Reputation
    85
    Join Date
    Mar 2021
    Posts
    133
    Thanks G/R
    36/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    const uint64_t ClickToMoveFacing = 0x3F5A60; // void (CGObject* localPlayer, float facing)

  3. Thanks thateuler (1 members gave Thanks to oiramario for this useful post)
  4. #18
    hackjoe8's Avatar Member
    Reputation
    1
    Join Date
    Jan 2022
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What does 0x210 stand for?

  5. #19
    ChrisIsMe's Avatar Contributor
    Reputation
    164
    Join Date
    Apr 2017
    Posts
    210
    Thanks G/R
    67/100
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hackjoe8 View Post
    What does 0x210 stand for?
    0x210 is 528 in hex

  6. #20
    hackjoe8's Avatar Member
    Reputation
    1
    Join Date
    Jan 2022
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ChrisIsMe View Post
    0x210 is 528 in hex
    Thank you!

  7. #21
    serioux1337's Avatar Member
    Reputation
    4
    Join Date
    Feb 2018
    Posts
    4
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Reading object names works:
    var n1 = Memory.ReadInt64(new IntPtr(BasePointer + 0x148 ), true);
    var n2 = Memory.ReadInt64(new IntPtr(n1 + 0xE0), true);
    Name = Memory.ReadString(new IntPtr(n2), 255, true);
    X = Memory.ReadFloat(new IntPtr(BasePointer + 0x108 ), true);
    Y = Memory.ReadFloat(new IntPtr(BasePointer + 0x10C), true);
    Z = Memory.ReadFloat(new IntPtr(BasePointer + 0x110), true);
    Still got problems with unit name and camera info
    thanks in advance

  8. #22
    thateuler's Avatar Member
    Reputation
    8
    Join Date
    May 2019
    Posts
    29
    Thanks G/R
    22/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by serioux1337 View Post
    Still got problems with unit name and camera info
    thanks in advance
    VMT 15 gives the name for any object type.

    I'm using the following for camera Info

    Code:
    struct Vector3
    {
    	float x;
    	float y;
    	float z;
    };
    
    struct Vector2
    {
    	float x;
    	float y;
    };
    
    struct Matrix
    {
    	float _00; //a
    	float _01; //b
    	float _02; //c
    	float _10; //d
    	float _11; //e
    	float _12; //f
    	float _20; //g
    	float _21; //h
    	float _22; //i
    };
    
    struct CCamera {
    	char pad[0x10];
    	struct Vector3 camPos;  //0x10-0x18
    	struct Matrix mat;      //0x1C-0x3C
    	float fov;              //0x40
    };
    GetActiveCamera 0000000141D61690

    Hat tip to @ChrisIsMe

  9. #23
    ChrisIsMe's Avatar Contributor
    Reputation
    164
    Join Date
    Apr 2017
    Posts
    210
    Thanks G/R
    67/100
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    aaaaaaaaaaaaaaaaaaaa
    Last edited by ChrisIsMe; 11-01-2023 at 05:11 PM.

  10. Thanks thateuler, Razzue (2 members gave Thanks to ChrisIsMe for this useful post)
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Classic TBC => Build 42917
    By Razzue in forum WoW Memory Editing
    Replies: 56
    Last Post: 06-09-2022, 10:42 AM
  2. [Selling] EU Cheap Wow Account - Human Warlock 80 - [ Classic-Tbc-Wotlk ]
    By dannyinside in forum WoW-EU Account Buy Sell Trade
    Replies: 5
    Last Post: 12-24-2011, 08:25 PM
  3. [Buying] Classic + TBC for Ingame Gold
    By Vortron in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 12-09-2011, 11:28 PM
  4. [Trading] WTT 1 cata key = 1 wotlk and 1 cata key = classic + tbc
    By Jiniys in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 03-28-2011, 02:31 PM
  5. [Buying] Classic,TBC,WotLK key and Gamecard EU
    By rosty in forum Members Only Accounts And CD Keys Buy Sell
    Replies: 1
    Last Post: 09-29-2010, 10:12 AM
All times are GMT -5. The time now is 02:52 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search