CDecal::TriggerDecal
0x00b620b0 · 257 bytes · __cdecl
_ZN6CDecal12TriggerDecalEP11CBaseEntityS1_8USE_TYPEf
Decompiled
undefined (4 params)
/* CDecal::TriggerDecal(CBaseEntity*, CBaseEntity*, USE_TYPE, float) */
void CDecal::TriggerDecal(CDecal *param_1)
{
int iVar1;
undefined1 local_54 [12];
Vector local_48 [12];
undefined **local_3c [11];
iVar1 = GetDecalEntityAndPosition(param_1,local_48,false);
if ((iVar1 == 0) || (*(int *)(iVar1 + 0x30) == 0)) {
iVar1 = 0;
}
else {
iVar1 = *(int *)(iVar1 + 0x30) - *(int *)(gpGlobals + 0x58) >> 4;
}
CRecipientFilter::CRecipientFilter((CRecipientFilter *)local_3c);
local_3c[0] = &PTR__CBroadcastRecipientFilter_00c09928;
/* try { // try from 00b62106 to 00b6210a has its CatchHandler @ 00b621d0 */
CRecipientFilter::AddAllPlayers((CRecipientFilter *)local_3c);
/* try { // try from 00b62136 to 00b62192 has its CatchHandler @ 00b621b7 */
(**(code **)(*(int *)te + 0x3c))
(te,(CRecipientFilter *)local_3c,0,local_48,iVar1,*(undefined4 *)(param_1 + 0x440));
CBaseEntity::ThinkSet((_func_void *)local_54,(float)param_1,(char *)CBaseEntity::SUB_Remove);
CBaseEntity::SetNextThink((CBaseEntity *)param_1,*(float *)(gpGlobals + 0xc) + 0.1,(char *)0x0);
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.