L L4D2node

CServerDatatableStack::RecurseAndCallProxies

0x001567e0 · 194 bytes · __thiscall

_ZN21CServerDatatableStack21RecurseAndCallProxiesEP9CSendNodePh

Decompiled

undefined (3 params)

/* CServerDatatableStack::RecurseAndCallProxies(CSendNode*, unsigned char*) */

void __thiscall
CServerDatatableStack::RecurseAndCallProxies
          (CServerDatatableStack *this,CSendNode *param_1,uchar *param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int iVar5;
  
  *(uchar **)(this + (uint)*(ushort *)(param_1 + 0x22) * 4 + 8) = param_2;
  iVar5 = 0;
  if (0 < *(int *)(param_1 + 0xc)) {
    do {
      iVar1 = *(int *)(*(int *)param_1 + iVar5 * 4);
      uVar3 = 0;
      if (param_2 != (uchar *)0x0) {
        iVar2 = *(int *)(*(int *)(*(int *)(this + 0x11c) + 0x54) + *(short *)(iVar1 + 0x14) * 4);
        if ((*(int **)(this + 0x120) == (int *)0x0) || (*(ushort *)(iVar1 + 0x20) == 0xff)) {
          puVar4 = &s_Recipients;
        }
        else {
          puVar4 = (undefined4 *)(**(int **)(this + 0x120) + (uint)*(ushort *)(iVar1 + 0x20) * 4);
          if (puVar4 != (undefined4 *)0x0) {
            *puVar4 = 0xffffffff;
          }
        }
        uVar3 = (**(code **)(iVar2 + 0x44))
                          (iVar2,param_2,param_2 + *(int *)(iVar2 + 0x4c),puVar4,
                           *(undefined4 *)(this + 0x114));
      }
      iVar5 = iVar5 + 1;
      (*(code *)**(undefined4 **)this)(this,iVar1,uVar3);
    } while (iVar5 < *(int *)(param_1 + 0xc));
  }
  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)