L L4D2node

CDatacenter::~CDatacenter

0x0005c380 · 159 bytes · __thiscall

_ZN11CDatacenterD2Ev

Decompiled

undefined (1 param)

/* CDatacenter::~CDatacenter() */

void __thiscall CDatacenter::~CDatacenter(CDatacenter *this)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  
  *(undefined ***)this = &PTR_GetStats_000b4b28;
  *(undefined **)(this + 4) = &DAT_000b4b4c;
  if (*(int *)(this + 0xc) != 0) {
    KeyValues::deleteThis();
  }
  *(undefined4 *)(this + 0xc) = 0;
  if (*(int *)(this + 8) != 0) {
    KeyValues::deleteThis();
  }
  *(undefined4 *)(this + 8) = 0;
  iVar1 = GGCClient();
  if (iVar1 != 0) {
    uVar3 = *(undefined4 *)(this + 0x10);
    uVar4 = *(undefined4 *)(this + 0x14);
    iVar1 = GGCClient();
    piVar2 = (int *)GCSDK::CJobMgr::GetPJob(CONCAT44(uVar3,iVar1 + 0x28));
    if (piVar2 != (int *)0x0) {
      (**(code **)(*piVar2 + 4))(piVar2,uVar3,uVar4);
    }
  }
  *(undefined4 *)(this + 0x2c) = 0;
  CUtlMemory<CDatacenterCmdBatchImpl*,int>::Purge
            ((CUtlMemory<CDatacenterCmdBatchImpl*,int> *)(this + 0x20));
  *(undefined4 *)(this + 0x30) = *(undefined4 *)(this + 0x20);
  CUtlMemory<CDatacenterCmdBatchImpl*,int>::Purge
            ((CUtlMemory<CDatacenterCmdBatchImpl*,int> *)(this + 0x20));
  return;
}

SourceMod gamedata

paste into addons/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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)