CScratchPadGraph::Init
0x00593700 · 200 bytes · __cdecl
_ZN16CScratchPadGraph4InitEP13IScratchPad3D6VectorfS2_ffS2_fS2_f
Decompiled
undefined (10 params)
/* CScratchPadGraph::Init(IScratchPad3D*, Vector, float, Vector, float, float, Vector, float,
Vector, float) */
void CScratchPadGraph::Init
(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,
undefined4 param_9,undefined4 param_10,undefined4 param_11,undefined4 param_12,
undefined4 param_13,undefined4 param_14,undefined4 param_15,undefined4 param_16,
undefined4 param_17,undefined4 param_18,undefined4 param_19)
{
param_1[6] = param_3;
param_1[7] = param_4;
*param_1 = param_2;
param_1[8] = param_5;
param_1[9] = param_6;
param_1[10] = param_12;
param_1[0xb] = param_13;
param_1[0xc] = param_14;
param_1[0xd] = param_15;
param_1[0xe] = param_11;
param_1[0x10] = param_7;
param_1[0x11] = param_8;
param_1[0x12] = param_9;
param_1[0x13] = param_16;
param_1[0x14] = param_17;
param_1[0x16] = param_10;
param_1[0x15] = param_18;
param_1[0x17] = param_19;
param_1[0xf] = 0;
param_1[0x19] = param_10;
param_1[0x18] = param_19;
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.