L L4D2node

CUtlVector<CRConServer::FailedRCon_t,CUtlMemory<CRConServer::FailedRCon_t,int>>::RemoveAll

0x0020d0e0 · 95 bytes · __thiscall

_ZN10CUtlVectorIN11CRConServer12FailedRCon_tE10CUtlMemoryIS1_iEE9RemoveAllEv

Decompiled

undefined (1 param)

/* CUtlVector<CRConServer::FailedRCon_t, CUtlMemory<CRConServer::FailedRCon_t, int> >::RemoveAll()
    */

void __thiscall
CUtlVector<CRConServer::FailedRCon_t,CUtlMemory<CRConServer::FailedRCon_t,int>>::RemoveAll
          (CUtlVector<CRConServer::FailedRCon_t,CUtlMemory<CRConServer::FailedRCon_t,int>> *this)

{
  CUtlLinkedList<float,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<float,unsigned_short>,unsigned_short>>
  *this_00;
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *(int *)(this + 0xc) + -1;
  iVar3 = iVar2 * 0x2c;
  if (-1 < iVar2) {
    do {
      iVar2 = iVar2 + -1;
      iVar1 = *(int *)this + iVar3;
      iVar3 = iVar3 + -0x2c;
      this_00 = (CUtlLinkedList<float,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<float,unsigned_short>,unsigned_short>>
                 *)(iVar1 + 0x10);
      CUtlLinkedList<float,unsigned_short,false,unsigned_short,CUtlMemory<UtlLinkedListElem_t<float,unsigned_short>,unsigned_short>>
      ::RemoveAll(this_00);
      CUtlMemory<UtlLinkedListElem_t<float,unsigned_short>,unsigned_short>::Purge
                ((CUtlMemory<UtlLinkedListElem_t<float,unsigned_short>,unsigned_short> *)this_00);
    } while (iVar2 != -1);
  }
  *(undefined4 *)(this + 0xc) = 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)