mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-02-04 00:39:08 +00:00
feat(core): CheatEngine script loaders
This commit is contained in:
parent
f9fe6ca3e7
commit
4ca5f1bbe5
15 changed files with 4578 additions and 17 deletions
17
cheatengine/cmapentity.lua
Normal file
17
cheatengine/cmapentity.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue