mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-02-04 08:49: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
45
cheatengine/cmapobjdef.lua
Normal file
45
cheatengine/cmapobjdef.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
-- #include "cmapbaseobj.lua"
|
||||
|
||||
local CMapObjDef = Struct('CMapObjDef', CMapBaseObj)
|
||||
:ptr('unk_24')
|
||||
:ptr('unk_28')
|
||||
:ptr('unk_2C')
|
||||
:ptr('unk_30')
|
||||
:ptr('unk_34')
|
||||
:field('unk_38', 'int32')
|
||||
:embed('position', C3Vector)
|
||||
:embed('bbox', CAaBox)
|
||||
:embed('sphere', CAaSphere)
|
||||
:embed('mat', C44Matrix)
|
||||
:embed('invMat', C44Matrix)
|
||||
:field('unk_F0', 'int32')
|
||||
:ptr('owner')
|
||||
:field('unk_F8', 'int32')
|
||||
:field('unkFlags', 'uint32')
|
||||
:field('unk_100', 'int32')
|
||||
:field('unk_104', 'int32')
|
||||
:field('unk_108', 'int32')
|
||||
:field('unk_10C', 'int32')
|
||||
:field('unk_110', 'int32')
|
||||
:embed('mapObjDefGroupLinkList', TSExplicitList)
|
||||
:embed('defGroups', TSGrowableArray)
|
||||
:ptr('unk_130')
|
||||
:embed('unkGrowableArray', TSGrowableArray)
|
||||
:embed('color', CImVector)
|
||||
:field('unk_148', 'int32')
|
||||
:field('unk_14C', 'int32')
|
||||
:field('unk_150', 'int32')
|
||||
:ptr('unk_154')
|
||||
|
||||
local address = 0x0078261f -- at CMap__QueryAreaId
|
||||
debugger_onBreakpoint = nil
|
||||
function onBreakpoint()
|
||||
loadStructToTable(CMapObjDef, ESI)
|
||||
debugger_onBreakpoint = nil
|
||||
debug_removeBreakpoint(address)
|
||||
debug_continueFromBreakpoint(co_run)
|
||||
return 1
|
||||
end
|
||||
|
||||
debug_setBreakpoint(address)
|
||||
debugger_onBreakpoint = onBreakpoint
|
||||
Loading…
Add table
Add a link
Reference in a new issue