CVoxelTree::CVoxelTree
0x001de5b0 · 434 bytes · __thiscall
_ZN10CVoxelTreeC2Ev
Decompiled
undefined (1 param)
/* CVoxelTree::CVoxelTree() */
void __thiscall CVoxelTree::CVoxelTree(CVoxelTree *this)
{
undefined4 *puVar1;
void *pvVar2;
CVoxelHash *this_00;
CVoxelHash *pCVar3;
*(undefined ***)this = &PTR__CVoxelTree_002be608;
*(undefined4 *)(this + 8) = 0;
*(undefined4 *)(this + 0xc) = 0;
*(undefined4 *)(this + 0x10) = 0;
*(undefined4 *)(this + 0x14) = 0;
*(undefined4 *)(this + 0x2c) = 0;
*(undefined4 *)(this + 0x30) = 0xffffffff;
*(undefined4 *)(this + 0x18) = 0;
*(undefined4 *)(this + 0x1c) = 0;
*(undefined4 *)(this + 0x20) = 0;
*(undefined4 *)(this + 0x24) = 0;
*(undefined4 *)(this + 0x28) = 0;
*(undefined4 *)(this + 0x34) = 0;
*(undefined4 *)(this + 0xbc) = 0;
*(undefined4 *)(this + 0xc0) = 0;
*(undefined4 *)(this + 0xc4) = 0;
*(undefined4 *)(this + 200) = 0;
*(undefined4 *)(this + 0xcc) = 0;
*(undefined4 *)(this + 0xd0) = 0;
*(undefined2 *)(this + 0xd4) = 0;
*(undefined4 *)(this + 0xd8) = 0;
*(undefined4 *)(this + 0xdc) = 0;
*(undefined4 *)(this + 0xe8) = 0;
*(undefined4 *)(this + 0xe0) = 0;
*(undefined4 *)(this + 0xe4) = 0;
*(undefined4 *)(this + 0xe8) = 0;
*(undefined4 *)(this + 0xec) = 0;
*(undefined4 *)(this + 4) = 4;
/* try { // try from 001de6ac to 001de6b0 has its CatchHandler @ 001de764 */
puVar1 = operator_new__(0x4144);
*puVar1 = 4;
this_00 = (CVoxelHash *)(puVar1 + 1);
do {
pCVar3 = this_00 + 0x1050;
CVoxelHash::CVoxelHash(this_00);
this_00 = pCVar3;
} while (pCVar3 != (CVoxelHash *)(puVar1 + 0x1051));
*(CVoxelHash **)(this + 8) = (CVoxelHash *)(puVar1 + 1);
if ((*(int *)(this + 0xc4) < 0x800) && (-1 < *(int *)(this + 200))) {
*(undefined4 *)(this + 0xc4) = 0x800;
if (*(void **)(this + 0xc0) != (void *)0x0) {
pvVar2 = realloc(*(void **)(this + 0xc0),0x1000);
*(void **)(this + 0xc0) = pvVar2;
*(void **)(this + 0xd0) = pvVar2;
return;
}
pvVar2 = malloc(0x1000);
*(void **)(this + 0xc0) = pvVar2;
*(void **)(this + 0xd0) = pvVar2;
return;
}
*(undefined4 *)(this + 0xd0) = *(undefined4 *)(this + 0xc0);
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.