CVEngineServer::StaticDecal
0x0022df60 · 229 bytes · __thiscall
_ZN14CVEngineServer11StaticDecalERK6Vectoriiib
Decompiled
undefined (6 params)
/* CVEngineServer::StaticDecal(Vector const&, int, int, int, bool) */
void __thiscall
CVEngineServer::StaticDecal
(CVEngineServer *this,Vector *param_1,int param_2,int param_3,int param_4,bool param_5)
{
undefined **local_74;
undefined1 local_70;
undefined4 local_6c;
undefined4 local_68;
undefined4 local_64;
undefined8 local_60;
undefined4 local_58;
undefined4 local_54;
undefined8 local_50;
undefined4 local_48;
undefined4 local_44;
undefined1 local_40;
undefined8 local_3c;
undefined4 local_34;
undefined4 local_30;
undefined4 local_28;
undefined4 local_24;
undefined4 local_20;
int local_1c;
int local_18;
int local_14;
undefined1 local_10;
local_60 = 0;
local_50 = 0;
local_3c = 0;
local_68 = 0;
local_28 = *(undefined4 *)param_1;
local_64 = 0;
local_58 = 0;
local_24 = *(undefined4 *)(param_1 + 4);
local_54 = 0;
local_20 = *(undefined4 *)(param_1 + 8);
local_48 = 0;
local_44 = 0;
local_40 = 0;
local_34 = 0;
local_1c = param_2;
local_30 = 0;
local_70 = 1;
local_6c = 0;
local_18 = param_3;
local_74 = &PTR__SVC_BSPDecal_002a18e8;
local_14 = param_4;
local_10 = param_5;
if (DAT_003b8184 != '\0') {
SVC_BSPDecal::WriteToBuffer((SVC_BSPDecal *)&local_74,(bf_write *)&DAT_003b8034);
return;
}
CBaseServer::BroadcastMessage((CBaseServer *)&sv,(INetMessage *)&local_74,false,true);
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.