CCSGameRules::~CCSGameRules
0x004399b0 · 167 bytes · __thiscall
_ZN12CCSGameRulesD1Ev
Decompiled
undefined (1 param)
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CCSGameRules::~CCSGameRules() */
void __thiscall CCSGameRules::~CCSGameRules(CCSGameRules *this)
{
CUtlVector<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,CUtlMemory<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,int>>
*this_00;
CUtlVector<CMultiplayRules::ResponseRules_t,CUtlMemory<CMultiplayRules::ResponseRules_t,int>>
*this_01;
void *pvVar1;
*(undefined ***)this = &PTR_Name_00c0e648;
DAT_00ff98e4 = 0;
pvVar1 = g_Teams;
if (-1 < DAT_00ff98e0) {
if (g_Teams != (void *)0x0) {
free(g_Teams);
g_Teams = (void *)0x0;
}
DAT_00ff98dc = 0;
pvVar1 = (void *)0x0;
}
this_00 = (CUtlVector<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,CUtlMemory<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,int>>
*)(this + 0x24);
_DAT_00ff98e8 = pvVar1;
*(undefined ***)this = &PTR_Name_00c17028;
CUtlVector<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,CUtlMemory<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,int>>
::RemoveAll(this_00);
CUtlMemory<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,int>::Purge
((CUtlMemory<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,int>
*)this_00);
*(undefined4 *)(this + 0x34) = *(undefined4 *)(this + 0x24);
this_01 = (CUtlVector<CMultiplayRules::ResponseRules_t,CUtlMemory<CMultiplayRules::ResponseRules_t,int>>
*)(this + 0xc);
CUtlMemory<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,int>::Purge
((CUtlMemory<CUtlVector<VoiceCommandMenuItem_t,CUtlMemory<VoiceCommandMenuItem_t,int>>,int>
*)this_00);
CUtlVector<CMultiplayRules::ResponseRules_t,CUtlMemory<CMultiplayRules::ResponseRules_t,int>>::
RemoveAll(this_01);
CUtlMemory<CMultiplayRules::ResponseRules_t,int>::Purge
((CUtlMemory<CMultiplayRules::ResponseRules_t,int> *)this_01);
*(undefined4 *)(this + 0x1c) = *(undefined4 *)(this + 0xc);
CUtlMemory<CMultiplayRules::ResponseRules_t,int>::Purge
((CUtlMemory<CMultiplayRules::ResponseRules_t,int> *)this_01);
CGameRules::~CGameRules((CGameRules *)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.