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
42
cheatengine/cmapobjdefgroup.lua
Normal file
42
cheatengine/cmapobjdefgroup.lua
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
-- #include "cmapbaseobj.lua"
|
||||
|
||||
local CMapObjDefGroup = Struct('CMapObjDefGroup', CMapBaseObj)
|
||||
:embed('bbox', CAaBox)
|
||||
:embed('sphere', CAaSphere)
|
||||
:field('unk_4C', 'float')
|
||||
:field('groupNum', 'uint32')
|
||||
:field('unkFlags', 'uint32')
|
||||
:field('unk_58', 'int32')
|
||||
:embed('ambientColor', CImVector)
|
||||
:field('unk_60', 'int32')
|
||||
:field('unk_64', 'int32')
|
||||
:field('unk_68', 'int32')
|
||||
:embed('unkExplicitList', TSExplicitList)
|
||||
:embed('doodadDefLinkList', TSExplicitList)
|
||||
:embed('mapEntityLinkList', TSExplicitList)
|
||||
:embed('unkExplicitList', TSExplicitList)
|
||||
:embed('unkExplicitList', TSExplicitList)
|
||||
:field('unk_A8', 'int32')
|
||||
:field('unk_AC', 'int32')
|
||||
:field('unk_B0', 'int32')
|
||||
:field('unk_B4', 'int32')
|
||||
:field('unk_B8', 'int32')
|
||||
:field('unk_BC', 'int32')
|
||||
|
||||
local address = 0x0078261f -- at CMap__QueryAreaId
|
||||
debugger_onBreakpoint = nil
|
||||
function onBreakpoint()
|
||||
local defGroupsNum = readPointer(ESI + 0x124)
|
||||
local defGroupsDataPtr = ESI + 0x128
|
||||
local CMapObjDefGroupSize = 0xC0
|
||||
for i = 0, defGroupsNum, 1 do
|
||||
loadStructToTable(CMapObjDefGroup, readPointer(readPointer(defGroupsDataPtr)) + CMapObjDefGroupSize * i)
|
||||
end
|
||||
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