L L4D2node

CUtlLinkedList<CFoundryEntitySpawnRecord*,int,false,int,CUtlMemory<UtlLinkedListElem_t<CFoundryEntitySpawnRecord*,int>,int>>::Unlink

0x006817d0 · 115 bytes · __thiscall

_ZN14CUtlLinkedListIP25CFoundryEntitySpawnRecordiLb0Ei10CUtlMemoryI19UtlLinkedListElem_tIS1_iEiEE6UnlinkEi

Decompiled

undefined (2 params)

/* CUtlLinkedList<CFoundryEntitySpawnRecord*, int, false, int,
   CUtlMemory<UtlLinkedListElem_t<CFoundryEntitySpawnRecord*, int>, int> >::Unlink(int) */

void __thiscall
CUtlLinkedList<CFoundryEntitySpawnRecord*,int,false,int,CUtlMemory<UtlLinkedListElem_t<CFoundryEntitySpawnRecord*,int>,int>>
::Unlink(CUtlLinkedList<CFoundryEntitySpawnRecord*,int,false,int,CUtlMemory<UtlLinkedListElem_t<CFoundryEntitySpawnRecord*,int>,int>>
         *this,int param_1)

{
  int iVar1;
  int iVar2;
  
  if (param_1 < 0) {
    return;
  }
  if (*(int *)(this + 4) <= param_1) {
    return;
  }
  if (*(int *)(this + 0x20) < param_1) {
    return;
  }
  iVar1 = *(int *)this + param_1 * 0xc;
  iVar2 = *(int *)(iVar1 + 4);
  if (param_1 != iVar2) {
    if (iVar2 == -1) {
      *(undefined4 *)(this + 0xc) = *(undefined4 *)(iVar1 + 8);
      iVar2 = *(int *)(iVar1 + 8);
    }
    else {
      *(undefined4 *)(*(int *)this + 8 + iVar2 * 0xc) = *(undefined4 *)(iVar1 + 8);
      iVar2 = *(int *)(iVar1 + 8);
    }
    if (iVar2 == -1) {
      *(undefined4 *)(this + 0x10) = *(undefined4 *)(iVar1 + 4);
    }
    else {
      *(undefined4 *)(*(int *)this + iVar2 * 0xc + 4) = *(undefined4 *)(iVar1 + 4);
    }
    *(int *)(iVar1 + 8) = param_1;
    *(int *)(iVar1 + 4) = param_1;
    *(int *)(this + 0x18) = *(int *)(this + 0x18) + -1;
    return;
  }
  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)