CBaseEntity::DecalTrace
0x0040dc70 · 164 bytes · __thiscall
_ZN11CBaseEntity10DecalTraceEP10CGameTracePKc
Decompiled
undefined (3 params)
/* CBaseEntity::DecalTrace(CGameTrace*, char const*) */
void __thiscall CBaseEntity::DecalTrace(CBaseEntity *this,CGameTrace *param_1,char *param_2)
{
undefined4 uVar1;
code *pcVar2;
int iVar3;
undefined4 uVar4;
undefined **local_3c [11];
iVar3 = (*(code *)**(undefined4 **)decalsystem)(decalsystem,param_2);
if (-1 < iVar3) {
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
/* try { // try from 0040dca7 to 0040dcab has its CatchHandler @ 0040dd14 */
CRecipientFilter::AddAllPlayers((CRecipientFilter *)local_3c);
uVar1 = *(undefined4 *)(param_1 + 0x50);
pcVar2 = *(code **)(*(int *)te + 0x4c);
/* try { // try from 0040dcc5 to 0040dcfc has its CatchHandler @ 0040dd26 */
uVar4 = CGameTrace::GetEntityIndex(param_1);
(*pcVar2)(te,(CRecipientFilter *)local_3c,0,param_1 + 0xc,param_1,uVar4,uVar1,iVar3);
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.