From 334ffbfa48c58dc3721df982b8748adc3219876b Mon Sep 17 00:00:00 2001 From: Beu Date: Tue, 26 Sep 2023 22:00:05 +0200 Subject: [PATCH] update offset for the freeblock position --- BlocksItemsCounter/Source/Libs/Objects.as | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BlocksItemsCounter/Source/Libs/Objects.as b/BlocksItemsCounter/Source/Libs/Objects.as index e42b6a5..bcfbc9c 100644 --- a/BlocksItemsCounter/Source/Libs/Objects.as +++ b/BlocksItemsCounter/Source/Libs/Objects.as @@ -52,7 +52,8 @@ void RefreshBlocks() { pos.z = blocks[i].CoordZ * 32 + 16; } } else { - pos = Dev::GetOffsetVec3(blocks[i], 0x6c); + uint16 offset = Reflection::GetType("CGameCtnBlock").GetMember("Dir").Offset + 0x8; + pos = Dev::GetOffsetVec3(blocks[i], offset); // center the coordinates in the middle of the block pos.x += 16; pos.y += 4; @@ -192,4 +193,4 @@ bool FocusCam(const string &in objectname) { return true; } return false; -} \ No newline at end of file +}