L L4D2node

CUtlLinkedList<CResponseQueue::CDeferredResponse,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CResponseQueue::CDeferredResponse,int>>>::RemoveAll

0x005db1b0 · 398 bytes · __thiscall

_ZN14CUtlLinkedListIN14CResponseQueue17CDeferredResponseEiLb1Ei15CUtlFixedMemoryI19UtlLinkedListElem_tIS1_iEEE9RemoveAllEv

Decompiled

undefined (1 param)

/* CUtlLinkedList<CResponseQueue::CDeferredResponse, int, true, int,
   CUtlFixedMemory<UtlLinkedListElem_t<CResponseQueue::CDeferredResponse, int> > >::RemoveAll() */

void __thiscall
CUtlLinkedList<CResponseQueue::CDeferredResponse,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CResponseQueue::CDeferredResponse,int>>>
::RemoveAll(CUtlLinkedList<CResponseQueue::CDeferredResponse,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CResponseQueue::CDeferredResponse,int>>>
            *this)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  
  if ((*(int *)(this + 0x20) == 0) && (*(int *)(this + 0x24) == -1)) {
    return;
  }
  puVar6 = *(undefined4 **)this;
  iVar5 = -(uint)(puVar6 == (undefined4 *)0x0);
  do {
    if (puVar6 == (undefined4 *)0x0) {
      if (iVar5 == -1) {
LAB_005db2d4:
        *(undefined4 *)(this + 0xc) = 0;
        *(undefined4 *)(this + 0x10) = 0;
        *(undefined4 *)(this + 0x18) = 0;
        return;
      }
LAB_005db300:
      puVar2 = *(undefined4 **)(this + 0x20);
      iVar3 = *(int *)(this + 0x24);
    }
    else {
      if (((iVar5 == -1) || ((int)puVar6[1] <= iVar5)) ||
         (puVar1 = puVar6 + iVar5 * 0x10 + 2, puVar1 == (undefined4 *)0x0)) goto LAB_005db300;
      puVar2 = *(undefined4 **)(this + 0x20);
      if (((puVar2 == (undefined4 *)0x0) || (iVar3 = *(int *)(this + 0x24), iVar3 < 0)) ||
         ((int)puVar2[1] <= iVar3)) {
LAB_005db260:
        if ((puVar1 == (undefined4 *)puVar1[0xe]) && (puVar1 != (undefined4 *)puVar1[0xf])) {
          iVar3 = *(int *)(this + 0x24);
        }
        else {
          AI_CriteriaSet::~AI_CriteriaSet((AI_CriteriaSet *)(puVar1 + 2));
          puVar1[0xe] = puVar1;
          puVar1[0xf] = *(undefined4 *)(this + 0x14);
          *(undefined4 **)(this + 0x14) = puVar1;
          puVar2 = *(undefined4 **)(this + 0x20);
          iVar3 = *(int *)(this + 0x24);
        }
      }
      else {
        puVar4 = puVar2 + 2;
        if ((puVar1 < puVar4) || (puVar4 + puVar2[1] * 0x10 <= puVar1)) {
          for (puVar4 = (undefined4 *)*puVar2; puVar4 != (undefined4 *)0x0;
              puVar4 = (undefined4 *)*puVar4) {
            while (puVar4 + 2 <= puVar1) {
              if (puVar1 < puVar4 + 2 + puVar4[1] * 0x10) goto joined_r0x005db2c2;
              puVar4 = (undefined4 *)*puVar4;
              if (puVar4 == (undefined4 *)0x0) goto LAB_005db260;
            }
          }
          goto LAB_005db260;
        }
        if ((int)puVar1 <= (int)(puVar4 + iVar3 * 0x10)) goto LAB_005db260;
      }
    }
joined_r0x005db2c2:
    if ((((puVar2 == puVar6) && (iVar3 == iVar5)) || (puVar6 == (undefined4 *)0x0)) ||
       ((iVar5 == -1 || ((int)puVar6[1] <= iVar5)))) goto LAB_005db2d4;
    iVar5 = iVar5 + 1;
    if ((int)puVar6[1] <= iVar5) {
      puVar6 = (undefined4 *)*puVar6;
      iVar5 = -(uint)(puVar6 == (undefined4 *)0x0);
    }
  } 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)