Facebook
From Abrupt Water Vole, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 139
  1. if (pPlayerModel) {
  2.                         auto pMultiMesh = Read<ULONG_PTR>(pPlayerModel + 0xD8); //d8 : _multiMesh (type: SkinnedMultiMesh)
  3.                         if (pMultiMesh) {
  4.                                 auto pBoneDictionary = Read<ULONG_PTR>(pMultiMesh + 0x20); //20 : boneDict (type: System.Collections.Generic.Dictionary<System.String,UnityEngine.Transform>)
  5.                                 if (pBoneDictionary) {
  6.                                         pBoneDictionary = Read<ULONG_PTR>(pBoneDictionary + 0x28);
  7.                                         //https://puu.sh/D07K3/ea196f456e.png
  8.                                         auto pBoneInfo = Read<ULONG_PTR>(pBoneDictionary + 0x18); //BoneInfo
  9.                                                                                                                                                           //auto BoneValue = *(CBoneValue**)((uintptr_t)BoneInfo + 0x30 + ((Bone - 1) * 0x18));
  10.                                         int iBone = Bone_List::head;
  11.                                         auto pBone = Read<ULONG_PTR>(pBoneInfo + 0x30 + ((iBone - 1) * 0x18));
  12.                                         auto pTransform = Read<ULONG_PTR>(pBone + 0x10);
  13.                                         //get pos grom pTransform..
  14.                                         auto pPos = RustGetPosition(pTransform);
  15.                                         wHeadPos = pPos;
  16.                                         bRet = GWorldToScreen(D3DXVECTOR3(wHeadPos.x, wHeadPos.y, wHeadPos.z), &vHeadPos);
  17.                                         vAimPos = vHeadPos;
  18.                                         //OutputDebugStringA("GOT SKEL!\n");
  19.                                 }
  20.  
  21.                         }
  22.                 }