L L4D2node

SendTable_GetPropsExcluded

0x00140c10 · 206 bytes · __regparm3

_ZL26SendTable_GetPropsExcludedPK9SendTableP11ExcludePropRii.isra.7.constprop.115

Decompiled

undefined (4 params)

/* SendTable_GetPropsExcluded(SendTable const*, ExcludeProp*, int&, int) [clone .isra.7] [clone
   .constprop.115] */

undefined4 __regparm3
SendTable_GetPropsExcluded(SendTable *param_1,ExcludeProp *param_2,int *param_3,int param_4)

{
  int iVar1;
  SendTable *pSVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  
  iVar6 = 0;
  if (0 < *(int *)param_2) {
    do {
      iVar3 = iVar6 * 0x54 + *(int *)param_1;
      if ((*(byte *)(iVar3 + 0x3c) & 0x40) == 0) {
        pSVar2 = *(SendTable **)(iVar3 + 0x48);
        if ((pSVar2 != (SendTable *)0x0) &&
           (uVar4 = SendTable_GetPropsExcluded(pSVar2,(ExcludeProp *)(pSVar2 + 4),param_3,param_4),
           (char)uVar4 == '\0')) {
          return uVar4;
        }
      }
      else {
        iVar1 = *(int *)(iVar3 + 0x28);
        if (iVar1 == 0) {
          Error("Found an exclude prop missing a name.");
        }
        iVar5 = *(int *)param_4;
        if (0x1ff < iVar5) {
          Error("SendTable_GetPropsExcluded: Overflowed max exclude props with %s.",iVar1);
          iVar5 = *(int *)param_4;
        }
        param_3[iVar5 * 2] = iVar1;
        param_3[*(int *)param_4 * 2 + 1] = *(int *)(iVar3 + 0x30);
        *(int *)param_4 = *(int *)param_4 + 1;
      }
      iVar6 = iVar6 + 1;
    } while (iVar6 < *(int *)param_2);
  }
  return 1;
}

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)