Music::~Music
0x008f07e0 · 407 bytes · __thiscall
_ZN5MusicD2Ev
Decompiled
undefined (1 param)
/* Music::~Music() */
void __thiscall Music::~Music(Music *this)
{
*(undefined ***)this = &PTR__Music_00cfce08;
StopPlaying(this,"all",-1.0,false);
*(undefined4 *)(this + 0x2cc) = 0;
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 0x2c0));
*(undefined4 *)(this + 0x2d0) = *(undefined4 *)(this + 0x2c0);
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 0x2c0));
*(undefined4 *)(this + 0x2ac) = 0;
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x2a0));
*(undefined4 *)(this + 0x2b0) = *(undefined4 *)(this + 0x2a0);
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x2a0));
*(undefined4 *)(this + 0x298) = 0;
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 0x28c));
*(undefined4 *)(this + 0x29c) = *(undefined4 *)(this + 0x28c);
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 0x28c));
*(undefined4 *)(this + 0x278) = 0;
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x26c));
*(undefined4 *)(this + 0x27c) = *(undefined4 *)(this + 0x26c);
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x26c));
*(undefined4 *)(this + 0x264) = 0;
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 600));
*(undefined4 *)(this + 0x268) = *(undefined4 *)(this + 600);
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 600));
*(undefined4 *)(this + 0x24c) = 0;
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x240));
*(undefined4 *)(this + 0x250) = *(undefined4 *)(this + 0x240);
CUtlMemory<float,int>::Purge((CUtlMemory<float,int> *)(this + 0x240));
*(undefined4 *)(this + 0x238) = 0;
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 0x22c));
*(undefined4 *)(this + 0x23c) = *(undefined4 *)(this + 0x22c);
CUtlMemory<Infected*,int>::Purge((CUtlMemory<Infected*,int> *)(this + 0x22c));
*(undefined4 *)(this + 0x1a8) = 0;
CUtlMemory<CHandle<CBaseEntity>,int>::Purge
((CUtlMemory<CHandle<CBaseEntity>,int> *)(this + 0x19c));
*(undefined4 *)(this + 0x1ac) = *(undefined4 *)(this + 0x19c);
CUtlMemory<CHandle<CBaseEntity>,int>::Purge
((CUtlMemory<CHandle<CBaseEntity>,int> *)(this + 0x19c));
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.