NextBotManager::~NextBotManager
0x0075a4a0 · 188 bytes · __thiscall
_ZN14NextBotManagerD2Ev
Decompiled
undefined (1 param)
/* NextBotManager::~NextBotManager() */
void __thiscall NextBotManager::~NextBotManager(NextBotManager *this)
{
int iVar1;
ushort uVar2;
*(undefined ***)this = &PTR_OnKilled_00caa118;
*(undefined4 *)(this + 0x44) = 0;
CUtlMemory<NextBotManager::DebugFilter,int>::Purge
((CUtlMemory<NextBotManager::DebugFilter,int> *)(this + 0x38));
*(undefined4 *)(this + 0x48) = *(undefined4 *)(this + 0x38);
CUtlMemory<NextBotManager::DebugFilter,int>::Purge
((CUtlMemory<NextBotManager::DebugFilter,int> *)(this + 0x38));
if (*(short *)(this + 0x1a) != -1) {
uVar2 = *(ushort *)(this + 0x10);
if (*(ushort *)(this + 0x10) != 0xffff) {
do {
iVar1 = *(int *)(this + 4) + (uint)uVar2 * 8;
*(ushort *)(iVar1 + 4) = uVar2;
uVar2 = *(ushort *)(iVar1 + 6);
} while (*(ushort *)(iVar1 + 6) != 0xffff);
*(undefined2 *)(iVar1 + 6) = *(undefined2 *)(this + 0x14);
if (*(short *)(this + 0x10) != -1) {
*(short *)(this + 0x14) = *(short *)(this + 0x10);
}
}
*(undefined2 *)(this + 0x10) = 0xffff;
*(undefined2 *)(this + 0x12) = 0xffff;
*(undefined2 *)(this + 0x16) = 0;
}
if (-1 < *(int *)(this + 0xc)) {
if (*(void **)(this + 4) != (void *)0x0) {
free(*(void **)(this + 4));
*(undefined4 *)(this + 4) = 0;
}
*(undefined4 *)(this + 8) = 0;
}
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.