feat(core): CheatEngine script loaders

This commit is contained in:
gromchek 2026-01-31 18:29:03 +03:00
parent f9fe6ca3e7
commit 4ca5f1bbe5
15 changed files with 4578 additions and 17 deletions

View file

@ -0,0 +1,17 @@
-- #include "cmapstaticentity.lua"
local CMapEntity = Struct("CMapEntity", CMapStaticEntity)
:paddingTo(0x98)
:hex("GUID", "uint64")
:paddingTo(0xC0)
:embed("ambientTarget", CImVector)
:field("dirLightScaleTarget", "float")
:paddingTo(0xD0)
local addr, typ = GetCGObjectAddr(readQword(0x00bd07b0)) -- target guid
if addr then
if typ == "unit" or typ == "player" then
local cmapentityOffset = 0xB8
loadStructToTable(CMapEntity, readPointer(addr + cmapentityOffset))
end
end