L L4D2node

CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::NewNode

0x00084b30 · 294 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapI8CSteamIDPN5GCSDK18CSharedObjectCacheEtE6Node_tEtNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_tEtEE7NewNodeEv

Decompiled

undefined (1 param)

/* CUtlRBTree<CUtlMap<CSteamID, GCSDK::CSharedObjectCache*, unsigned short>::Node_t, unsigned short,
   CUtlMap<CSteamID, GCSDK::CSharedObjectCache*, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID, GCSDK::CSharedObjectCache*, unsigned short>::Node_t,
   unsigned short>, unsigned short> >::NewNode() */

void __thiscall
CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NewNode(CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
          *this)

{
  uint uVar1;
  undefined2 uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  
  if (*(ushort *)(this + 0x14) != 0xffff) {
    iVar3 = *(int *)(this + 4);
    iVar5 = iVar3 + (uint)*(ushort *)(this + 0x14) * 0x14;
    *(undefined2 *)(this + 0x14) = *(undefined2 *)(iVar5 + 2);
    goto LAB_00084b5a;
  }
  iVar5 = *(int *)(this + 8);
  if ((int)(uint)*(ushort *)(this + 0x16) < iVar5) {
    uVar4 = *(ushort *)(this + 0x16) + 1;
    uVar1 = uVar4 & 0xffff;
    if (iVar5 <= (int)uVar1) {
      uVar1 = 0xffff;
      uVar4 = 0xffff;
    }
    if (iVar5 <= (int)uVar1) goto LAB_00084be7;
LAB_00084bb1:
    uVar2 = (undefined2)uVar4;
    iVar5 = (uVar4 & 0xffff) * 0x14;
  }
  else {
    iVar3 = 0xffff;
    if (0 < iVar5) {
      iVar3 = 0;
    }
    uVar4 = (0 < iVar5) - 1;
    if (iVar3 < iVar5) goto LAB_00084bb1;
LAB_00084be7:
    CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
    ::Grow((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
            *)(this + 4),1);
    iVar3 = *(int *)(this + 8);
    uVar2 = 0xffff;
    if ((int)(uint)*(ushort *)(this + 0x16) < iVar3) {
      uVar1 = *(ushort *)(this + 0x16) + 1;
      uVar2 = (undefined2)uVar1;
      uVar1 = uVar1 & 0xffff;
      if ((int)uVar1 < iVar3) {
        iVar5 = uVar1 * 0x14;
      }
      else {
        iVar5 = 0x13ffec;
        uVar1 = 0xffff;
        uVar2 = 0xffff;
      }
    }
    else {
      uVar1 = 0;
      iVar5 = 0x13ffec;
      if (iVar3 < 1) {
        uVar1 = 0xffff;
      }
      else {
        iVar5 = 0;
        uVar2 = 0;
      }
    }
    if (iVar3 <= (int)uVar1) {
      Error("CUtlRBTree overflow!\n");
    }
  }
  iVar3 = *(int *)(this + 4);
  *(undefined2 *)(this + 0x16) = uVar2;
  iVar5 = iVar3 + iVar5;
LAB_00084b5a:
  if (iVar5 != -8) {
    *(undefined4 *)(iVar5 + 8) = 0;
    *(undefined1 *)(iVar5 + 0xf) = 0;
    *(undefined1 *)(iVar5 + 0xc) = 0;
    *(undefined1 *)(iVar5 + 0xd) = 0;
    *(undefined1 *)(iVar5 + 0xe) = 0;
    iVar3 = *(int *)(this + 4);
  }
  *(int *)(this + 0x18) = iVar3;
  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)