CScratchPadGraph::AddVerticalLine
0x00593860 · 246 bytes · __thiscall
_ZN16CScratchPadGraph15AddVerticalLineEfffRK8CSPColor
Decompiled
undefined (5 params)
/* CScratchPadGraph::AddVerticalLine(float, float, float, CSPColor const&) */
void __thiscall
CScratchPadGraph::AddVerticalLine
(CScratchPadGraph *this,float param_1,float param_2,float param_3,CSPColor *param_4)
{
undefined4 local_5c;
undefined4 local_58;
undefined4 local_54;
undefined4 local_50;
undefined4 local_4c;
undefined4 local_48;
undefined4 local_44;
undefined4 local_40;
undefined4 local_3c;
undefined4 local_38;
undefined4 local_34;
undefined4 local_30;
undefined4 local_2c;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
undefined4 local_1c;
undefined4 local_18;
undefined4 local_14;
undefined4 local_10;
GetSamplePosition((float)&local_5c,(float)this);
GetSamplePosition((float)&local_50,(float)this);
local_38 = *(undefined4 *)param_4;
local_28 = local_50;
local_44 = local_5c;
local_24 = local_4c;
local_40 = local_58;
local_34 = *(undefined4 *)(param_4 + 4);
local_20 = local_48;
local_30 = *(undefined4 *)(param_4 + 8);
local_2c = *(undefined4 *)(param_4 + 0xc);
local_3c = local_54;
local_1c = local_38;
local_18 = local_34;
local_14 = local_30;
local_10 = local_2c;
(**(code **)(**(int **)this + 0x1c))(*(int **)this,&local_44,&local_28,param_3);
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.