Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 510
|
Posted: Sun Oct 09, 2022 5:26 am Post subject: class module, can't extend for another |
|
|
| Code: | require "class"
require "plugin"
require "Vectors"
local CMatrix = require "CMatrix"
local Address = require "Address"
local CMatrixLink = CMatrix:extend()
function CMatrixLink:init(p)
local addr = Address(p)
self.address = getAddress(p)
-- I AM NOT DOING VARIABLE OVERLAP SO IT WON'T FREEZE PLUGIN
self.m_pOwner = (addr + 0x4C).pointer --CPlaceable
self.m_pPrev = (addr + 0x50).pointer --CMatrixLink
self.m_pNext = (addr + 0x54).pointer --CMatrixLink
end
function CMatrixLink:Insert(where)
plugin:CallMethod(0x54E8F0, self.address, where)
end
function CMatrixLink:Remove()
plugin:CallMethod(0x54E910, self.address)
end
return CMatrixLink |
I made offsets in init function, but i can't make class that will be addressed by offsets and they will be correct
|
|