CDefaultResponseSystem::~CDefaultResponseSystem
0x005c3120 · 408 bytes · __thiscall
_ZN22CDefaultResponseSystemD1Ev
Decompiled
undefined (1 param)
/* CDefaultResponseSystem::~CDefaultResponseSystem() */
void __thiscall CDefaultResponseSystem::~CDefaultResponseSystem(CDefaultResponseSystem *this)
{
int iVar1;
ushort *puVar2;
ushort uVar3;
int iVar4;
ushort uVar5;
uVar3 = *(ushort *)(this + 0x3e7a);
*(undefined ***)this = &PTR__CDefaultResponseSystem_00c58828;
*(undefined ***)(this + 0x3e3c) = &PTR_Name_00c58864;
if (uVar3 != 0xffff) {
iVar1 = *(int *)(this + 0x3e6c);
if (0 < iVar1) {
iVar4 = 0;
do {
uVar5 = (ushort)iVar4;
if ((iVar4 < iVar1) && (uVar5 <= uVar3)) {
if ((CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar1 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel), iVar1 != 0)) {
CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel = 0xffff;
DAT_00f21ce2 = 0xffff;
DAT_00f21ce4 = 0xffff;
__cxa_guard_release(&CUtlRBTree<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Links(unsigned_short)::s_Sentinel);
}
puVar2 = (ushort *)(*(int *)(this + 0x3e68) + iVar4 * 0x10);
if (*puVar2 != uVar5) {
puVar2[1] = *(ushort *)(this + 0x3e78);
*(ushort *)(*(int *)(this + 0x3e68) + iVar4 * 0x10) = uVar5;
*(ushort *)(this + 0x3e78) = uVar5;
}
uVar3 = *(ushort *)(this + 0x3e7a);
}
} while (((uVar3 != uVar5) &&
(iVar1 = *(int *)(this + 0x3e6c), (int)(iVar4 + 1U & 0xffff) < iVar1)) &&
(iVar4 = iVar4 + 1, iVar4 != 0xffff));
}
*(undefined2 *)(this + 0x3e74) = 0xffff;
*(undefined2 *)(this + 0x3e76) = 0;
}
*(undefined2 *)(this + 0x3e78) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x3e68));
*(undefined2 *)(this + 0x3e7a) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x3e68));
CUtlRBTree<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveAll((CUtlRBTree<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)(this + 0x3e48));
*(undefined2 *)(this + 0x3e5c) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x3e4c));
*(undefined2 *)(this + 0x3e5e) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CInstancedResponseSystem*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x3e4c));
*(undefined ***)(this + 0x3e3c) = &PTR_Name_00c08de8;
IGameSystem::~IGameSystem((IGameSystem *)(this + 0x3e3c));
CResponseSystem::~CResponseSystem((CResponseSystem *)this);
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.