CChoreoScene::~CChoreoScene
0x00bb6bd0 · 618 bytes · __thiscall
_ZN12CChoreoSceneD2Ev
Decompiled
undefined (1 param)
/* CChoreoScene::~CChoreoScene() */
void __thiscall CChoreoScene::~CChoreoScene(CChoreoScene *this)
{
void *pvVar1;
CChoreoEvent *this_00;
int iVar2;
iVar2 = 0;
*(undefined ***)this = &PTR_GetDuration_00d55078;
if (0 < *(int *)(this + 0x24)) {
do {
pvVar1 = *(void **)(*(int *)(this + 0x18) + iVar2 * 4);
if (pvVar1 != (void *)0x0) {
*(undefined4 *)((int)pvVar1 + 0x10c) = 0;
CUtlMemory<CChoreoChannel*,int>::Purge
((CUtlMemory<CChoreoChannel*,int> *)((int)pvVar1 + 0x100));
*(undefined4 *)((int)pvVar1 + 0x110) = *(undefined4 *)((int)pvVar1 + 0x100);
CUtlMemory<CChoreoChannel*,int>::Purge
((CUtlMemory<CChoreoChannel*,int> *)((int)pvVar1 + 0x100));
operator_delete(pvVar1);
}
iVar2 = iVar2 + 1;
} while (iVar2 < *(int *)(this + 0x24));
}
*(undefined4 *)(this + 0x24) = 0;
if (0 < *(int *)(this + 0x10)) {
iVar2 = 0;
do {
this_00 = *(CChoreoEvent **)(*(int *)(this + 4) + iVar2 * 4);
if (this_00 != (CChoreoEvent *)0x0) {
CChoreoEvent::~CChoreoEvent(this_00);
operator_delete(this_00);
}
iVar2 = iVar2 + 1;
} while (iVar2 < *(int *)(this + 0x10));
}
iVar2 = 0;
*(undefined4 *)(this + 0x10) = 0;
if (0 < *(int *)(this + 0x38)) {
do {
pvVar1 = *(void **)(*(int *)(this + 0x2c) + iVar2 * 4);
if (pvVar1 != (void *)0x0) {
*(undefined4 *)((int)pvVar1 + 0x90) = 0;
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)((int)pvVar1 + 0x84));
*(undefined4 *)((int)pvVar1 + 0x94) = *(undefined4 *)((int)pvVar1 + 0x84);
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)((int)pvVar1 + 0x84));
operator_delete(pvVar1);
}
iVar2 = iVar2 + 1;
} while (iVar2 < *(int *)(this + 0x38));
}
*(undefined4 *)(this + 0x38) = 0;
CUtlDict<int,int>::RemoveAll((CUtlDict<int,int> *)(this + 0x164));
CUtlRBTree<CUtlMap<char_const*,int,int>::Node_t,int,CUtlMap<char_const*,int,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,int>::Node_t,int>,int>>
::RemoveAll((CUtlRBTree<CUtlMap<char_const*,int,int>::Node_t,int,CUtlMap<char_const*,int,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,int>::Node_t,int>,int>>
*)(this + 0x164));
*(undefined4 *)(this + 0x17c) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,int>::Node_t,int>,int>::Purge
((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,int>::Node_t,int>,int> *)
(this + 0x168));
*(undefined4 *)(this + 0x180) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,int>::Node_t,int>,int>::Purge
((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,int,int>::Node_t,int>,int> *)
(this + 0x168));
*(undefined4 *)(this + 0x15c) = 0;
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x150));
*(undefined4 *)(this + 0x160) = *(undefined4 *)(this + 0x150);
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x150));
*(undefined4 *)(this + 0x138) = 0;
CUtlMemory<CExpressionSample,int>::Purge((CUtlMemory<CExpressionSample,int> *)(this + 300));
*(undefined4 *)(this + 0x13c) = *(undefined4 *)(this + 300);
CUtlMemory<CExpressionSample,int>::Purge((CUtlMemory<CExpressionSample,int> *)(this + 300));
*(undefined4 *)(this + 0x74) = 0;
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 0x68));
*(undefined4 *)(this + 0x78) = *(undefined4 *)(this + 0x68);
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 0x68));
*(undefined4 *)(this + 0x60) = 0;
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 0x54));
*(undefined4 *)(this + 100) = *(undefined4 *)(this + 0x54);
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 0x54));
*(undefined4 *)(this + 0x4c) = 0;
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 0x40));
*(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x40);
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 0x40));
*(undefined4 *)(this + 0x38) = 0;
CUtlMemory<CChoreoChannel*,int>::Purge((CUtlMemory<CChoreoChannel*,int> *)(this + 0x2c));
*(undefined4 *)(this + 0x3c) = *(undefined4 *)(this + 0x2c);
CUtlMemory<CChoreoChannel*,int>::Purge((CUtlMemory<CChoreoChannel*,int> *)(this + 0x2c));
*(undefined4 *)(this + 0x24) = 0;
CUtlMemory<CChoreoActor*,int>::Purge((CUtlMemory<CChoreoActor*,int> *)(this + 0x18));
*(undefined4 *)(this + 0x28) = *(undefined4 *)(this + 0x18);
CUtlMemory<CChoreoActor*,int>::Purge((CUtlMemory<CChoreoActor*,int> *)(this + 0x18));
*(undefined4 *)(this + 0x10) = 0;
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 4));
*(undefined4 *)(this + 0x14) = *(undefined4 *)(this + 4);
CUtlMemory<CChoreoEvent*,int>::Purge((CUtlMemory<CChoreoEvent*,int> *)(this + 4));
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.