L L4D2node

CUtlLinkedList<CBSPTreeData::HandleInfo_t,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t,unsigned_short>,unsigned_short>>::RemoveAll

0x000bc490 · 110 bytes · __thiscall

_ZN14CUtlLinkedListIN12CBSPTreeData12HandleInfo_tEtLb0Et10CUtlMemoryI19UtlLinkedListElem_tIS1_tEtEE9RemoveAllEv

Decompiled

undefined (1 param)

/* CUtlLinkedList<CBSPTreeData::HandleInfo_t, unsigned short, false, unsigned short,
   CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t, unsigned short>, unsigned short>
   >::RemoveAll() */

void __thiscall
CUtlLinkedList<CBSPTreeData::HandleInfo_t,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t,unsigned_short>,unsigned_short>>
::RemoveAll(CUtlLinkedList<CBSPTreeData::HandleInfo_t,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<CBSPTreeData::HandleInfo_t,unsigned_short>,unsigned_short>>
            *this)

{
  int iVar1;
  ushort uVar2;
  
  if (*(short *)(this + 0x16) != -1) {
    uVar2 = *(ushort *)(this + 0xc);
    if (*(ushort *)(this + 0xc) != 0xffff) {
      do {
        iVar1 = *(int *)this + (uint)uVar2 * 0xc;
        *(ushort *)(iVar1 + 8) = uVar2;
        uVar2 = *(ushort *)(iVar1 + 10);
      } while (*(ushort *)(iVar1 + 10) != 0xffff);
      *(undefined2 *)(iVar1 + 10) = *(undefined2 *)(this + 0x10);
      if (*(short *)(this + 0xc) != -1) {
        *(short *)(this + 0x10) = *(short *)(this + 0xc);
      }
    }
    *(undefined2 *)(this + 0xc) = 0xffff;
    *(undefined2 *)(this + 0xe) = 0xffff;
    *(undefined2 *)(this + 0x12) = 0;
  }
  return;
}

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)