L L4D2node

CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>::Find

0x00063010 · 257 bytes · __thiscall

_ZNK10CUtlRBTreeIN7CUtlMapIjN5GCSDK16JobStatsBucket_tEiE6Node_tEiNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_iEiEE4FindERKS4_

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<unsigned int, GCSDK::JobStatsBucket_t, int>::Node_t, int, CUtlMap<unsigned
   int, GCSDK::JobStatsBucket_t, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int,
   GCSDK::JobStatsBucket_t, int>::Node_t, int>, int> >::Find(CUtlMap<unsigned int,
   GCSDK::JobStatsBucket_t, int>::Node_t const&) const */

int __thiscall
CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
::Find(CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
       *this,Node_t *param_1)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar3 = *(int *)(this + 0x10);
  if (iVar3 != -1) {
    iVar2 = *(int *)(this + 4);
    do {
      while( true ) {
        iVar4 = iVar3 * 0xec;
        cVar1 = (**(code **)this)(param_1,iVar2 + 0x10 + iVar4);
        if (cVar1 != '\0') break;
        cVar1 = (**(code **)this)(*(int *)(this + 4) + iVar4 + 0x10,param_1);
        if (cVar1 == '\0') {
          return iVar3;
        }
        if ((Links(int)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_000d2844 = 0xffffffff;
          DAT_000d2848 = 0xffffffff;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        iVar2 = *(int *)(this + 4);
        iVar3 = *(int *)(iVar2 + 4 + iVar4);
        if (iVar3 == -1) {
          return -1;
        }
      }
      if ((Links(int)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_000d2844 = 0xffffffff;
        DAT_000d2848 = 0xffffffff;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      iVar2 = *(int *)(this + 4);
      iVar3 = *(int *)(iVar2 + iVar4);
    } while (iVar3 != -1);
  }
  return -1;
}

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)