L L4D2node

CBSPTreeData::Shutdown

0x000bba00 · 189 bytes · __thiscall

_ZN12CBSPTreeData8ShutdownEv

Decompiled

undefined (1 param)

/* CBSPTreeData::Shutdown() */

void __thiscall CBSPTreeData::Shutdown(CBSPTreeData *this)

{
  CUtlLinkedList<CBSPTreeData::HandleInfo_t,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t,unsigned_short>,unsigned_short>>
  ::RemoveAll((CUtlLinkedList<CBSPTreeData::HandleInfo_t,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t,unsigned_short>,unsigned_short>>
               *)(this + 0x1c));
  CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t,unsigned_short>,unsigned_short>::Purge
            ((CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t,unsigned_short>,unsigned_short>
              *)(this + 0x1c));
  *(undefined2 *)(this + 0x2c) = 0xffff;
  *(undefined2 *)(this + 0x30) = 0;
  *(undefined2 *)(this + 0x32) = 0xffff;
  *(undefined4 *)(this + 0x34) = *(undefined4 *)(this + 0x1c);
  CUtlLinkedList<unsigned_short,unsigned_short,true,unsigned_short,CUtlMemory<UtlLinkedListElem_t<unsigned_short,unsigned_short>,unsigned_short>>
  ::RemoveAll((CUtlLinkedList<unsigned_short,unsigned_short,true,unsigned_short,CUtlMemory<UtlLinkedListElem_t<unsigned_short,unsigned_short>,unsigned_short>>
               *)(this + 0x38));
  CUtlMemory<UtlLinkedListElem_t<unsigned_short,unsigned_short>,unsigned_short>::Purge
            ((CUtlMemory<UtlLinkedListElem_t<unsigned_short,unsigned_short>,unsigned_short> *)
             (this + 0x38));
  *(undefined2 *)(this + 0x48) = 0xffff;
  *(undefined2 *)(this + 0x4c) = 0;
  *(undefined2 *)(this + 0x4e) = 0xffff;
  *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x38);
  CUtlLinkedList<CBSPTreeData::HandleInLeaf_t,unsigned_short,true,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInLeaf_t,unsigned_short>,unsigned_short>>
  ::RemoveAll((CUtlLinkedList<CBSPTreeData::HandleInLeaf_t,unsigned_short,true,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInLeaf_t,unsigned_short>,unsigned_short>>
               *)(this + 0x54));
  CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInLeaf_t,unsigned_short>,unsigned_short>::Purge
            ((CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInLeaf_t,unsigned_short>,unsigned_short>
              *)(this + 0x54));
  *(undefined4 *)(this + 0x14) = 0;
  *(undefined2 *)(this + 100) = 0xffff;
  *(undefined2 *)(this + 0x68) = 0;
  *(undefined2 *)(this + 0x6a) = 0xffff;
  *(undefined4 *)(this + 0x6c) = *(undefined4 *)(this + 0x54);
  CUtlMemory<CBSPTreeData::Leaf_t,int>::Purge((CUtlMemory<CBSPTreeData::Leaf_t,int> *)(this + 8));
  *(undefined4 *)(this + 0x18) = *(undefined4 *)(this + 8);
  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)