FindRecvTable
0x0014f190 · 104 bytes · __cdecl
_Z13FindRecvTablePKc
Decompiled
undefined (1 param)
/* FindRecvTable(char const*) */
undefined4 FindRecvTable(char *param_1)
{
ushort uVar1;
uint uVar2;
int iVar3;
uVar1 = DAT_0039f69c;
while( true ) {
uVar2 = (uint)uVar1;
if (uVar2 == 0xffff) {
return 0;
}
iVar3 = _V_stricmp(*(char **)(*(int *)(g_RecvTables + uVar2 * 8) + 0xc),param_1);
if (iVar3 == 0) break;
uVar1 = *(ushort *)(g_RecvTables + 6 + uVar2 * 8);
}
return *(undefined4 *)(g_RecvTables + uVar2 * 8);
}
SourceMod gamedata
paste intoaddons/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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.