/ cheatengine / cgcorpse.lua
cgcorpse.lua
 1  -- #include "cgobject.lua"
 2  
 3  local Vector3 = Struct("Vector3")
 4      :field("x", "float")
 5      :field("y", "float")
 6      :field("z", "float")
 7  
 8  local ObjectFields = Struct("ObjectFields")
 9      :hex("GUID", "uint64")
10      :field("type", "uint32")
11      :field("unk", "uint32")
12      :field("scale", "float")
13      :field("pad", "uint32")
14  
15  local CorpseFields = Struct("CorpseFields")
16      :hex("Owner", "uint64")
17      :hex("Party", "uint64")
18      :field("DisplayId", "int32")
19      :array("Item", "int32", 19)
20      :hex("Bytes1", "uint32")
21      :hex("Bytes2", "uint32")
22      :field("Guild", "int32")
23      :field("Flags", "int32")
24      :field("DynamicFlags", "int32")
25      :field("Pad", "int32")
26  
27  local CGCorpse = Struct("CGCorpse", CGObject)
28      :paddingTo(0xE8)
29      :embed("Position", Vector3) -- 0x0E8
30      :paddingTo(0xF8)
31      :field("FacingAngle", "float") -- 0x0F8
32      :paddingTo(0x274)
33      :embed("Scale", Vector3) -- 0x274
34      :paddingTo(0x290)
35      :embed("ObjectFields", ObjectFields) -- 0x290
36      :embed("CorpseFields", CorpseFields) -- 0x2A8
37      :paddingTo(0x338)
38  
39  -- #include "load_mouseover_corpse.lua"