L L4D2node

CUtlRBTree<CUtlMap<char_const*,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::FirstInorder

0x005761e0 · 283 bytes · __thiscall

_ZNK10CUtlRBTreeIN7CUtlMapIPKcS2_tE6Node_tEtNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_tEtEE12FirstInorderEv

Decompiled

undefined (1 param)

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

uint __thiscall
CUtlRBTree<CUtlMap<char_const*,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::FirstInorder(CUtlRBTree<CUtlMap<char_const*,char_const*,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,char_const*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,char_const*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
               *this)

{
  ushort uVar1;
  short sVar2;
  ushort *puVar3;
  int iVar4;
  uint uVar5;
  
  uVar1 = *(ushort *)(this + 0x10);
  do {
    uVar5 = (uint)uVar1;
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
      Links(unsigned_short)::s_Sentinel = -1;
      DAT_00f1ecda = 0xffff;
      DAT_00f1ecdc = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    sVar2 = Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      sVar2 = *(short *)(uVar5 * 0x10 + *(int *)(this + 4));
    }
    if (sVar2 == -1) {
      return uVar5;
    }
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar4 != 0) {
        Links(unsigned_short)::s_Sentinel = -1;
        DAT_00f1ecda = 0xffff;
        DAT_00f1ecdc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 == 0xffff) goto LAB_005762d1;
LAB_00576236:
      puVar3 = (ushort *)(uVar5 * 0x10 + *(int *)(this + 4));
    }
    else {
      if (uVar1 != 0xffff) goto LAB_00576236;
LAB_005762d1:
      puVar3 = (ushort *)&Links(unsigned_short)::s_Sentinel;
    }
    uVar1 = *puVar3;
  } while( true );
}

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)