SendPropInt
0x0058fd70 · 314 bytes · __cdecl
_Z11SendPropIntPKciiiiPFvPK8SendPropPKvS5_P8DVariantiiEh
Decompiled
undefined (7 params)
/* SendPropInt(char const*, int, int, int, int, void (*)(SendProp const*, void const*, void const*,
DVariant*, int, int), unsigned char) */
void SendPropInt(char *param_1,int param_2,int param_3,int param_4,int param_5,
_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int *param_6,
uchar param_7)
{
undefined3 in_stack_0000001d;
char in_stack_00000020;
*(undefined ***)param_1 = &PTR__SendProp_00c54c98;
param_1[0x30] = '\0';
param_1[0x31] = '\0';
param_1[0x32] = '\0';
param_1[0x33] = '\0';
param_1[0x4c] = '\0';
param_1[0x4d] = '\0';
param_1[0x4e] = '\0';
param_1[0x4f] = '\0';
param_1[0x48] = '\0';
param_1[0x49] = '\0';
param_1[0x4a] = '\0';
param_1[0x4b] = '\0';
param_1[0x40] = '\0';
param_1[0x41] = '\0';
param_1[0x42] = '\0';
param_1[0x43] = '\0';
param_1[0x28] = '\0';
param_1[0x29] = '\0';
param_1[0x2a] = '\0';
param_1[0x2b] = '\0';
param_1[0x2c] = '\0';
param_1[0x2d] = '\0';
param_1[0x2e] = '\0';
param_1[0x2f] = '\0';
param_1[8] = '\0';
param_1[9] = '\0';
param_1[10] = '\0';
param_1[0xb] = '\0';
param_1[0x3c] = '\0';
param_1[0x3d] = '\0';
param_1[0x3e] = '\0';
param_1[0x3f] = '\0';
param_1[0xc] = '\0';
param_1[0xd] = '\0';
param_1[0xe] = '\0';
param_1[0xf] = '\0';
param_1[0x10] = '\0';
param_1[0x11] = '\0';
param_1[0x12] = '\0';
param_1[0x13] = '\0';
param_1[0x14] = '\0';
param_1[0x15] = '\0';
param_1[0x16] = '\0';
param_1[0x17] = '\0';
param_1[0x34] = '\0';
param_1[0x35] = '\0';
param_1[0x36] = '\0';
param_1[0x37] = '\0';
param_1[0x18] = '\0';
param_1[0x19] = '\0';
param_1[0x1a] = '\0';
param_1[0x1b] = '\0';
param_1[0x1c] = '\0';
param_1[0x1d] = '\0';
param_1[0x1e] = '\0';
param_1[0x1f] = '\0';
param_1[0x20] = '\x01';
param_1[0x21] = '\0';
param_1[0x22] = '\0';
param_1[0x23] = '\0';
param_1[0x24] = -1;
param_1[0x25] = -1;
param_1[0x26] = -1;
param_1[0x27] = -1;
param_1[0x44] = '\0';
param_1[0x45] = '\0';
param_1[0x46] = '\0';
param_1[0x47] = '\0';
param_1[4] = '\0';
param_1[5] = '\0';
param_1[6] = '\0';
param_1[7] = '\0';
param_1[0x38] = -0x80;
if ((((_param_7 == (code *)0x0) && (_param_7 = SendProxy_Int8ToInt32, param_4 != 1)) &&
(_param_7 = SendProxy_Int16ToInt32, param_4 != 2)) &&
(_param_7 = SendProxy_Int32ToInt32, param_4 != 4)) {
_param_7 = SendProxy_Int8ToInt32;
}
*(_func_void_SendProp_ptr_void_ptr_void_ptr_DVariant_ptr_int_int **)(param_1 + 0x3c) = param_6;
*(code **)(param_1 + 0x40) = _param_7;
if (param_5 < 1) {
param_5 = param_4 << 3;
}
*(int *)(param_1 + 0xc) = param_5;
param_1[0x38] = in_stack_00000020;
*(int *)(param_1 + 0x30) = param_2;
*(int *)(param_1 + 0x4c) = param_3;
if (((uint)param_6 & 1) != 0) {
if (_param_7 == SendProxy_Int8ToInt32) {
*(code **)(param_1 + 0x40) = SendProxy_UInt8ToInt32;
}
else if (_param_7 == SendProxy_Int16ToInt32) {
*(code **)(param_1 + 0x40) = SendProxy_UInt16ToInt32;
}
else if (_param_7 == SendProxy_Int32ToInt32) {
*(code **)(param_1 + 0x40) = SendProxy_UInt32ToInt32;
return;
}
}
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.