L L4D2node

CUtlRBTree<CUtlMap<char_const*,CMapListItem,int>::Node_t,int,CUtlMap<char_const*,CMapListItem,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CMapListItem,int>::Node_t,int>,int>>::RemoveAll

0x0017f8d0 · 200 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIPKc12CMapListItemiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE9RemoveAllEv

Decompiled

undefined (1 param)

/* CUtlRBTree<CUtlMap<char const*, CMapListItem, int>::Node_t, int, CUtlMap<char const*,
   CMapListItem, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*, CMapListItem,
   int>::Node_t, int>, int> >::RemoveAll() */

void __thiscall
CUtlRBTree<CUtlMap<char_const*,CMapListItem,int>::Node_t,int,CUtlMap<char_const*,CMapListItem,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CMapListItem,int>::Node_t,int>,int>>
::RemoveAll(CUtlRBTree<CUtlMap<char_const*,CMapListItem,int>::Node_t,int,CUtlMap<char_const*,CMapListItem,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CMapListItem,int>::Node_t,int>,int>>
            *this)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = *(int *)(this + 0x1c);
  if (iVar1 != -1) {
    iVar3 = 0;
    iVar2 = 0;
    if (0 < *(int *)(this + 8)) {
      do {
        if ((iVar2 < *(int *)(this + 8)) && (iVar2 <= iVar1)) {
          if ((Links(int)::s_Sentinel == '\0') &&
             (iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar1 != 0)) {
            Links(int)::s_Sentinel = 0xffffffff;
            DAT_0034129c = 0xffffffff;
            DAT_003412a0 = 0xffffffff;
            __cxa_guard_release(&Links(int)::s_Sentinel);
          }
          if (*(int *)(*(int *)(this + 4) + iVar3) != iVar2) {
            ((int *)(*(int *)(this + 4) + iVar3))[1] = *(int *)(this + 0x18);
            *(int *)(*(int *)(this + 4) + iVar3) = iVar2;
            *(int *)(this + 0x18) = iVar2;
          }
          iVar1 = *(int *)(this + 0x1c);
        }
        do {
          if (((iVar1 == iVar2) || (iVar2 = iVar2 + 1, iVar2 < 0)) || (*(int *)(this + 8) <= iVar2))
          goto LAB_0017f920;
          iVar3 = iVar3 + 0x1c;
        } while (iVar2 < 0);
      } while( true );
    }
LAB_0017f920:
    *(undefined4 *)(this + 0x10) = 0xffffffff;
    *(undefined4 *)(this + 0x14) = 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)