L L4D2node

FindRecvTable

0x0016f480 · 76 bytes · __regparm3

_ZL13FindRecvTablePKcPP9RecvTablei

Decompiled

undefined (3 params)

/* FindRecvTable(char const*, RecvTable**, int) */

RecvTable * __regparm3 FindRecvTable(char *param_1,RecvTable **param_2,int param_3)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  if (0 < param_3) {
    do {
      iVar1 = _V_strcmp(param_1,*(char **)(*param_2 + 0xc));
      if (iVar1 == 0) {
        return *param_2;
      }
      iVar2 = iVar2 + 1;
      param_2 = param_2 + 1;
    } while (iVar2 != param_3);
  }
  return (RecvTable *)0x0;
}

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)