CParticleCollection::~CParticleCollection
0x00bcabf0 · 437 bytes · __thiscall
_ZN19CParticleCollectionD1Ev
Decompiled
undefined (1 param)
/* CParticleCollection::~CParticleCollection() */
void __thiscall CParticleCollection::~CParticleCollection(CParticleCollection *this)
{
CParticleCollection *pCVar1;
int *piVar2;
CParticleCollection *this_00;
undefined4 *puVar3;
int iVar4;
undefined4 *puVar5;
UnlinkFromDefList(this);
this_00 = *(CParticleCollection **)(this + 0x90);
while (this_00 != (CParticleCollection *)0x0) {
pCVar1 = *(CParticleCollection **)(this_00 + 0x70);
~CParticleCollection(this_00);
free(this_00);
*(CParticleCollection **)(this + 0x90) = pCVar1;
this_00 = pCVar1;
}
if (*(void **)(this + 0xb8) != (void *)0x0) {
free(*(void **)(this + 0xb8));
}
if (*(void **)(this + 0xc4) != (void *)0x0) {
free(*(void **)(this + 0xc4));
}
if (*(void **)(this + 0xbc) != (void *)0x0) {
free(*(void **)(this + 0xbc));
}
if (*(void **)(this + 0xc0) != (void *)0x0) {
free(*(void **)(this + 0xc0));
}
if (*(void **)(this + 0x6c) != (void *)0x0) {
free(*(void **)(this + 0x6c));
}
iVar4 = 0;
do {
if (*(void **)(this + iVar4 * 4 + 0x78) != (void *)0x0) {
free(*(void **)(this + iVar4 * 4 + 0x78));
}
iVar4 = iVar4 + 1;
} while (iVar4 != 4);
if (*(void **)(this + 0x88) != (void *)0x0) {
free(*(void **)(this + 0x88));
}
puVar3 = *(undefined4 **)(this + 0x68);
if (puVar3 != (undefined4 *)0x0) {
puVar5 = puVar3 + puVar3[-1] * 0x17 + -1;
while (puVar3 != puVar5 + 1) {
if ((void *)puVar5[-1] != (void *)0x0) {
operator_delete__((void *)puVar5[-1]);
}
if ((void *)*puVar5 != (void *)0x0) {
operator_delete__((void *)*puVar5);
}
puVar5 = puVar5 + -0x17;
puVar3 = *(undefined4 **)(this + 0x68);
}
operator_delete__(puVar3 + -1);
}
piVar2 = *(int **)(this + 0x48);
if (piVar2 != (int *)0x0) {
if (*(undefined4 **)(this + 0x44) == (undefined4 *)0x0) {
if ((CParticleCollection *)*piVar2 == this + 0x40) {
iVar4 = *(int *)(this + 0x40);
*piVar2 = iVar4;
if (iVar4 != 0) {
*(undefined4 *)(iVar4 + 4) = 0;
}
}
}
else {
**(undefined4 **)(this + 0x44) = *(undefined4 *)(this + 0x40);
if (*(int *)(this + 0x40) != 0) {
*(undefined4 *)(*(int *)(this + 0x40) + 4) = *(undefined4 *)(this + 0x44);
}
}
*(undefined4 *)(this + 0x44) = 0;
*(undefined4 *)(this + 0x40) = 0;
*(undefined4 *)(this + 0x48) = 0;
}
piVar2 = *(int **)(this + 8);
if (piVar2 != (int *)0x0) {
if (*(undefined4 **)(this + 4) == (undefined4 *)0x0) {
if (this == (CParticleCollection *)*piVar2) {
iVar4 = *(int *)this;
*piVar2 = iVar4;
if (iVar4 != 0) {
*(undefined4 *)(iVar4 + 4) = 0;
}
}
}
else {
**(undefined4 **)(this + 4) = *(undefined4 *)this;
if (*(int *)this != 0) {
*(undefined4 *)(*(int *)this + 4) = *(undefined4 *)(this + 4);
}
}
*(undefined4 *)(this + 4) = 0;
*(undefined4 *)this = 0;
*(undefined4 *)(this + 8) = 0;
}
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.