CWorld::DecalTrace
0x00b60b70 · 187 bytes · __thiscall
_ZN6CWorld10DecalTraceEP10CGameTracePKc
Decompiled
undefined (3 params)
/* CWorld::DecalTrace(CGameTrace*, char const*) */
void __thiscall CWorld::DecalTrace(CWorld *this,CGameTrace *param_1,char *param_2)
{
int iVar1;
undefined **local_3c [11];
iVar1 = (*(code *)**(undefined4 **)decalsystem)(decalsystem,param_2);
if (-1 < iVar1) {
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
/* try { // try from 00b60baa to 00b60bae has its CatchHandler @ 00b60c48 */
CRecipientFilter::AddAllPlayers((CRecipientFilter *)local_3c);
if (*(int *)(param_1 + 0x50) == 0) {
/* try { // try from 00b60bd7 to 00b60c2c has its CatchHandler @ 00b60c2f */
(**(code **)(*(int *)te + 0x90))(te,(CRecipientFilter *)local_3c,0,param_1 + 0xc,iVar1);
}
else {
(**(code **)(*(int *)te + 0x4c))
(te,(CRecipientFilter *)local_3c,0,param_1 + 0xc,param_1,0,*(int *)(param_1 + 0x50),
iVar1);
}
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
CRecipientFilter::~CRecipientFilter((CRecipientFilter *)local_3c);
}
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.