FillPathEntries_R
0x00142070 · 228 bytes · __cdecl
_Z17FillPathEntries_RP17CSendTablePrecalcP9CSendNodeS2_Ri
Decompiled
undefined (4 params)
/* FillPathEntries_R(CSendTablePrecalc*, CSendNode*, CSendNode*, int&) */
void FillPathEntries_R(CSendTablePrecalc *param_1,CSendNode *param_2,CSendNode *param_3,int *param_4
)
{
undefined2 *puVar1;
ushort *puVar2;
int iVar3;
int iVar4;
int iVar5;
puVar1 = (undefined2 *)(*(int *)(param_1 + 0x18) + (uint)*(ushort *)(param_2 + 0x22) * 4);
*puVar1 = (short)*param_4;
if (param_3 == (CSendNode *)0x0) {
puVar1[1] = 0;
}
else {
puVar2 = (ushort *)(*(int *)(param_1 + 0x18) + (uint)*(ushort *)(param_3 + 0x22) * 4);
puVar1[1] = puVar2[1] + 1;
iVar4 = 0;
if (puVar2[1] != 0) {
do {
iVar3 = *param_4;
*param_4 = iVar3 + 1;
iVar5 = (uint)*puVar2 + iVar4;
iVar4 = iVar4 + 1;
*(undefined4 *)(*(int *)(param_1 + 4) + iVar3 * 4) =
*(undefined4 *)(*(int *)(param_1 + 4) + iVar5 * 4);
} while (iVar4 < (int)(uint)puVar2[1]);
}
*(undefined2 *)(*(int *)(param_1 + 4) + 2 + *param_4 * 4) = *(undefined2 *)(param_2 + 0x22);
*(undefined2 *)(*(int *)(param_1 + 4) + *param_4 * 4) = *(undefined2 *)(param_2 + 0x14);
*param_4 = *param_4 + 1;
}
if (0 < *(int *)(param_2 + 0xc)) {
iVar4 = 0;
do {
iVar3 = iVar4 * 4;
iVar4 = iVar4 + 1;
FillPathEntries_R(param_1,*(CSendNode **)(*(int *)param_2 + iVar3),param_2,param_4);
} while (iVar4 < *(int *)(param_2 + 0xc));
}
return;
}
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.