L L4D2node

CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent,int>>>::Unlink

0x005db820 · 179 bytes · __thiscall

_ZN14CUtlLinkedListIN18CScriptSpeechQueue18CQueuedScriptEventEiLb1Ei15CUtlFixedMemoryI19UtlLinkedListElem_tIS1_iEEE6UnlinkEi

Decompiled

undefined (2 params)

/* CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent, int, true, int,
   CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent, int> > >::Unlink(int)
    */

void __thiscall
CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent,int>>>
::Unlink(CUtlLinkedList<CScriptSpeechQueue::CQueuedScriptEvent,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<CScriptSpeechQueue::CQueuedScriptEvent,int>>>
         *this,int param_1)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  
  if (param_1 == 0) {
    return;
  }
  piVar3 = *(int **)(this + 0x20);
  if (((piVar3 != (int *)0x0) && (iVar2 = *(int *)(this + 0x24), -1 < iVar2)) && (iVar2 < piVar3[1])
     ) {
    piVar1 = piVar3 + 2;
    if (((uint)param_1 < piVar1) || (piVar1 + piVar3[1] * 0xe <= (uint)param_1)) {
      while (piVar3 = (int *)*piVar3, piVar3 != (int *)0x0) {
        if ((piVar3 + 2 <= (uint)param_1) &&
           ((uint)param_1 < (uint)((int)(piVar3 + 2) + piVar3[1] * 0x38))) {
          return;
        }
      }
    }
    else if ((int)(piVar1 + iVar2 * 0xe) < param_1) {
      return;
    }
  }
  if (param_1 == *(int *)(param_1 + 0x30)) {
    return;
  }
  if (*(int *)(param_1 + 0x30) == 0) {
    *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0x34);
  }
  else {
    *(undefined4 *)(*(int *)(param_1 + 0x30) + 0x34) = *(undefined4 *)(param_1 + 0x34);
  }
  if (*(int *)(param_1 + 0x34) == 0) {
    *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x30);
  }
  else {
    *(undefined4 *)(*(int *)(param_1 + 0x34) + 0x30) = *(undefined4 *)(param_1 + 0x30);
  }
  *(int *)(param_1 + 0x34) = param_1;
  *(int *)(param_1 + 0x30) = param_1;
  *(int *)(this + 0x18) = *(int *)(this + 0x18) + -1;
  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)