L L4D2node

CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::NextInorder

0x007ceff0 · 850 bytes · __thiscall

_ZNK10CUtlRBTreeIN7CUtlMapI7CHandleI11CBaseEntityEPN23CLagCompensationManager13EntityLagDataEtE6Node_tEtNS7_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS8_tEtEE11NextInorderEt

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<CHandle<CBaseEntity>, CLagCompensationManager::EntityLagData*, unsigned
   short>::Node_t, unsigned short, CUtlMap<CHandle<CBaseEntity>,
   CLagCompensationManager::EntityLagData*, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>, CLagCompensationManager::EntityLagData*,
   unsigned short>::Node_t, unsigned short>, unsigned short> >::NextInorder(unsigned short) const */

ushort __thiscall
CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NextInorder(CUtlRBTree<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CHandle<CBaseEntity>,CLagCompensationManager::EntityLagData*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
              *this,ushort param_1)

{
  ushort uVar1;
  undefined2 *puVar2;
  int iVar3;
  ushort *puVar4;
  ushort uVar5;
  uint uVar6;
  short sVar7;
  
  uVar1 = param_1;
  _param_1 = (uint)param_1;
  if ((Links(unsigned_short)::s_Sentinel == '\0') &&
     (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
    Links(unsigned_short)::s_Sentinel = -1;
    DAT_00f4ee72 = 0xffff;
    DAT_00f4ee74 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  if (uVar1 == 0xffff) {
    puVar2 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    puVar2 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
  }
  if (puVar2[1] == -1) {
    iVar3 = Links(this,uVar1);
    uVar1 = *(ushort *)(iVar3 + 4);
    do {
      uVar6 = (uint)uVar1;
      sVar7 = (short)_param_1;
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = -1;
          DAT_00f4ee72 = 0xffff;
          DAT_00f4ee74 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (sVar7 != -1) goto LAB_007cf1ce;
LAB_007cf24d:
        uVar5 = DAT_00f4ee74;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_007cf260;
LAB_007cf1e3:
        if (uVar5 != 0xffff) goto LAB_007cf1ed;
LAB_007cf2c0:
        puVar2 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (sVar7 == -1) goto LAB_007cf24d;
LAB_007cf1ce:
        uVar5 = *(ushort *)(_param_1 * 0x10 + *(int *)(this + 4) + 4);
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_007cf1e3;
LAB_007cf260:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 == 0) goto LAB_007cf1e3;
        DAT_00f4ee74 = 0xffff;
        Links(unsigned_short)::s_Sentinel = -1;
        DAT_00f4ee72 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar5 == 0xffff) goto LAB_007cf2c0;
LAB_007cf1ed:
        puVar2 = (undefined2 *)((uint)uVar5 * 0x10 + *(int *)(this + 4));
      }
      if (sVar7 != puVar2[1]) {
        return uVar1;
      }
      if (uVar1 == 0xffff) {
        return 0xffff;
      }
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
        Links(unsigned_short)::s_Sentinel = -1;
        DAT_00f4ee72 = 0xffff;
        DAT_00f4ee74 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      uVar1 = *(ushort *)(uVar6 * 0x10 + *(int *)(this + 4) + 4);
      _param_1 = uVar6;
    } while( true );
  }
  iVar3 = Links(this,uVar1);
  uVar1 = *(ushort *)(iVar3 + 2);
  do {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
      Links(unsigned_short)::s_Sentinel = -1;
      DAT_00f4ee72 = 0xffff;
      DAT_00f4ee74 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    sVar7 = Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      sVar7 = *(short *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
    }
    if (sVar7 == -1) {
      return uVar1;
    }
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar3 != 0) {
        Links(unsigned_short)::s_Sentinel = -1;
        DAT_00f4ee72 = 0xffff;
        DAT_00f4ee74 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 != 0xffff) goto LAB_007cf086;
LAB_007cf121:
      puVar4 = (ushort *)&Links(unsigned_short)::s_Sentinel;
    }
    else {
      if (uVar1 == 0xffff) goto LAB_007cf121;
LAB_007cf086:
      puVar4 = (ushort *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
    }
    uVar1 = *puVar4;
  } 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)