L L4D2node

MatchRecvPropsToSendProps_R

0x00151170 · 443 bytes · __regparm3

_ZL27MatchRecvPropsToSendProps_RR10CUtlRBTreeI14MatchingProp_ttPFbRKS0_S2_E10CUtlMemoryI15UtlRBTreeNode_tIS0_tEtEEPKcP9SendTableP9RecvTablebPb

Decompiled

undefined (6 params)

/* MatchRecvPropsToSendProps_R(CUtlRBTree<MatchingProp_t, unsigned short, bool (*)(MatchingProp_t
   const&, MatchingProp_t const&), CUtlMemory<UtlRBTreeNode_t<MatchingProp_t, unsigned short>,
   unsigned short> >&, char const*, SendTable*, RecvTable*, bool, bool*) */

undefined4 __regparm3
MatchRecvPropsToSendProps_R
          (CUtlRBTree *param_1,char *param_2,SendTable *param_3,RecvTable *param_4,bool param_5,
          bool *param_6)

{
  SendProp *pSVar1;
  char *pcVar2;
  char cVar3;
  int iVar4;
  undefined4 uVar5;
  RecvTable *pRVar6;
  RecvProp *pRVar7;
  int iVar8;
  int iVar9;
  int local_3c;
  SendProp *local_24;
  RecvProp *local_20;
  
  local_3c = 0;
  if (0 < *(int *)(param_3 + 4)) {
    do {
      pSVar1 = (SendProp *)(local_3c * 0x54 + *(int *)param_3);
      if ((*(uint *)(pSVar1 + 0x3c) & 0x140) == 0) {
        if ((param_4 != (RecvTable *)0x0) &&
           (pcVar2 = *(char **)(pSVar1 + 0x30), 0 < *(int *)(param_4 + 4))) {
          iVar8 = 0;
          iVar9 = 0;
          do {
            pRVar7 = (RecvProp *)(*(int *)param_4 + iVar8);
            iVar4 = _V_stricmp(*(char **)pRVar7,pcVar2);
            if (iVar4 == 0) {
              uVar5 = CompareRecvPropToSendProp(pRVar7,pSVar1);
              if ((char)uVar5 == '\0') {
                Warning("RecvProp type doesn\'t match server type for %s/%s\n",
                        *(undefined4 *)(param_3 + 8),*(undefined4 *)(pSVar1 + 0x30));
                return uVar5;
              }
              local_24 = pSVar1;
              local_20 = pRVar7;
              CUtlRBTree<MatchingProp_t,unsigned_short,bool(*)(MatchingProp_t_const&,MatchingProp_t_const&),CUtlMemory<UtlRBTreeNode_t<MatchingProp_t,unsigned_short>,unsigned_short>>
              ::Insert((CUtlRBTree<MatchingProp_t,unsigned_short,bool(*)(MatchingProp_t_const&,MatchingProp_t_const&),CUtlMemory<UtlRBTreeNode_t<MatchingProp_t,unsigned_short>,unsigned_short>>
                        *)param_1,(MatchingProp_t *)&local_24);
              iVar8 = *(int *)(pSVar1 + 8);
              goto joined_r0x0015125d;
            }
            iVar9 = iVar9 + 1;
            iVar8 = iVar8 + 0x3c;
          } while (iVar9 < *(int *)(param_4 + 4));
        }
        if (param_6 != (bool *)0x0) {
          *param_6 = true;
        }
        Warning("Missing RecvProp for %s - %s/%s\n",param_2,*(undefined4 *)(param_3 + 8),
                *(undefined4 *)(pSVar1 + 0x30));
        if (!param_5) {
          return 0;
        }
        pRVar7 = (RecvProp *)0x0;
        iVar8 = *(int *)(pSVar1 + 8);
joined_r0x0015125d:
        if (iVar8 == 6) {
          if (pRVar7 == (RecvProp *)0x0) {
            pRVar6 = (RecvTable *)0x0;
          }
          else {
            pRVar6 = *(RecvTable **)(pRVar7 + 0x28);
          }
          cVar3 = MatchRecvPropsToSendProps_R
                            (param_1,param_2,*(SendTable **)(pSVar1 + 0x48),pRVar6,param_5,param_6);
          if (cVar3 == '\0') {
            return 0;
          }
        }
      }
      local_3c = local_3c + 1;
    } while (local_3c < *(int *)(param_3 + 4));
  }
  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)