SendProxy_SendLocalWeaponDataTable
0x00406dc0 · 106 bytes · __cdecl
_Z34SendProxy_SendLocalWeaponDataTablePK8SendPropPKvS3_P20CSendProxyRecipientsi
Decompiled
undefined (5 params)
/* SendProxy_SendLocalWeaponDataTable(SendProp const*, void const*, void const*,
CSendProxyRecipients*, int) */
void * SendProxy_SendLocalWeaponDataTable
(SendProp *param_1,void *param_2,void *param_3,CSendProxyRecipients *param_4,
int param_5)
{
char cVar1;
int *piVar2;
int iVar3;
if (param_3 != (void *)0x0) {
piVar2 = (int *)CBaseCombatWeapon::GetOwner(param_3);
if (piVar2 != (int *)0x0) {
cVar1 = (**(code **)(*piVar2 + 0x16c))(piVar2);
if (cVar1 != '\0') {
if (piVar2[0xc] == 0) {
iVar3 = -1;
}
else {
iVar3 = (piVar2[0xc] - *(int *)(gpGlobals + 0x58) >> 4) + -1;
}
CSendProxyRecipients::SetOnly(param_4,iVar3);
return param_3;
}
}
}
return (void *)0x0;
}
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.