L L4D2node

CUtlRBTree<CUtlMap<char*,double,unsigned_short>::Node_t,unsigned_short,CUtlMap<char*,double,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char*,double,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveAll

0x00237930 · 216 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIPcdtE6Node_tEtNS2_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS3_tEtEE9RemoveAllEv

Decompiled

undefined (1 param)

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

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

{
  ushort *puVar1;
  int iVar2;
  ushort uVar3;
  int iVar4;
  ushort uVar5;
  
  uVar3 = *(ushort *)(this + 0x16);
  if (uVar3 != 0xffff) {
    iVar2 = *(int *)(this + 8);
    iVar4 = 0;
    if (0 < iVar2) {
      do {
        uVar5 = (ushort)iVar4;
        if ((iVar4 < iVar2) && (uVar5 <= uVar3)) {
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341ac2 = 0xffff;
            DAT_00341ac4 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          puVar1 = (ushort *)(*(int *)(this + 4) + iVar4 * 0x14);
          if (*puVar1 != uVar5) {
            puVar1[1] = *(ushort *)(this + 0x14);
            *(ushort *)(*(int *)(this + 4) + iVar4 * 0x14) = uVar5;
            *(ushort *)(this + 0x14) = uVar5;
          }
          uVar3 = *(ushort *)(this + 0x16);
        }
      } while (((uVar3 != uVar5) && (iVar2 = *(int *)(this + 8), (int)(iVar4 + 1U & 0xffff) < iVar2)
               ) && (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)