L L4D2node

CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveAll

0x0021e190 · 304 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIy19PublishedFileInfo_ttE6Node_tEtNS2_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS3_tEtEE9RemoveAllEv

Decompiled

undefined (1 param)

/* CUtlRBTree<CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned short>::Node_t, unsigned
   short, CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned
   short>::Node_t, unsigned short>, unsigned short> >::RemoveAll() */

void __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveAll(CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
            *this)

{
  ushort *puVar1;
  ushort uVar2;
  int iVar3;
  int iVar4;
  ushort uVar5;
  
  uVar2 = *(ushort *)(this + 0x16);
  if (uVar2 != 0xffff) {
    iVar3 = *(int *)(this + 8);
    iVar4 = 0;
    if (0 < iVar3) {
      do {
        uVar5 = (ushort)iVar4;
        if ((iVar4 < iVar3) && (uVar5 <= uVar2)) {
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          iVar3 = iVar4 * 0x2540;
          puVar1 = (ushort *)(*(int *)(this + 4) + iVar3);
          if (*puVar1 != uVar5) {
            *(undefined ***)(puVar1 + 0x128a) = &PTR__CCopyableUtlVector_002c8068;
            puVar1[0x1292] = 0;
            puVar1[0x1293] = 0;
            CUtlMemory<char*,int>::Purge((CUtlMemory<char*,int> *)(puVar1 + 0x128c));
            *(undefined4 *)(puVar1 + 0x1294) = *(undefined4 *)(puVar1 + 0x128c);
            CUtlMemory<char*,int>::Purge((CUtlMemory<char*,int> *)(puVar1 + 0x128c));
            *(undefined2 *)(*(int *)(this + 4) + 2 + iVar3) = *(undefined2 *)(this + 0x14);
            *(ushort *)(*(int *)(this + 4) + iVar3) = uVar5;
            *(ushort *)(this + 0x14) = uVar5;
          }
          uVar2 = *(ushort *)(this + 0x16);
        }
      } while (((uVar2 != uVar5) && (iVar3 = *(int *)(this + 8), (int)(iVar4 + 1U & 0xffff) < iVar3)
               ) && (iVar4 = iVar4 + 1, iVar4 != 0xffff));
    }
    *(undefined2 *)(this + 0x10) = 0xffff;
    *(undefined2 *)(this + 0x12) = 0;
  }
  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)