L L4D2node

CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveAll

0x001a8ed0 · 265 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIN18CNetworkStringDict10CTableItemE23CNetworkStringTableItemtE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE9RemoveAllEv

Decompiled

undefined (1 param)

/* CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem, unsigned
   short>::Node_t, unsigned short, CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem,
   unsigned short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,
   CNetworkStringTableItem, unsigned short>::Node_t, unsigned short>, unsigned short> >::RemoveAll()
    */

void __thiscall
CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveAll(CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
            *this)

{
  int iVar1;
  ushort uVar2;
  ushort *puVar3;
  int iVar4;
  ushort uVar5;
  
  uVar2 = *(ushort *)(this + 0x16);
  if (uVar2 != 0xffff) {
    iVar1 = *(int *)(this + 8);
    iVar4 = 0;
    if (0 < iVar1) {
      do {
        uVar5 = (ushort)iVar4;
        if ((iVar4 < iVar1) && (uVar5 <= uVar2)) {
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar1 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar1 != 0)) {
            DAT_003415e6 = 0xffff;
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_003415e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          iVar1 = iVar4 * 0x34;
          puVar3 = (ushort *)(*(int *)(this + 4) + iVar1);
          if (*puVar3 != uVar5) {
            CNetworkStringTableItem::~CNetworkStringTableItem
                      ((CNetworkStringTableItem *)(puVar3 + 0x10));
            CUtlMemory<unsigned_char,int>::Purge((CUtlMemory<unsigned_char,int> *)(puVar3 + 6));
            *(undefined2 *)(*(int *)(this + 4) + 2 + iVar1) = *(undefined2 *)(this + 0x14);
            *(ushort *)(*(int *)(this + 4) + iVar1) = uVar5;
            *(ushort *)(this + 0x14) = uVar5;
          }
          uVar2 = *(ushort *)(this + 0x16);
        }
      } while (((uVar2 != uVar5) && (iVar1 = *(int *)(this + 8), (int)(iVar4 + 1U & 0xffff) < iVar1)
               ) && (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)