CL4DGameStats::~CL4DGameStats
0x008e34b0 · 388 bytes · __thiscall
_ZN13CL4DGameStatsD2Ev
Decompiled
undefined (1 param)
/* CL4DGameStats::~CL4DGameStats() */
void __thiscall CL4DGameStats::~CL4DGameStats(CL4DGameStats *this)
{
CUtlLinkedList<L4D_PlayerStatData*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<L4D_PlayerStatData*,unsigned_short>,unsigned_short>>
*this_00;
this_00 = (CUtlLinkedList<L4D_PlayerStatData*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<L4D_PlayerStatData*,unsigned_short>,unsigned_short>>
*)(this + 0x388);
*(undefined ***)this = &PTR_UseOldFormat_00cfa068;
*(undefined ***)(this + 0x58) = &PTR__CL4DGameStats_00cfa154;
*(undefined ***)(this + 100) = &PTR_Name_00cfa16c;
CUtlLinkedList<L4D_PlayerStatData*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<L4D_PlayerStatData*,unsigned_short>,unsigned_short>>
::PurgeAndDeleteElements(this_00);
Clear(this);
*(undefined4 *)(this + 0x4bc) = 0;
CUtlMemory<L4D2_StuckPosition_Data,int>::Purge
((CUtlMemory<L4D2_StuckPosition_Data,int> *)(this + 0x4b0));
*(undefined4 *)(this + 0x4c0) = *(undefined4 *)(this + 0x4b0);
CUtlMemory<L4D2_StuckPosition_Data,int>::Purge
((CUtlMemory<L4D2_StuckPosition_Data,int> *)(this + 0x4b0));
*(undefined4 *)(this + 0x4a8) = 0;
CUtlMemory<L4D_Death_Position_Data,int>::Purge
((CUtlMemory<L4D_Death_Position_Data,int> *)(this + 0x49c));
*(undefined4 *)(this + 0x4ac) = *(undefined4 *)(this + 0x49c);
CUtlMemory<L4D_Death_Position_Data,int>::Purge
((CUtlMemory<L4D_Death_Position_Data,int> *)(this + 0x49c));
*(undefined4 *)(this + 0x494) = 0;
CUtlMemory<L4D_ChokePounce_Stat_Data,int>::Purge
((CUtlMemory<L4D_ChokePounce_Stat_Data,int> *)(this + 0x488));
*(undefined4 *)(this + 0x498) = *(undefined4 *)(this + 0x488);
CUtlMemory<L4D_ChokePounce_Stat_Data,int>::Purge
((CUtlMemory<L4D_ChokePounce_Stat_Data,int> *)(this + 0x488));
*(undefined4 *)(this + 0x404) = 0;
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(this + 0x3f8));
*(undefined4 *)(this + 0x408) = *(undefined4 *)(this + 0x3f8);
CUtlMemory<int,int>::Purge((CUtlMemory<int,int> *)(this + 0x3f8));
CUtlLinkedList<L4D_PlayerStatData*,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<L4D_PlayerStatData*,unsigned_short>,unsigned_short>>
::RemoveAll(this_00);
CUtlMemory<UtlLinkedListElem_t<L4D_PlayerStatData*,unsigned_short>,unsigned_short>::Purge
((CUtlMemory<UtlLinkedListElem_t<L4D_PlayerStatData*,unsigned_short>,unsigned_short> *)
this_00);
*(undefined ***)(this + 100) = &PTR_Name_00c08de8;
IGameSystem::~IGameSystem((IGameSystem *)(this + 100));
*(undefined ***)(this + 0x58) = &PTR__CGameEventListener_00bfb6e8;
*(undefined4 *)(this + 0x5c) = 0xd;
if (this[0x60] != (CL4DGameStats)0x0) {
if (gameeventmanager != (int *)0x0) {
(**(code **)(*gameeventmanager + 0x18))(gameeventmanager,this + 0x58);
}
this[0x60] = (CL4DGameStats)0x0;
}
*(undefined ***)(this + 0x58) = &PTR__IGameEventListener2_00bfb610;
*(undefined ***)this = &PTR_UseOldFormat_00c15068;
CUtlDict<BasicGameStatsRecord_t,unsigned_short>::RemoveAll
((CUtlDict<BasicGameStatsRecord_t,unsigned_short> *)(this + 0x30));
CUtlRBTree<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveAll((CUtlRBTree<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*)(this + 0x30));
*(undefined2 *)(this + 0x44) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x34));
*(undefined2 *)(this + 0x46) = 0xffff;
CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 0x34));
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.