Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Вопрос Как получить кость головы врага?

Не могу найти нужные оффсеты в дампере, чтобы получить кость головы врага. Как это сделать?
uintptr_t node = mem.Read<uintptr_t>(pawn + offsets::m_pGameSceneNode);
if (node) {
uintptr_t boneArray = mem.Read<uintptr_t>(node + offsets::m_modelState + offsets::m_skeletonInstance);

if (boneArray) {

static const int sk[] = {
6, 5, 5, 4, 4, 2, 2, 0, // Позвоночник
5, 8, 8, 9, 9, 10, // Левая рука
5, 13, 13, 14, 14, 15, // Правая рука
0, 22, 22, 23, 23, 24, // Левая нога
0, 25, 25, 26, 26, 27 // Правая нога
};
 
Не могу найти нужные оффсеты в дампере, чтобы получить кость головы врага. Как это сделать?
simple get hitbox pos:
Expand Collapse Copy
            if (!pPawn) return Vector_t(0.f, 0.f, 0.f);
            CGameSceneNode* pSceneNode = pPawn->GetGameSceneNode();
            if (!pSceneNode) return Vector_t(0.f, 0.f, 0.f);

            const uintptr_t uBoneArray = *reinterpret_cast<uintptr_t*>(
                reinterpret_cast<uintptr_t>(pSceneNode) + Off.m_modelState + 0x80);
            if (!uBoneArray || uBoneArray < 0x10000) return Vector_t(0.f, 0.f, 0.f);

            int nBone = 6;
            if (nHitbox == 1) nBone = 5;
            else if (nHitbox == 2) nBone = 4;

            Vector_t vecBase = *reinterpret_cast<Vector_t*>(uBoneArray + (static_cast<uint64_t>(nBone) * 32ULL));
 
Назад
Сверху Снизу