CNavArea::DrawFilled
0x006f9440 · 408 bytes · __thiscall
_ZNK8CNavArea10DrawFilledEiiiifb
Decompiled
undefined (7 params)
/* CNavArea::DrawFilled(int, int, int, int, float, bool) const */
void __thiscall
CNavArea::DrawFilled
(CNavArea *this,int param_1,int param_2,int param_3,int param_4,float param_5,bool param_6
)
{
float local_4c;
float local_48;
undefined4 local_44;
float local_40;
float local_3c;
undefined4 local_38;
float local_34;
float local_30;
undefined4 local_2c;
float local_28;
float local_24;
undefined4 local_20;
local_44 = *(undefined4 *)(this + 0xc);
local_48 = *(float *)(this + 8) + 5.0;
local_38 = *(undefined4 *)(this + 0x24);
local_2c = *(undefined4 *)(this + 0x28);
local_4c = *(float *)(this + 4) + 5.0;
local_40 = *(float *)(this + 0x10) - 5.0;
local_30 = *(float *)(this + 0x14) - 5.0;
local_20 = *(undefined4 *)(this + 0x18);
local_3c = local_48;
local_34 = local_4c;
local_28 = local_40;
local_24 = local_30;
NDebugOverlay::Triangle
((Vector *)&local_4c,(Vector *)&local_28,(Vector *)&local_40,param_1,param_2,param_3,
param_4,param_6,param_5);
NDebugOverlay::Triangle
((Vector *)&local_28,(Vector *)&local_4c,(Vector *)&local_34,param_1,param_2,param_3,
param_4,param_6,param_5);
NDebugOverlay::Triangle
((Vector *)&local_4c,(Vector *)&local_40,(Vector *)&local_28,param_1,param_2,param_3,
param_4,param_6,param_5);
NDebugOverlay::Triangle
((Vector *)&local_28,(Vector *)&local_34,(Vector *)&local_4c,param_1,param_2,param_3,
param_4,param_6,param_5);
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.