L L4D2node

CUtlRBTree<CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::Find

0x0019e7d0 · 272 bytes · __thiscall

_ZNK10CUtlRBTreeIN7CUtlMapIPvN12CModelLoader12ModelEntry_tEtE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE4FindERKS5_

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<void*, CModelLoader::ModelEntry_t, unsigned short>::Node_t, unsigned short,
   CUtlMap<void*, CModelLoader::ModelEntry_t, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*, CModelLoader::ModelEntry_t, unsigned short>::Node_t,
   unsigned short>, unsigned short> >::Find(CUtlMap<void*, CModelLoader::ModelEntry_t, unsigned
   short>::Node_t const&) const */

uint __thiscall
CUtlRBTree<CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::Find(CUtlRBTree<CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<void*,CModelLoader::ModelEntry_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
       *this,Node_t *param_1)

{
  ushort uVar1;
  char cVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  
  uVar4 = (uint)*(ushort *)(this + 0x10);
  if (*(ushort *)(this + 0x10) != 0xffff) {
    iVar3 = *(int *)(this + 4);
    do {
      while( true ) {
        iVar5 = uVar4 * 0x10;
        cVar2 = (**(code **)this)(param_1,iVar3 + 8 + iVar5);
        if (cVar2 != '\0') break;
        cVar2 = (**(code **)this)(*(int *)(this + 4) + iVar5 + 8,param_1);
        if (cVar2 == '\0') {
          return uVar4;
        }
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_003415da = 0xffff;
          DAT_003415dc = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        iVar3 = *(int *)(this + 4);
        uVar1 = *(ushort *)(iVar3 + 2 + iVar5);
        uVar4 = (uint)uVar1;
        if (uVar1 == 0xffff) {
          return 0xffffffff;
        }
      }
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
        DAT_003415da = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_003415dc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      iVar3 = *(int *)(this + 4);
      uVar4 = (uint)*(ushort *)(iVar3 + iVar5);
    } while (*(ushort *)(iVar3 + iVar5) != 0xffff);
  }
  return 0xffffffff;
}

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)