L L4D2node

CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::Node_t,unsigned_char,CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::Node_t,unsigned_char>,unsigned_char>>::NextInorder

0x008aab20 · 1085 bytes · __thiscall

_ZNK10CUtlRBTreeIN7CUtlMapI7CHandleI11CBaseEntityE22scavenge_cache_entry_thE6Node_tEhNS5_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS6_hEhEE11NextInorderEh

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<CHandle<CBaseEntity>, scavenge_cache_entry_t, unsigned char>::Node_t, unsigned
   char, CUtlMap<CHandle<CBaseEntity>, scavenge_cache_entry_t, unsigned char>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>, scavenge_cache_entry_t, unsigned
   char>::Node_t, unsigned char>, unsigned char> >::NextInorder(unsigned char) const */

uint __thiscall
CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::Node_t,unsigned_char,CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::Node_t,unsigned_char>,unsigned_char>>
::NextInorder(CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::Node_t,unsigned_char,CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,scavenge_cache_entry_t,unsigned_char>::Node_t,unsigned_char>,unsigned_char>>
              *this,uchar param_1)

{
  byte bVar1;
  uchar uVar2;
  int iVar3;
  byte bVar4;
  char cVar5;
  undefined1 *puVar6;
  uint uVar7;
  byte *pbVar8;
  
  uVar2 = param_1;
  _param_1 = (uint)param_1;
  if ((Links(unsigned_char)::s_Sentinel == '\0') &&
     (iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel), iVar3 != 0)) {
    Links(unsigned_char)::s_Sentinel = -1;
    DAT_00f5e1e1 = -1;
    DAT_00f5e1e2 = 0xff;
    __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
  }
  cVar5 = DAT_00f5e1e1;
  if (uVar2 != 0xff) {
    cVar5 = *(char *)((uint)uVar2 * 0x10 + *(int *)(this + 4) + 1);
  }
  if (cVar5 == -1) {
    if ((Links(unsigned_char)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel), iVar3 != 0)) {
      Links(unsigned_char)::s_Sentinel = -1;
      DAT_00f5e1e1 = -1;
      DAT_00f5e1e2 = 0xff;
      __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
    }
    if (uVar2 == 0xff) {
      puVar6 = &Links(unsigned_char)::s_Sentinel;
    }
    else {
      puVar6 = (undefined1 *)((uint)uVar2 * 0x10 + *(int *)(this + 4));
    }
    bVar1 = puVar6[2];
    do {
      uVar7 = (uint)bVar1;
      cVar5 = (char)_param_1;
      if (Links(unsigned_char)::s_Sentinel == '\0') {
        iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_char)::s_Sentinel = -1;
          DAT_00f5e1e1 = -1;
          DAT_00f5e1e2 = 0xff;
          __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
          goto LAB_008aacf0;
        }
        if (cVar5 != -1) goto LAB_008aacfb;
LAB_008aad84:
        bVar4 = DAT_00f5e1e2;
        if (Links(unsigned_char)::s_Sentinel != '\0') goto LAB_008aad10;
LAB_008aad98:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel);
        if (iVar3 == 0) goto LAB_008aad10;
        Links(unsigned_char)::s_Sentinel = -1;
        DAT_00f5e1e1 = -1;
        DAT_00f5e1e2 = 0xff;
        __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
        if (bVar4 != 0xff) goto LAB_008aad19;
LAB_008aadf0:
        puVar6 = &Links(unsigned_char)::s_Sentinel;
      }
      else {
LAB_008aacf0:
        if (cVar5 == -1) goto LAB_008aad84;
LAB_008aacfb:
        bVar4 = *(byte *)(_param_1 * 0x10 + *(int *)(this + 4) + 2);
        if (Links(unsigned_char)::s_Sentinel == '\0') goto LAB_008aad98;
LAB_008aad10:
        if (bVar4 == 0xff) goto LAB_008aadf0;
LAB_008aad19:
        puVar6 = (undefined1 *)((uint)bVar4 * 0x10 + *(int *)(this + 4));
      }
      if (cVar5 != puVar6[1]) {
        return uVar7;
      }
      if (bVar1 == 0xff) {
        return 0xff;
      }
      if ((Links(unsigned_char)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel), iVar3 != 0)) {
        Links(unsigned_char)::s_Sentinel = -1;
        DAT_00f5e1e1 = -1;
        DAT_00f5e1e2 = 0xff;
        __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
      }
      bVar1 = *(byte *)(uVar7 * 0x10 + *(int *)(this + 4) + 2);
      _param_1 = uVar7;
    } while( true );
  }
  if ((Links(unsigned_char)::s_Sentinel == '\0') &&
     (iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel), iVar3 != 0)) {
    Links(unsigned_char)::s_Sentinel = -1;
    DAT_00f5e1e1 = -1;
    DAT_00f5e1e2 = 0xff;
    __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
  }
  if (uVar2 == 0xff) {
    puVar6 = &Links(unsigned_char)::s_Sentinel;
  }
  else {
    puVar6 = (undefined1 *)((uint)uVar2 * 0x10 + *(int *)(this + 4));
  }
  bVar1 = puVar6[1];
  do {
    uVar7 = (uint)bVar1;
    if ((Links(unsigned_char)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel), iVar3 != 0)) {
      Links(unsigned_char)::s_Sentinel = -1;
      DAT_00f5e1e1 = -1;
      DAT_00f5e1e2 = 0xff;
      __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
    }
    cVar5 = Links(unsigned_char)::s_Sentinel;
    if (bVar1 != 0xff) {
      cVar5 = *(char *)(uVar7 * 0x10 + *(int *)(this + 4));
    }
    if (cVar5 == -1) {
      return uVar7;
    }
    if (Links(unsigned_char)::s_Sentinel == '\0') {
      iVar3 = __cxa_guard_acquire(&Links(unsigned_char)::s_Sentinel);
      if (iVar3 != 0) {
        Links(unsigned_char)::s_Sentinel = -1;
        DAT_00f5e1e1 = -1;
        DAT_00f5e1e2 = 0xff;
        __cxa_guard_release(&Links(unsigned_char)::s_Sentinel);
        goto LAB_008aaba6;
      }
      if (bVar1 == 0xff) goto LAB_008aac46;
LAB_008aabaf:
      pbVar8 = (byte *)(uVar7 * 0x10 + *(int *)(this + 4));
    }
    else {
LAB_008aaba6:
      if (bVar1 != 0xff) goto LAB_008aabaf;
LAB_008aac46:
      pbVar8 = (byte *)&Links(unsigned_char)::s_Sentinel;
    }
    bVar1 = *pbVar8;
  } 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)