CAI_Expresser::~CAI_Expresser
0x005d38e0 · 246 bytes · __thiscall
_ZN13CAI_ExpresserD1Ev
Decompiled
undefined (1 param)
/* CAI_Expresser::~CAI_Expresser() */
void __thiscall CAI_Expresser::~CAI_Expresser(CAI_Expresser *this)
{
CUtlDict<ConceptHistory_t,int> *this_00;
uint uVar1;
CBaseEntity *pCVar2;
undefined4 *puVar3;
undefined *puVar4;
this_00 = (CUtlDict<ConceptHistory_t,int> *)(this + 8);
*(undefined ***)this = &PTR_IsValidResponse_00c58e40;
CUtlDict<ConceptHistory_t,int>::RemoveAll(this_00);
uVar1 = *(uint *)(this + 0x40);
if ((((uVar1 != 0xffffffff) &&
(puVar4 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar4 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar4 + 8) == uVar1 >> 0xc)) &&
(pCVar2 = *(CBaseEntity **)(puVar4 + 4), pCVar2 != (CBaseEntity *)0x0)) {
puVar3 = (undefined4 *)GetMySpeechSemaphore((CBaseEntity *)this);
if (puVar3 != (undefined4 *)0x0) {
uVar1 = puVar3[1];
if (((uVar1 != 0xffffffff) &&
(puVar4 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar4 != (undefined *)0xfffffffc)) &&
((*(uint *)(puVar4 + 8) == uVar1 >> 0xc && (pCVar2 == *(CBaseEntity **)(puVar4 + 4))))) {
*puVar3 = 0;
puVar3[1] = 0xffffffff;
}
}
CResponseQueue::RemoveExpresserHost((CResponseQueue *)g_ResponseQueueManager._12_4_,pCVar2);
}
CUtlDict<ConceptHistory_t,int>::RemoveAll(this_00);
CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
::RemoveAll((CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
*)this_00);
*(undefined4 *)(this + 0x20) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>::Purge
((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>
*)(this + 0xc));
*(undefined4 *)(this + 0x24) = 0xffffffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>::Purge
((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>
*)(this + 0xc));
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.